/*
 * Creative Floristic – site styles (no framework, no build).
 * Values mirror the rendered Tailwind output of the old site (docs/reference/live.css).
 * Breakpoints: sm 640px, md 768px, lg 1024px, xl 1280px.
 */

@layer reset, tokens, base, layout, components, utilities;

/* ---------------------------------------------------------------- fonts */

@font-face {
    font-family: 'Mukta';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/mukta-v13-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Mukta';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/mukta-v13-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Baskervville';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/baskervville-v14-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Baskervville';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/baskervville-v14-latin-italic.woff2') format('woff2');
}

/* ---------------------------------------------------------------- reset (Tailwind preflight subset) */

@layer reset {
    *,
    ::before,
    ::after {
        box-sizing: border-box;
        border: 0 solid currentColor;
    }

    html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        tab-size: 4;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        margin: 0;
        line-height: inherit;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: inherit;
        font-weight: inherit;
    }

    h1, h2, h3, h4, h5, h6, p, dl, dd, figure {
        margin: 0;
    }

    ul, ol {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    a {
        color: inherit;
        text-decoration: inherit;
    }

    b, strong {
        font-weight: bolder;
    }

    img, svg, video {
        display: block;
        vertical-align: middle;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }

    button, input, textarea {
        font: inherit;
        color: inherit;
        margin: 0;
        padding: 0;
        line-height: inherit;
    }

    button {
        background: transparent;
        cursor: pointer;
    }

    textarea {
        resize: vertical;
    }

    [hidden]:not([hidden='until-found']) {
        display: none;
    }
}

/* ---------------------------------------------------------------- tokens */

@layer tokens {
    :root {
        --c-primary: #9B0A3A;
        --c-beige: #C4B586;
        --c-white: #fff;
        --c-text: #000;

        --f-sans: 'Mukta', sans-serif;
        --f-serif: 'Baskervville', serif;
        --f-system: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';

        --container: 64rem;      /* max-w-5xl */
        --container-wide: 80rem; /* max-w-7xl */
        --nav-h: 60px;

        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
        --shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
        --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
    }
}

/* ---------------------------------------------------------------- base */

@layer base {
    html {
        font-family: var(--f-system);
        color: var(--c-text);
        background: var(--c-white);
    }

    :focus-visible {
        outline: 2px solid var(--c-primary);
        outline-offset: 2px;
    }

    /* In base (not utilities) so components can override the size. */
    .icon {
        width: 1.5rem;
        height: 1.5rem;
        flex-shrink: 0;
    }

    @media (prefers-reduced-motion: no-preference) {
        @view-transition {
            navigation: auto;
        }
    }
}

/* ---------------------------------------------------------------- utilities */

@layer utilities {
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }

    .sprite {
        position: absolute;
        width: 0;
        height: 0;
        overflow: hidden;
    }


    .skip-link {
        position: fixed;
        top: .5rem;
        left: .5rem;
        z-index: 100;
        padding: .5rem 1rem;
        background: var(--c-primary);
        color: var(--c-white);
        font-family: var(--f-sans);
        font-weight: 700;
        transform: translateY(-200%);
    }

    .skip-link:focus {
        transform: none;
    }
}

/* ---------------------------------------------------------------- layout: navigation */

