.soap-editorial {
    --soap-editorial-ink: #111111;
    --soap-editorial-paper: #f9f8f6;
    --soap-editorial-font: Arimo, Arial, 'Helvetica Neue', Helvetica, sans-serif;
    --soap-editorial-detail: Satoshi, 'Helvetica Neue', Arial, sans-serif;
    color: var(--soap-editorial-ink);
    background: var(--soap-editorial-paper);
    font-family: var(--soap-editorial-font);
    -webkit-font-smoothing: antialiased;
}

.soap-editorial figure {
    margin: 0;
}

.soap-editorial img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
}

/* A quarter-turned image keeps the height cap: its width before the turn is its height after it. */
.soap-editorial .birka_rotated > svg {
    max-height: 100vh;
}

.soap-editorial .birka_rotated > svg + img {
    max-width: 100vh;
}

.soap-editorial__intro {
    position: sticky;
    top: 0;
    padding: 120px 32px 80px;
    text-align: center;
}

.soap-editorial__intro > p,
.soap-editorial__credits {
    margin: 0;
    font-family: var(--soap-editorial-detail);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.24px;
}

.soap-editorial__intro > p {
    text-transform: uppercase;
}

.soap-editorial h1 {
    margin: 32px 0;
    font-size: clamp(48px, 7.8vw, 112px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: uppercase;
}

.soap-editorial__credits {
    line-height: 1.8;
}

.soap-editorial__credits p {
    margin: 0;
    text-align: center !important;
}

.soap-editorial__credits strong {
    font-weight: inherit;
}

.soap-editorial .soap-share {
    justify-content: center;
    margin-top: 40px;
}

.soap-editorial__content {
    position: relative;
    background: var(--soap-editorial-paper);
}

.birka_gallery {
    --soap-editorial-gap: 16px;
    display: grid;
    padding-bottom: 120px;
    gap: var(--soap-editorial-gap);

    .row {
        display: grid;
        width: 72%;
        align-items: start;
        gap: var(--soap-editorial-gap);
        justify-self: center;
    }

    .col2 {
        width: 84%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .col3 {
        width: 88%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .col4 {
        width: 92%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .wide {
        width: 100%;
    }

    .wide img,
    .wide .birka_rotated > svg {
        max-height: none;
    }

    .wide .birka_rotated > svg + img {
        max-width: none;
    }
}

.soap-editorial .soap-girl__subscribe {
    padding-top: 0;
}

@supports (animation-timeline: scroll()) {

    .birka_gallery .row + .row img {
        animation: soap-editorial-reveal linear both;
        animation-range: entry 0% entry 70%;
        animation-timeline: view();
    }
}

@keyframes soap-editorial-reveal {
    from {
        opacity: 0;
    }
}

@media (max-width: 809px) {

    .soap-editorial__intro {
        padding: 104px 16px 56px;
    }

    .birka_gallery {
        --soap-editorial-gap: 12px;
        padding-bottom: 48px;

        .row:not(.wide) {
            width: calc(100% - 32px);
        }

        .col4 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
}
