.gastronomia-page {
    min-height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);

    background: var(--header-background);
    color: var(--white);
}


/* =========================================================
   ABERTURA
   ========================================================= */


.gastronomia-opening {
    width: 100%;

    padding:
        48px
        28px
        42px;

    background: var(--header-background);
}


.gastronomia-opening-inner {
    width: 100%;
    max-width: 1040px;

    margin: 0 auto;
}


.gastronomia-opening h1 {
    margin:
        0
        0
        30px;

    font-family: var(--montserrat);
    font-size: clamp(19px, 1.6vw, 25px);
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.12em;

    color: #aaa7a3;
}


/* =========================================================
   VÍDEO
   ========================================================= */


.gastronomia-video {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #11100f;
}


.gastronomia-video iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* =========================================================
   CAPA DO VÍDEO
   ========================================================= */


.gastronomia-video-cover {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #11100f;
}


.gastronomia-video-cover[hidden] {
    display: none;
}


.gastronomia-video-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    user-select: none;
    -webkit-user-drag: none;
}


.gastronomia-video-play {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.72);

    border-radius: 50%;

    background:
        rgba(26, 25, 24, 0.68);

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}


.gastronomia-video-play:hover {
    transform:
        translate(-50%, -50%)
        scale(1.06);

    background:
        rgba(26, 25, 24, 0.84);

    border-color: #ffffff;
}


.gastronomia-video-play span {
    display: block;

    width: 0;
    height: 0;

    margin-left: 6px;

    border-top:
        12px solid transparent;

    border-bottom:
        12px solid transparent;

    border-left:
        19px solid #ffffff;
}


/* =========================================================
   CONSENTIMENTO DO VÍDEO
   ========================================================= */


.gastronomia-video-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0) 58%
        ),
        #1a1918;

    text-align: center;
}


.gastronomia-video-placeholder[hidden] {
    display: none;
}


.gastronomia-video-message {
    width: min(620px, 100%);
}


.gastronomia-video-message p {
    max-width: 580px;

    margin:
        0
        auto
        24px;

    font-family: var(--montserrat);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;

    color: #c9c6c2;
}


.gastronomia-video-authorize,
.gastronomia-video-preferences {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin:
        0
        5px
        10px;

    padding:
        11px
        18px;

    font-family: var(--montserrat);
    font-size: 11px;
    line-height: 1;

    cursor: pointer;
}


.gastronomia-video-authorize {
    border: 1px solid #f0eeeb;

    background: #f0eeeb;

    color: #1a1918;

    font-weight: 600;

    letter-spacing: 0.08em;
}


.gastronomia-video-authorize:hover {
    background: #ffffff;

    border-color: #ffffff;
}


.gastronomia-video-preferences {
    border:
        1px solid
        rgba(255, 255, 255, 0.22);

    background: transparent;

    color: #d0cdca;

    font-weight: 500;

    letter-spacing: 0.06em;
}


.gastronomia-video-preferences:hover {
    background:
        rgba(255, 255, 255, 0.07);

    border-color:
        rgba(255, 255, 255, 0.38);

    color: #ffffff;
}


/* =========================================================
   GALERIA
   ========================================================= */


.gastronomia-gallery {
    width: 100%;

    padding:
        0
        28px
        72px;

    background: var(--header-background);
}


.gastronomia-gallery-grid {
    width: 100%;
    max-width: 1460px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 8px;
}


/* =========================================================
   ITEM DA GRELHA
   ========================================================= */


.gastronomia-gallery-item {
    position: relative;

    width: 100%;
    aspect-ratio: 3 / 2;

    overflow: hidden;

    background: #11100f;

    cursor: pointer;

    outline: none;
}


.gastronomia-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1);

    transition:
        transform 320ms ease,
        filter 320ms ease;

    user-select: none;
    -webkit-user-drag: none;
}


.gastronomia-gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        rgba(26, 25, 24, 0);

    transition:
        background 260ms ease;
}


.gastronomia-gallery-item:hover img,
.gastronomia-gallery-item:focus-visible img {
    transform: scale(1.025);

    filter: brightness(0.83);
}


.gastronomia-gallery-item:hover::after,
.gastronomia-gallery-item:focus-visible::after {
    background:
        rgba(26, 25, 24, 0.16);
}


/* =========================================================
   LUPA DA GRELHA
   ========================================================= */


.gastronomia-gallery-zoom-indicator {
    position: absolute;

    left: 50%;
    top: 50%;

    z-index: 3;

    width: 48px;
    height: 48px;

    transform:
        translate(-50%, -50%)
        scale(0.82);

    opacity: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.74);

    border-radius: 50%;

    background:
        rgba(26, 25, 24, 0.48);

    pointer-events: none;

    transition:
        opacity 180ms ease,
        transform 180ms ease,
        background 180ms ease;
}


.gastronomia-gallery-zoom-indicator::before {
    content: "";

    position: absolute;

    left: 15px;
    top: 14px;

    width: 12px;
    height: 12px;

    border:
        2px solid
        #ffffff;

    border-radius: 50%;
}


.gastronomia-gallery-zoom-indicator::after {
    content: "";

    position: absolute;

    width: 9px;
    height: 2px;

    left: 27px;
    top: 29px;

    background: #ffffff;

    transform: rotate(45deg);

    transform-origin: left center;
}


