/* =============================================================================
   ESTANCIA.CSS — La Providencia Patagonia
   ============================================================================= */


/* ── Hero ─────────────────────────────────────────────────────────────────── */

.est-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.est-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}

.est-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.25);
}

.est-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px var(--padding-h) 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.est-hero__copete {
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.1em;
    opacity: 0;
}

.hero-ready .est-hero__copete {
    animation: estFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.est-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--white);
    margin: 0;
}

.est-hero__title .reveal-line--italic {
    font-style: italic;
}

.est-hero__title .reveal-line {
    display: block;
    overflow: hidden;
    line-height: 1.1;
}

.est-hero__title .reveal-inner {
    display: block;
    transform: translateY(110%);
}

.hero-ready .est-hero__title .reveal-line:nth-child(1) .reveal-inner {
    animation: estRevealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
}

.hero-ready .est-hero__title .reveal-line:nth-child(2) .reveal-inner {
    animation: estRevealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.34s forwards;
}

.est-hero__sub {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 64ch;
    margin: 0;
    opacity: 0;
}

.hero-ready .est-hero__sub {
    animation: estFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both;
}

@keyframes estFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes estRevealUp {
    from { transform: translateY(110%); }
    to   { transform: translateY(0); }
}


/* ── Helpers compartidos ─────────────────────────────────────────────────── */

.est-copete {
    color: var(--terracota);
}

.est-copete--light {
    color: var(--green-light);
}

.est-section-header {
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* ── 01 El Lodge ─────────────────────────────────────────────────────────── */

.est-lodge__header {
    align-items: center;
    text-align: center;
    max-width: 72ch;
    margin-inline: auto;
}

.est-lodge__body--intro {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--text-dark);
    line-height: 1.75;
    margin: 0;
}

.est-lodge {
    background: var(--bg-green);
    padding-block: var(--section-v);
}

.est-lodge__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.08;
    color: var(--text-dark);
    margin: 0;
}

/* 3 imágenes en fila */
.est-lodge__imgs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 64px;
}

.est-lodge__img {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
}

.est-lodge__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.est-lodge__img:hover img {
    transform: scale(1.03);
}

/* Grid texto + amenities */
.est-lodge__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    padding-inline: var(--padding-inner-h);
}

.est-lodge__col-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.est-lodge__body {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-dark);
    margin: 0;
}

/* Amenities — estilo idéntico a proy-atributos__list, en 2 columnas */
.est-lodge__amenities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.est-lodge__amenities li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--font-body);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
}

.est-lodge__amenities li::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 2px;
    background: var(--terracota);
    position: relative;
    top: -3px;
}


/* ── 02 Habitaciones ─────────────────────────────────────────────────────── */

.est-hab {
    background: var(--bg-green);
    padding-block: var(--section-v);
}

.est-hab__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-inline: auto;
    margin-bottom: 64px;
}

.est-hab__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 64px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.07;
    color: var(--text-dark);
    margin: 0;
}

.est-hab__lead {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.75;
    color: var(--text-dark);
    max-width: 68ch;
    margin: 0;
}

/* Fila 4 columnas desktop, 2×2 mobile */
.est-hab__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.est-hab .infra-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.est-hab .infra-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.est-hab .infra-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.est-hab .infra-card:hover .infra-card__img img {
    transform: scale(1.04);
}

.est-hab .infra-card__content {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.est-hab .infra-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: var(--green-dark);
    line-height: 1.2;
}

.est-hab .infra-card__body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}


/* ── 03 Olivar ───────────────────────────────────────────────────────────── */

.est-olivar {
    background: var(--text-dark);
}

.est-olivar__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

.est-olivar__col-photo {
    overflow: hidden;
}

.est-olivar__col-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.est-olivar__col-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: var(--section-v) var(--padding-h);
}

.est-olivar__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.08;
    color: var(--white);
    margin: 0;
}

.est-olivar__body {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.est-olivar__tags {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.est-olivar__tag {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
}

.est-olivar__cta {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
    text-decoration: none;
    transition: border-color 0.2s ease;
    margin-top: 4px;
}

.est-olivar__cta:hover {
    border-color: var(--white);
    opacity: 1;
}


/* ── 04 Experiencias ─────────────────────────────────────────────────────── */

.est-exp {
    background: var(--bg-green);
}

/* Header centrado */
.est-exp__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding-block-start: var(--section-v);
    margin-bottom: 64px;
}

.est-exp__title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: italic;
    line-height: 1.07;
    color: var(--text-dark);
    margin: 0;
}

