/* Every mobile slide uses the same landscape frame. The full photograph sits
   at its base and a soft copy fills any space above or beside it. */
@media (max-width: 767px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    .eser-reference-home .eser-hero {
        --eser-hero-height: clamp(248px, 62vw, 278px);
        padding: 0;
        background: #f8f5ed;
    }
    .eser-reference-home .eser-hero-stage {
        overflow: hidden;
        border: 0;
        border-radius: 0 0 19px 19px;
        background: #f4ead6;
        box-shadow: none;
    }
    .eser-reference-home .eser-hero-slide {
        position: relative;
        isolation: isolate;
        display: block;
        height: var(--eser-hero-height);
        min-height: 0;
        overflow: hidden;
        background: #f4ead6;
        touch-action: pan-y pinch-zoom;
    }
    .eser-reference-home .eser-hero-slide > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    .eser-reference-home .eser-hero-slide > .eser-hero-atmosphere[hidden] {
        position: absolute;
        inset: 0;
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
        z-index: -3;
        pointer-events: none;
    }
    .eser-reference-home .eser-hero-atmosphere img {
        display: block;
        flex: 0 0 auto;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        opacity: .38;
        filter: blur(5px);
        transform-origin: top center;
        transform: scaleY(-4);
    }
    .eser-reference-home .eser-hero-slide > img {
        z-index: -2;
        object-fit: contain;
        object-position: right bottom;
    }
    .eser-reference-home .eser-hero-slide::after {
        z-index: -1;
        background: linear-gradient(90deg, rgba(253, 247, 231, .97), rgba(253, 247, 231, .93) 32%, rgba(253, 247, 231, .77) 50%, rgba(253, 247, 231, .12) 68%, transparent 80%);
        pointer-events: none;
    }
    .eser-reference-home .eser-hero-inner {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 41px clamp(15px, 4vw, 32px) 7px;
        pointer-events: none;
    }
    .eser-reference-home .eser-hero-copy {
        width: min(66%, 360px);
        max-width: none;
        max-height: 100%;
        padding: 0;
        overflow-y: auto;
        overflow-wrap: anywhere;
        scrollbar-width: thin;
        pointer-events: auto;
    }
    .eser-reference-home .eser-hero-copy .eser-kicker {
        display: flex;
        gap: 7px;
        align-items: center;
        padding: 0;
        background: transparent;
        color: #665733;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: .1em;
        line-height: 1.3;
    }
    .eser-reference-home .eser-kicker::before { content: ''; width: 15px; height: 1px; background: #9e8c5b; }
    .eser-reference-home .eser-hero-copy h1,
    .eser-reference-home .eser-hero-copy h2 {
        margin: 7px 0;
        color: #183b2a;
        font-size: clamp(33px, 9vw, 46px);
        line-height: .98;
        letter-spacing: -.035em;
    }
    .eser-reference-home .eser-hero-copy > p {
        max-width: 27ch;
        margin: 0;
        color: #283c2e;
        font-size: 13px;
        line-height: 1.45;
    }
    .eser-reference-home .eser-hero-links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 8px;
        margin: 8px 0 0;
    }
    .eser-reference-home .eser-hero-links .eser-primary-link {
        gap: 7px;
        min-height: 44px;
        padding: 7px 12px;
        border-radius: 24px;
        background: #204634;
        color: #fffaf0;
        font-size: 12px;
        line-height: 1.25;
    }
    .eser-reference-home .eser-hero-links .eser-primary-link i { font-size: 16px; }
    .eser-reference-home .eser-hero-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 4px;
        color: #284334;
        font-size: 0;
    }
    .eser-reference-home .eser-hero-secondary span { display: none; }
    .eser-reference-home .eser-hero-secondary::after {
        content: '';
        display: block;
        width: 32px;
        height: 32px;
        border: 1px solid #a99e84;
        border-radius: 50%;
        background: #fcf7eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23284434' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15m-6-6 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
    }
    .eser-reference-home .eser-hero-provenance { display: none; }
    .eser-reference-home .eser-hero-controls {
        position: absolute;
        inset: 0 7px auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        min-height: 44px;
        padding: 0;
        pointer-events: none;
    }
    .eser-reference-home .eser-hero-mobile-dots[hidden] {
        display: flex !important;
        margin-right: auto;
    }
    .eser-reference-home .eser-hero-controls button,
    .eser-reference-home .eser-hero-controls .eser-slide-toggle {
        position: relative;
        display: grid;
        flex: 0 0 44px;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #244433;
        box-shadow: none;
        font-size: 18px;
        pointer-events: auto;
    }
    .eser-reference-home .eser-hero-controls .eser-slide-toggle { font-size: 15px; }
    .eser-reference-home .eser-hero-controls > button::before {
        content: '';
        position: absolute;
        inset: 6px;
        border-radius: 50%;
        border: 1px solid rgb(65 79 55 / 14%);
        background: rgba(255, 252, 243, .9);
    }
    .eser-reference-home .eser-hero-controls > button i { position: relative; }
    .eser-reference-home .eser-hero-controls button:hover,
    .eser-reference-home .eser-hero-controls button:active { background: transparent; color: #183a28; }
    .eser-reference-home .eser-hero-controls > button:active::before { background: #dce6d2; }
    .eser-reference-home .eser-hero-mobile-dots button::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 4px;
        background: #8d9583;
    }
    .eser-reference-home .eser-hero-mobile-dots button[aria-pressed='true']::before { width: 20px; background: #31523d; }
    .eser-reference-home .eser-hero :focus-visible { outline: 2px solid #c29845; outline-offset: -2px; }
}
@media (max-width: 359px) {
    .eser-reference-home .eser-hero-copy { width: 79%; }
    .eser-reference-home .eser-hero-links { gap: 0 3px; }
}
@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    .eser-reference-home .eser-hero { --eser-hero-height: 204px; }
    .eser-reference-home .eser-hero-copy h1,
    .eser-reference-home .eser-hero-copy h2 { font-size: 36px; }
    .eser-reference-home .eser-hero-copy h1 br { display: none; }
    .eser-reference-home .eser-hero-copy > p { max-width: 37ch; }
}