.gastronomia-gallery-item:hover
.gastronomia-gallery-zoom-indicator,
.gastronomia-gallery-item:focus-visible
.gastronomia-gallery-zoom-indicator {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/* =========================================================
   LIGHTBOX
   ========================================================= */


body.lightbox-open {
    overflow: hidden;
}


.fb-lightbox {
    position: fixed;

    inset: 0;

    z-index: 200000;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background:
        rgba(26, 25, 24, 0.985);

    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}


.fb-lightbox.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.fb-lightbox-stage {
    position: absolute;

    left: 74px;
    right: 74px;
    top: 58px;
    bottom: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    cursor: default !important;
}


.fb-lightbox-image {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    cursor: default !important;

    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   LIGHTBOX — FECHAR
   ========================================================= */


.fb-lightbox-close {
    position: absolute;

    right: 27px;
    top: 18px;

    z-index: 5;

    width: 46px;
    height: 46px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    color: #dedbd7;

    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;

    opacity: 0.8;

    transition:
        opacity 150ms ease,
        transform 150ms ease;
}


.fb-lightbox-close:hover {
    opacity: 1;

    transform: scale(1.07);
}


/* =========================================================
   LIGHTBOX — SETAS
   ========================================================= */


.fb-lightbox-nav {
    position: absolute;

    top: 50%;

    z-index: 5;

    transform:
        translateY(-50%);

    width: 54px;
    height: 86px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background:
        rgba(255, 255, 255, 0.025);

    color: #d8d5d1;

    font-family: Arial, sans-serif;
    font-size: 54px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;

    opacity: 0.68;

    transition:
        opacity 150ms ease,
        background 150ms ease;
}


.fb-lightbox-nav:hover {
    opacity: 1;

    background:
        rgba(255, 255, 255, 0.06);
}


.fb-lightbox-prev {
    left: 10px;
}


.fb-lightbox-next {
    right: 10px;
}


/* =========================================================
   LIGHTBOX — COPYRIGHT
   ========================================================= */


.fb-lightbox-copyright {
    position: absolute;

    left: 24px;
    bottom: 15px;

    z-index: 4;

    font-family: var(--montserrat);
    font-size: 9px;
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.08em;

    color:
        rgba(255, 255, 255, 0.38);

    pointer-events: none;
}


/* =========================================================
   VOLTAR AO INÍCIO DA GRELHA
   ========================================================= */


.gallery-return-button {
    position: fixed;

    right: 27px;
    bottom: 27px;

    z-index: 9000;

    width: 54px;
    height: 54px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(26, 25, 24, 0.92);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(12px)
        scale(0.94);

    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 180ms ease;

    box-shadow:
        0
        6px
        22px
        rgba(0, 0, 0, 0.22);
}


.gallery-return-button.is-visible {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


.gallery-return-button:hover {
    transform:
        translateY(-2px)
        scale(1.04);
}


.gallery-return-ring {
    position: absolute;

    inset: 4px;

    border:
        1px solid
        rgba(255, 255, 255, 0.19);

    border-top-color:
        rgba(255, 255, 255, 0.88);

    border-radius: 50%;

    animation:
        gallery-ring-spin
        5s
        linear
        infinite;
}


.gallery-return-arrow {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #e4e1dd;

    font-family: var(--montserrat);
    font-size: 19px;
    font-weight: 300;

    line-height: 1;

    transform:
        translateY(-1px);
}


@keyframes gallery-ring-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


body.lightbox-open
.gallery-return-button {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   TABLET
   ========================================================= */


@media (max-width: 1180px) {

    .gastronomia-opening-inner {
        max-width: 920px;
    }

}


@media (max-width: 900px) {

    .gastronomia-gallery-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .fb-lightbox-stage {
        left: 56px;
        right: 56px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */


@media (max-width: 760px) {

    .gastronomia-opening {
        padding:
            36px
            14px
            30px;
    }


    .gastronomia-opening h1 {
        margin-bottom: 22px;

        font-size: 17px;

        letter-spacing: 0.11em;
    }


    .gastronomia-video-play {
        width: 64px;
        height: 64px;
    }


    .gastronomia-video-play span {
        margin-left: 5px;

        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }


    .gastronomia-video-placeholder {
        padding:
            24px
            18px;
    }


    .gastronomia-video-message p {
        margin-bottom: 18px;

        font-size: 12px;
        line-height: 1.6;
    }


    .gastronomia-video-authorize,
    .gastronomia-video-preferences {
        width: 100%;

        margin:
            0
            0
            9px;
    }


    .gastronomia-gallery {
        padding:
            0
            14px
            50px;
    }


    .fb-lightbox-stage {
        left: 16px;
        right: 16px;
        top: 58px;
        bottom: 54px;
    }


    .fb-lightbox-nav {
        width: 42px;
        height: 68px;

        font-size: 42px;

        background:
            rgba(26, 25, 24, 0.56);
    }


    .fb-lightbox-prev {
        left: 4px;
    }


    .fb-lightbox-next {
        right: 4px;
    }


    .fb-lightbox-close {
        right: 10px;
        top: 7px;
    }


    .fb-lightbox-copyright {
        left: 50%;
        bottom: 17px;

        width: calc(100% - 32px);

        transform:
            translateX(-50%);

        text-align: center;

        font-size: 8px;
    }


    .gallery-return-button {
        right: 16px;
        bottom: 16px;

        width: 50px;
        height: 50px;
    }


    .gastronomia-gallery-zoom-indicator {
        display: none;
    }

}


@media (max-width: 620px) {

    .gastronomia-gallery-grid {
        grid-template-columns: 1fr;

        gap: 8px;
    }

}