.est-exp__lead {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.4vw, 17px);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-light);
    max-width: 60ch;
    margin: 0;
}

/* Carrusel — desktop: scroll-driven horizontal */
.est-exp__pin-outer {
    position: relative;
    /* height aumentado por JS */
}

.est-exp__pin-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.est-exp__track {
    display: flex;
    align-items: stretch;
    gap: 4px;
    padding-inline: var(--padding-h);
    will-change: transform;
    width: 100%;
}

.est-exp__item {
    position: relative;
    flex: 0 0 calc((100vw - (var(--padding-h) * 2) - 8px) / 2.3);
    height: 80vh;
    overflow: hidden;
    border-radius: 6px;
}

.est-exp__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.est-exp__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0)    0%,
        rgba(0, 0, 0, 0.45) 100%
    );
    pointer-events: none;
}

.est-exp__caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.est-exp__cap-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    color: var(--white);
    line-height: 1.2;
}

.est-exp__cap-desc {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* Excursiones regionales */
.est-exp__excursiones {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 28px 32px;
    margin-block: 64px 0;
    margin-bottom: 0;
}

.est-exp__exc-label {
    color: var(--terracota);
    white-space: nowrap;
}

.est-exp__exc-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.est-exp__chip {
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-dark);
    border-radius: 100px;
}


/* ── 05 La Estación ──────────────────────────────────────────────────────── */

.est-estacion {
    background: var(--bg-green);
    padding-block: var(--section-v);
}

.est-estacion__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding-inline: var(--padding-h);
}

.est-estacion__img {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
}

.est-estacion__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.est-estacion__col-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.est-estacion__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    color: var(--text-dark);
    margin: 0;
}

.est-estacion__body {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-dark);
    margin: 0;
}

.est-estacion__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0;
}

.est-estacion__spec {
    background: var(--white);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.est-estacion__spec-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.est-estacion__spec-val {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

.est-estacion__cta {
    display: inline-flex;
    align-items: center;
    color: var(--text-dark);
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 2px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-top: 4px;
}

.est-estacion__cta:hover {
    color: var(--green-dark);
    border-color: var(--green-dark);
    opacity: 1;
}


/* ── 06 Info práctica + Reservar ─────────────────────────────────────────── */

.est-info {
    background: var(--bg-green);
    padding-block: var(--section-v);
}

.est-info__datos {
    padding-inline: var(--padding-inner-h);
}

.est-info__col-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 400;
    color: var(--text-dark);
    margin: 0 0 28px;
}

.est-info__tabla {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.est-info__fila {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    align-items: start;
}

.est-info__key {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    padding-top: 2px;
}

.est-info__val {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}



/* ── Cierre ──────────────────────────────────────────────────────────────── */

.est-cierre {
    background: var(--text-dark);
    padding-block: clamp(100px, 14vw, 180px);
}

.est-cierre__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding-inline: var(--padding-h);
}

.est-cierre__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.07;
    color: var(--white);
    margin: 0;
}

.est-cierre__sub {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
    max-width: 52ch;
    margin: 0;
}

.est-cierre__btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.est-cierre__btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 32px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
    opacity: 1;
}

.est-cierre__btn--filled {
    background: var(--terracota);
    color: var(--white);
    border: 2px solid var(--terracota);
}

.est-cierre__btn--filled:hover {
    background: #b83e29;
    border-color: #b83e29;
    opacity: 1;
}

.est-cierre__btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.est-cierre__btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}


/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .est-lodge__bottom,
    .est-estacion__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .est-olivar__grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .est-olivar__col-photo {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .est-hero {
        height: calc(100svh - 48px);
        min-height: 500px;
    }

    .est-hero__content {
        padding: 48px var(--padding-h-mobile) 40px;
        gap: 16px;
    }

    /* Sections padding */
    .est-lodge__bottom,
    .est-estacion__grid {
        padding-inline: 0;
    }

    .est-info__datos {
        padding-inline: 0;
    }

    .est-lodge__header {
        align-items: start;
        text-align: left;
    }

    .est-olivar__col-text {
        padding: var(--section-v-mobile) var(--padding-h-mobile);
    }

    .est-lodge__imgs {
        grid-template-columns: 1fr;
    }

    .est-lodge__amenities {
        grid-template-columns: 1fr;
    }

    .est-hab__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Carrusel experiencias — mobile: scroll horizontal nativo */
    .est-exp__pin-outer {
        height: auto !important;
    }

    .est-exp__pin-inner {
        position: static;
        height: auto;
        padding-top: 0;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .est-exp__pin-inner::-webkit-scrollbar {
        display: none;
    }

    .est-exp__track {
        padding-inline: var(--padding-h-mobile);
        transform: none !important;
    }

    .est-exp__item {
        flex: 0 0 80vw;
        height: 55vw;
        scroll-snap-align: start;
    }

    .est-exp__excursiones {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px var(--padding-h-mobile);
        margin-block-start: 40px;
    }

    .est-info__tabla {
        grid-template-columns: 1fr;
    }

    .est-info__fila {
        grid-template-columns: 1fr;
        gap: 4px;
    }

.est-cierre__inner {
        padding-inline: var(--padding-h-mobile);
    }

    .est-cierre__btns {
        flex-direction: column;
        width: 100%;
    }

    .est-cierre__btn {
        width: 100%;
        justify-content: center;
    }
}


/* ── Espacios comunes ────────────────────────────────────────────────────── */

.est-lodge__comunes {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: center;
    padding-inline: var(--padding-inner-h);
    padding-block: 90px 48px;
}

.est-lodge__comunes-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 24px;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

.est-lodge__comunes-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
}

