@media (pointer: fine) {
    div.feature:hover {
        scale: 0.98;
        background: var(--theme-clr-trans);
        box-shadow: inset 0px 0px 20px 0px #000;
    }
}

div#background {
    position: fixed;
    inset: 0;
}

img#background-img {
    min-height: 100%;
    min-width: 100%;
    opacity: .5;
    pointer-events: none;
}

div#background-overlay {
    position: absolute;
    inset: 0;
    -webkit-backdrop-filter: blur(20vw);
    backdrop-filter: blur(20vw);
}

div.feature {
    width: min(100%, calc(40em + 750px));
    max-height: min(80vh, 750px);
    display: flex;
    flex-wrap: wrap;
    background: #00000010;
    padding: 1rem;
    border-radius: 1rem;
    box-sizing: border-box;
    cursor: pointer;
    margin-bottom: 1rem;
    scale: 1;
    box-shadow: inset 0px 0px 20px 0px #0008;
    --scale-transition: 0.35s;
    transition: scale var(--scale-transition), background 0.2s, box-shadow 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent;
    contain: content;
}

div.feature.right {
    margin-left: auto;
}

div.feature:active {
    --scale-transition: 0.2s;
    scale: 0.95;
    background: var(--theme-clr-trans);
    box-shadow: inset 0px 0px 20px 0px #000;
}

div.feature-pane {
    display: flex;
    flex-direction: column;
    max-width: 40em;
}

div.feature-image-container {
    height: 100%;
    max-height: 350px;
    margin-left: auto;
    border: 2px solid var(--theme-clr-alt);
    border-radius: 1rem;
    overflow: clip;
    position: relative;
}

img.feature-image {
    height: 100%;
    max-height: inherit;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
}

p.feature-text {
    font-size: min(1.7vh, 18px);
}

iframe.feature-frame {
    position: absolute;
    inset: 0;
    border: 0;
    height: 300%;
    width: 300%;
    transform-origin: top left;
    scale: .3333333333;
    pointer-events: none;
    background: #222;
    transition: opacity 1s ease-in-out;
}