@layer layout {
    .nav {
        position: fixed;
        inset: 0 0 auto;
        z-index: 50;
        height: var(--nav-h);
        padding: 0 1rem;
        font-family: var(--f-serif);
        color: var(--c-primary);
        background: transparent;
        transition: all .5s cubic-bezier(.4, 0, .2, 1);

        &.is-scrolled {
            background: var(--c-white);
        }

        &.is-hidden {
            top: calc(var(--nav-h) * -1);
        }

        @media (min-width: 640px) {
            padding: 0 1.5rem;
        }

        @media (min-width: 1024px) {
            padding: 0 2rem;
        }
    }

    .nav__inner {
        display: flex;
        height: 100%;
    }

    .nav__brand {
        display: flex;
        flex-shrink: 0;
        align-items: center;

        img {
            height: 2rem;
            width: auto;
            margin-right: .75rem;
        }

        span {
            font-size: 1rem;
            line-height: 1.5rem;
            font-weight: 700;
        }
    }

    .is-home .nav:not(.is-scrolled) .nav__brand {
        display: none;
    }

    .nav__links {
        display: none;
        margin-left: auto;

        @media (min-width: 640px) {
            display: flex;
            gap: 1.5rem;
        }

        li {
            display: flex;
        }

        a {
            display: inline-flex;
            align-items: center;
            padding: .25rem .25rem 0;
            border-bottom: 2px solid transparent;

            &:hover,
            &:active {
                border-color: var(--c-primary);
            }
        }
    }

    .nav__toggle {
        display: inline-flex;
        align-items: center;
        align-self: center;
        margin-left: auto;
        margin-right: -.5rem;
        padding: .5rem;
        border-radius: .375rem;

        .icon--lg {
            width: 1.5rem;
            height: 1.5rem;
        }

        @media (min-width: 640px) {
            display: none;
        }
    }

    .mobile-menu {
        position: fixed;
        inset: 3.5rem 0 auto auto;
        width: 50%;
        margin: 0;
        padding: .5rem 0 .75rem;
        border: 0;
        background: var(--c-white);
        color: var(--c-primary);
        font-family: var(--f-serif);
        font-size: 1.25rem;
        line-height: 1.75rem;
        box-shadow: var(--shadow);

        li + li {
            margin-top: .25rem;
        }

        a {
            display: block;
            padding: .75rem 1rem .75rem .75rem;
            border-left: 4px solid transparent;
        }

        @media (min-width: 640px) {
            &:popover-open {
                display: none;
            }
        }
    }

    /* ---------------------------------------------------------------- footer */

    .footer {
        margin-top: -9rem;
        padding: 1rem;
        background: var(--c-beige);

        @media (min-width: 640px) {
            padding: 1.5rem;
        }
    }

    .footer__inner {
        max-width: var(--container);
        margin: 0 auto;
        padding: 12rem 1.5rem 7rem;

        @media (min-width: 768px) {
            display: flex;
            justify-content: space-between;
        }

        @media (min-width: 1024px) {
            padding: 15rem 2rem 7rem;
        }
    }

    .footer__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
        color: var(--c-primary);
        font-family: var(--f-sans);
        font-size: 1rem;
        line-height: 1.5rem;

        li {
            margin-bottom: .25rem;
        }

        @media (min-width: 640px) {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 1.5rem;

            li {
                margin-bottom: .5rem;
            }
        }

        @media (min-width: 1024px) {
            grid-template-columns: repeat(5, minmax(0, 1fr));
        }
    }

    .footer__address {
        @media (min-width: 640px) {
            grid-column-start: 4;
        }

        @media (min-width: 1024px) {
            grid-column-start: 5;
        }

        .footer__name {
            font-weight: 700;
        }

        .footer__city {
            margin-bottom: .5rem;

            @media (min-width: 640px) {
                margin-bottom: 1rem;
            }
        }
    }

    .footer__art {
        position: relative;
        top: -4rem;
        height: 16rem;
        padding-bottom: 2rem;

        img {
            height: 100%;
            width: auto;
        }

        @media (min-width: 1280px) {
            top: -15rem;
            height: 20rem;
            margin-bottom: -15rem;
        }
    }

    /* ---------------------------------------------------------------- fixed contact bar (desktop only) */

    .contact-bar {
        display: none;

        @media (min-width: 640px) {
            position: fixed;
            bottom: .75rem;
            left: 0;
            z-index: 40;
            display: flex;
            gap: .75rem;
            place-content: center;
            padding: .125rem .75rem;
            border-radius: 0 .25rem .25rem 0;
            background: var(--c-primary);
            color: var(--c-white);
            font-family: var(--f-sans);
            font-size: 1rem;
            line-height: 1.5rem;
            box-shadow: var(--shadow-md);
        }
    }
}

/* ---------------------------------------------------------------- components */