.est-lodge__icons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: start;
}

.est-lodge__icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.est-lodge__icon-item img {
    height: 56px;
    width: auto;
    flex-shrink: 0;
}

.est-lodge__icon-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-dark);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .est-lodge__comunes {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-block: 48px 32px;
        padding-inline: 0;
    }

    .est-lodge__icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }
}


/* ── Slider galería ──────────────────────────────────────────────────────── */

.est-slider {
    background: var(--bg-green);
    padding-block: 0 180px;
}

.est-slider__viewport {
    position: relative;
    overflow: hidden;
}

.est-slider__track {
    display: flex;
    gap: 16px;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

.est-slider__slide {
    flex: 0 0 60vw;
    flex-shrink: 0;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.est-slider__slide.is-active {
    cursor: zoom-in;
}

.est-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.6s ease;
}

.est-slider__slide.is-active img {
    transform: scale(1.02);
}

.est-slider__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.22);
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.est-slider__slide.is-active .est-slider__overlay {
    opacity: 0;
}

.est-slider__caption {
    position: absolute;
    bottom: 24px;
    left: 28px;
    color: var(--white);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    z-index: 2;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.est-slider__slide.is-active .est-slider__caption {
    opacity: 1;
    transform: translateY(0);
}

.est-slider__controls {
    position: absolute;
    bottom: 24px;
    right: calc(20vw + 24px);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.est-slider__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.est-slider__btn:hover {
    background: var(--white);
    transform: scale(1.06);
}

.est-slider__btn svg {
    pointer-events: none;
    flex-shrink: 0;
}

/* Fullscreen viewer */

.est-fs {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.est-fs.is-open  { opacity: 1; }
.est-fs[hidden]  { display: none; }

.est-fs__wrap {
    position: relative;
    max-width: min(90vw, 160vh);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.28, 0.64, 1), opacity 0.35s ease;
}

.est-fs.is-open .est-fs__wrap {
    transform: scale(1);
    opacity: 1;
}

.est-fs__img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.est-fs__img.is-leaving-next { opacity: 0; transform: translateX(-28px); }
.est-fs__img.is-leaving-prev { opacity: 0; transform: translateX(28px);  }

@keyframes est-fs-enter-next {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0);    }
}
@keyframes est-fs-enter-prev {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0);     }
}

.est-fs__img.is-entering-next { animation: est-fs-enter-next 0.3s ease forwards; }
.est-fs__img.is-entering-prev { animation: est-fs-enter-prev 0.3s ease forwards; }

.est-fs__caption {
    position: absolute;
    bottom: 20px;
    left: 24px;
    color: var(--white);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.2;
    pointer-events: none;
}

.est-fs__close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1;
}

.est-fs__close:hover { background: rgba(255, 255, 255, 0.22); }

.est-fs__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1;
}

.est-fs__nav:hover  { background: rgba(255, 255, 255, 0.2); }
.est-fs__nav--prev  { left: 24px; }
.est-fs__nav--next  { right: 24px; }

@media (max-width: 768px) {
    .est-slider { padding-block: 48px; }

    .est-slider__slide {
        flex: 0 0 80vw;
        aspect-ratio: 3 / 2;
    }

    .est-slider__controls { right: calc(10vw + 16px); }

    .est-slider__btn { width: 40px; height: 40px; }

    .est-fs__nav--prev { left: 12px; }
    .est-fs__nav--next { right: 12px; }
    .est-fs__caption   { font-size: 17px; bottom: 14px; left: 16px; }
}