@layer components {
    /* section header: ornament + offset title */
    .section-header {
        display: flex;
        max-width: var(--container-wide);
        margin: 0 auto;
        padding: 1.5rem .5rem .5rem;

        img {
            width: 8rem;
            height: auto;
        }

        @media (min-width: 1024px) {
            padding-top: 6rem;

            img {
                width: 15rem;
            }
        }
    }

    .section-header__title {
        position: relative;
        left: -3.5rem;
        top: 1.25rem;
        font-family: var(--f-serif);
        font-size: 2.25rem;
        line-height: 2.5rem;
        color: var(--c-primary);
        text-wrap: balance;

        @media (min-width: 1024px) {
            left: -6rem;
            top: 3.5rem;
        }
    }

    /* top section */
    .top {
        background: var(--c-beige);
    }

    .top__logo {
        position: relative;
        height: 19rem;
        padding: 1.25rem;

        h1 {
            height: 100%;
        }

        @media (min-width: 640px) {
            height: 32rem;
            padding: 1.25rem 2.5rem;

            img {
                height: 100%;
                width: auto;
            }
        }
    }

    .top__media {
        position: relative;
        height: 24rem;

        @media (min-width: 640px) {
            height: 40rem;
        }
    }

    .top__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(.75);
    }

    .badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        font-family: var(--f-sans);
        font-weight: 700;
    }

    .badge--hours {
        position: absolute;
        top: -7rem;
        right: 0;
        width: 12.5rem;
        height: 12.5rem;
        background: var(--c-white);
        color: var(--c-primary);
        font-size: 1rem;
        line-height: 1.5rem;
        text-align: center;

        @media (min-width: 640px) {
            right: 2.5rem;
            width: 15rem;
            height: 15rem;
            font-size: 1.125rem;
            line-height: 1.75rem;
        }
    }

    .badge--gallery {
        position: absolute;
        right: 2.5rem;
        bottom: 2.5rem;
        z-index: 10;
        width: 11rem;
        height: 11rem;
        background: var(--c-primary);
        color: var(--c-white);
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .info-card {
        position: absolute;
        bottom: 2.5rem;
        left: 50%;
        width: 80vw;
        max-width: 28rem;
        transform: translateX(-50%);
        border-radius: .25rem;
        background: var(--c-white);
        box-shadow: var(--shadow-xl);

        @media (min-width: 768px) {
            left: 12rem;
            transform: none;
        }

        @media (min-width: 1280px) {
            width: 22rem;
        }
    }

    .info-card__title {
        padding: .5rem .75rem;
        border-radius: .25rem .25rem 0 0;
        background: var(--c-primary);
        color: var(--c-white);
        font-family: var(--f-sans);
        font-size: 1rem;
        line-height: 1.5rem;
        font-weight: 700;

        @media (min-width: 640px) {
            font-size: 1.25rem;
            line-height: 1.75rem;
        }
    }

    .info-card__text {
        padding: .5rem .75rem;
        font-family: var(--f-serif);
    }

    .info-card__notice {
        padding: 0 .75rem .5rem;
        color: var(--c-primary);
        font-family: var(--f-sans);
        font-weight: 700;
    }

    /* news */
    .news {
        margin-bottom: -6rem;
    }

    .news__grid,
    .services__grid {
        display: grid;
        gap: 2.5rem;
        place-items: stretch;
        max-width: var(--container);
        margin: 3rem auto 0;
        padding: 0 1.5rem;

        @media (min-width: 768px) {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        @media (min-width: 1280px) {
            gap: 4rem;
        }
    }

    .card-text {
        position: relative;
        z-index: 20;
        display: flex;
        flex-direction: column;
        min-height: max-content;
        overflow: hidden;
        border-radius: .25rem;
        background: var(--c-white);
        box-shadow: var(--shadow-xl);
    }

    .card-text__body {
        flex: 1;
        padding: 1rem 1.5rem;
    }

    .card-text__title {
        margin-bottom: .5rem;
        font-family: var(--f-sans);
        font-size: 1.5rem;
        line-height: 2rem;
        font-weight: 700;
        color: var(--c-primary);
    }

    .card-text__text {
        font-family: var(--f-serif);
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .card-text__footer {
        padding: 1rem 1.5rem .5rem;

        time {
            display: inline-block;
            margin: 0 .5rem .5rem 0;
            padding: .25rem 0;
            border-radius: 9999px;
            font-size: .875rem;
            line-height: 1.25rem;
            font-weight: 600;
        }
    }

    /* full-width image */
    .hero {
        position: relative;
        max-height: 80vh;
        overflow: hidden;

        @media (min-width: 640px) {
            max-height: 75vh;
        }
    }

    .hero__image {
        width: 100%;
        height: auto;
    }

    /* services */
    .services {
        position: relative;
        z-index: 30;
        margin-bottom: -5rem;

        @media (min-width: 1024px) {
            margin-bottom: -6rem;
            padding: 0 2rem;
        }
    }

    .service {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }

    .service__image {
        width: 100%;
        height: 20rem;
        object-fit: cover;
        flex-shrink: 0;
    }

    .service__body {
        flex: 1;
        padding: 1.5rem;
        background: var(--c-white);
    }

    .service__title {
        font-family: var(--f-sans);
        font-size: 1.25rem;
        line-height: 1.75rem;
        font-weight: 700;
        color: var(--c-primary);
    }

    .service__text {
        margin-top: .75rem;
        font-family: var(--f-serif);
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    /* text + image ("Über uns") and rich text pages */
    .text-image,
    .rich-text {
        position: relative;
        background: var(--c-white);
    }

    .text-image__inner,
    .rich-text__inner {
        position: relative;
        padding: 3rem 1.5rem 4rem;

        @media (min-width: 640px) {
            padding-top: 4rem;
        }

        @media (min-width: 1024px) {
            max-width: var(--container);
            margin: 0 auto;
            padding-left: 2rem;
            padding-right: 2rem;
        }
    }

    .text-image__inner {
        @media (min-width: 1024px) {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    .text-image__image {
        width: auto;
        height: 100%;
        max-height: 32rem;
        object-fit: cover;
    }

    .prose {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        @media (min-width: 1024px) {
            padding-left: 2rem;
        }

        h2 {
            margin-top: .5rem;
            font-size: 1.25rem;
            line-height: 2rem;
            font-weight: 700;
            color: var(--c-primary);
        }

        p {
            margin-bottom: 1rem;
            font-family: var(--f-serif);
            font-size: 1.125rem;
            line-height: 1.75rem;
        }

        a {
            text-decoration: underline;
            text-decoration-color: color-mix(in srgb, var(--c-primary) 50%, transparent);
            text-underline-offset: .2em;

            &:hover {
                color: var(--c-primary);
            }
        }
    }

    .prose--split {
        @media (min-width: 1024px) {
            grid-column-start: 2;
        }

        p {
            margin-top: 2rem;
            margin-bottom: 0;
        }
    }

    /* contact */
    .contact {
        position: relative;
        z-index: 30;
    }

    .contact__wrap {
        max-width: var(--container);
        margin: 2rem auto 0;
        padding: 0 1.5rem;

        @media (min-width: 1024px) {
            margin-top: 4rem;
            padding: 0 2rem;
        }
    }

    .contact__box {
        position: relative;
        display: grid;
        background: var(--c-primary);
        color: var(--c-white);
        box-shadow: var(--shadow-xl);

        @media (min-width: 1024px) {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        :focus-visible {
            outline-color: var(--c-white);
        }
    }

    .contact__info {
        position: relative;
        overflow: hidden;
        padding: 1.5rem;
        font-family: var(--f-sans);

        @media (min-width: 640px) {
            padding: 2.5rem;
        }

        @media (min-width: 1280px) {
            padding: 3rem;
        }
    }

    .contact__company {
        font-weight: 700;
    }

    .contact__list {
        margin-top: 2rem;

        dd {
            display: flex;
            gap: .75rem;
            margin-top: 1.5rem;
        }
    }

    .contact__social {
        display: flex;
        gap: 3rem;
        margin-top: 2rem;
    }

    .contact__form-wrap {
        padding: 1.5rem;
        font-family: var(--f-serif);
        font-size: 1.125rem;
        line-height: 1.75rem;

        @media (min-width: 640px) {
            padding: 2.5rem;
        }

        @media (min-width: 1024px) {
            grid-column: span 2 / span 2;
        }

        @media (min-width: 1280px) {
            padding: 3rem;
        }
    }

    .form {
        position: relative;
        display: grid;
        row-gap: 1.5rem;
    }

    .form__field {
        margin-top: .25rem;
    }

    .form__input,
    .form__textarea {
        display: block;
        width: 100%;
        padding: .75rem 1rem;
        appearance: none;
        border-radius: 0;
        background: var(--c-primary);
        color: var(--c-white);
        font-size: 1rem;
        line-height: 1.5rem;
        box-shadow: var(--shadow-sm);

        &::placeholder {
            color: rgb(255 255 255 / .8);
            opacity: 1;
        }

        &:focus {
            outline: 2px solid var(--c-white);
            outline-offset: 2px;
        }

        &[aria-invalid='true'] {
            border-color: #ffd9a8;
        }
    }

    .form__input {
        border-bottom: 1px solid var(--c-white);
    }

    .form__textarea {
        border: 1px solid var(--c-white);
    }

    .form__error {
        margin-top: .375rem;
        font-family: var(--f-sans);
        font-size: .9375rem;
        line-height: 1.375rem;
        font-weight: 700;
        color: #ffd9a8;
    }

    .form__hp {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .form__status:empty {
        display: none;
    }

    .form__privacy {
        font-size: .875rem;
        line-height: 1.25rem;

        a {
            text-decoration: underline;
        }
    }

    .form__actions {
        @media (min-width: 640px) {
            display: flex;
            justify-content: flex-end;
        }
    }

    .form__submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: .5rem;
        padding: .75rem 1.5rem;
        border: 1px solid var(--c-white);
        border-radius: .375rem;
        color: var(--c-white);
        font-size: 1rem;
        line-height: 1.5rem;
        box-shadow: var(--shadow-sm);
        transition: background-color .2s;

        &:hover {
            background: rgb(255 255 255 / .1);
        }

        &:disabled {
            opacity: .6;
            cursor: progress;
        }

        @media (min-width: 640px) {
            width: auto;
        }
    }

    /* toast (contact form confirmation), top right */
    .toast {
        position: fixed;
        top: 1rem;
        right: 1rem;
        left: 1rem;
        z-index: 60;
        max-width: 24rem;
        margin-left: auto;
        padding: 1rem 3rem 1rem 1.25rem;
        border-left: 4px solid var(--c-primary);
        border-radius: .375rem;
        background: var(--c-white);
        box-shadow: var(--shadow-xl), 0 0 0 1px rgb(0 0 0 / .04);
        animation: toast-in .4s cubic-bezier(.2, .8, .2, 1), toast-out .4s ease-in 7s forwards;

        &.is-closing {
            animation: toast-out .3s ease-in forwards;
        }
    }

    .toast__title {
        font-family: var(--f-sans);
        font-weight: 700;
        font-size: 1.125rem;
        line-height: 1.5rem;
        color: var(--c-primary);
    }

    .toast__text {
        margin-top: .25rem;
        font-family: var(--f-serif);
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .toast__close {
        position: absolute;
        top: .5rem;
        right: .5rem;
        width: 2rem;
        height: 2rem;
        border-radius: 9999px;
        color: var(--c-primary);
        font-size: 1.5rem;
        line-height: 1;

        &:hover {
            background: rgb(155 10 58 / .08);
        }
    }

    @keyframes toast-in {
        from { opacity: 0; transform: translateX(1.5rem); }
    }

    @keyframes toast-out {
        to { opacity: 0; transform: translateX(1.5rem); visibility: hidden; }
    }

    @media (prefers-reduced-motion: reduce) {
        .toast {
            animation: toast-out .01s 7s forwards;
        }
    }

    /* gallery (masonry via CSS columns) */
    .gallery {
        max-width: var(--container);
        margin: 1.25rem auto 0;
        padding: 3rem 1.5rem 0;
        columns: 2;

        @media (min-width: 1024px) {
            padding: 3rem 2rem 0;
            columns: 3;
        }
    }

    .gallery__item {
        position: relative;
        display: block;
        margin-bottom: 1rem;
        break-inside: avoid;
        background: rgb(196 181 134 / .25);

        img {
            width: 100%;
        }
    }

    .gallery__zoom {
        position: absolute;
        top: .5rem;
        right: .5rem;
        display: flex;
        width: 2rem;
        height: 2rem;
        padding: .375rem;
        border-radius: 9999px;
        background: var(--c-white);
        color: #000;
        box-shadow: var(--shadow-sm);

        .icon {
            width: 100%;
            height: 100%;
        }
    }

    /* lightbox (native <dialog>) */
    .lightbox {
        width: 100vw;
        height: 100dvh;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 3rem;
        border: 0;
        background: var(--c-white);
        opacity: 0;
        transition: opacity .3s ease, display .3s allow-discrete, overlay .3s allow-discrete;

        &[open] {
            opacity: 1;

            @starting-style {
                opacity: 0;
            }
        }

        &::backdrop {
            background: rgb(0 0 0 / .5);
        }

        @media (min-width: 768px) {
            padding: 6rem;
        }
    }

    .lightbox__image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .lightbox__close {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        padding: .125rem .75rem;
        background: var(--c-primary);
        color: var(--c-white);
        font-size: 1.5rem;
        line-height: 2rem;
        font-weight: 600;
        box-shadow: var(--shadow-sm);

        @media (min-width: 640px) {
            top: 1.5rem;
        }
    }

    .lightbox__nav {
        position: absolute;
        top: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        background: rgb(255 255 255 / .85);
        color: var(--c-primary);
        box-shadow: var(--shadow-md);
        transform: translateY(-50%);
    }

    .lightbox__nav--prev {
        left: .5rem;

        @media (min-width: 768px) {
            left: 2rem;
        }
    }

    .lightbox__nav--next {
        right: .5rem;

        @media (min-width: 768px) {
            right: 2rem;
        }
    }

    .lightbox__counter {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        font-family: var(--f-sans);
        font-size: .875rem;
        color: var(--c-primary);
    }

    /* reveal on scroll (decision E10: once). Only elements below the fold at load get hidden (no flicker). */
    @media (min-width: 481px) and (prefers-reduced-motion: no-preference) {
        .js .reveal.is-pending {
            opacity: 0;
            transform: translateY(80px);
            transition: all .5s;
        }

        .js .reveal.is-pending.is-inview {
            opacity: 1;
            transform: none;
            transition-delay: .3s;
        }
    }
}
