.caja-page > * {grid-column: 1/-1;}
#caja_p-intro > * {grid-column: 1/-1;}

/* INTRO */
@media only screen and (min-width: 1024px) {
    #caja_p-intro {
        grid-row: 1;
        height: calc(100vh - 9rem);
    }
}

/* 
THUMBNAIL
*/
@media only screen and (min-width: 1024px) {
    #caja_p-thumbnail {
        grid-column: 4/-4;
        width: 100%;
        height: inherit;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #caja_p-thumbnail img {
        width: 100%;
        max-height: 80vh;
        padding: 1rem;
        object-fit: contain;
    }
}


/* 
TITLE
*/
#caja_p-title {
    grid-column: 1/-1;
    /* position: sticky; */
    top: 6rem;
    z-index: 10;
}

#caja_p-title h2,
#caja_p-title h3 {
    grid-column: 3/-1;
    width: fit-content;
}
@media only screen and (min-width: 1024px) {
    #caja_p-title {
        position: fixed;
        top: 7.25rem;
        left: calc(50vw + 2.5rem);
        right: 12.5rem;
    }
}


/* 
BUY
*/
#caja_p-buy {
    position: sticky;
    top: calc(10vw + 2rem);
    grid-column: 3/-1;
    width: 12rem;
    z-index: 100;
}
#caja_p-buy > p {white-space: break-spaces;}
@media only screen and (min-width: 1024px) {
    #caja_p-buy {
        position: fixed;
        top: 6.75rem;
        right: 1rem;
        height: fit-content;
        white-space: nowrap;
        justify-self: end;
    }

    /* .shopify-buy__layout-vertical {display: flex;} */
}
#caja_p-buy .caja_p-purchase:not(:last-of-type) {border-bottom: 3px solid black;}
.caja_p-purchase {max-width: none !important;}



/* 
RECIPE
*/
#caja_p-recipe video {
    aspect-ratio: 1/1;
    object-fit: cover;
}

.caja_p-recipe-step span:first-of-type {
    min-width: 2rem;
}

@media only screen and (min-width: 1024px) {
    #caja_p-recipe {
        grid-column: -3/-1;
        grid-row: 1;
        height: fit-content;
        margin-top: auto;

    }
}


/* 
ORDER
*/
#caja_p-order {margin-top: 1rem;}
#caja_p-order > img {
    width: 14rem;
}

#caja-countdown {
    width: fit-content;
    margin-top: 1rem;
}

#caja-countdown--container {column-gap: .5rem;}
#caja-countdown--container div {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.caja-countdown--number {
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    color: var(--c-clear);
    width: 5.5rem;
    height: 5.5rem;
}

.caja-countdown--caption {margin-top: .25em;}

@media only screen and (min-width: 1024px) {
    #caja_p-order {
        margin-top: 0;
        grid-column: 1/4;
        grid-row: 1;
    }
}

@media (hover: hover) {
    #caja_p-buy > a:hover {
        background: var(--c-orange) !important;
        color: black !important;
    }
}


/* DESCRIPTION */
@media only screen and (min-width: 1024px) {
    #caja_p-description {columns: 3;}
}


/* 
INFORMATION
*/
@media only screen and (min-width: 1024px) {
    #caja_p-information {
        grid-column: 1/4;
        grid-row: 1;
        margin-top: auto;
    }
} 

/* 
INFORMATION
*/
#caja_p-information-table dt {height: auto;}
#caja_p-information-table dt {width: 60%;}
#caja_p-information-table dd {width: 40%;}
@media only screen and (min-width: 1024px) {
    #caja_p-information {
        grid-column: 1/4;
        grid-row: 1;
        margin-top: auto;
    }
}



/* 
DISHES
*/
@media only screen and (min-width: 1024px) {
    #caja_p-dishes {margin-bottom: 10rem;}
}
.dish_b {grid-column: 1/-1;}
@media only screen and (min-width: 1024px) {
    .dish_b {
        padding: 0 4rem;
        margin-bottom: -14rem !important;
    }
    .dish_b:nth-of-type(1),
    .dish_b:nth-of-type(4) {grid-column: 5/-5;}
    .dish_b:nth-of-type(2) {grid-column: 1/5;}
    .dish_b:nth-of-type(3) {grid-column: -5/-1;}
}

.dish_b:nth-child(3) img {
    scale: 1.1;
    margin-bottom: 18px;
}

#menu_p-video_b-video {
    position: fixed;
    width: 15vw;
    padding: 0;
    object-fit: cover;
    aspect-ratio: 1/1;
}




/* 
GALLERY
*/
#caja_p-gallery>div {
    min-width: 100vw;
    max-width: 100vw;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-right: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
}

#caja_p-gallery figure {
    min-width: 80vw;
    max-width: 80vw;
    aspect-ratio: 4/5;
    object-fit: cover;
    margin-left: 1rem;
    scroll-snap-align: center;
    cursor: pointer;
}

#caja_p-gallery img {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

@media only screen and (min-width: 1024px) {
    #caja_p-gallery figure {
        min-width: 25vw;
        max-width: 25vw;
    }
}

@media (hover: hover) {
    #caja_p-gallery figure:hover img {transform: scale(1.05);}
}


#caja_p-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-backdrop-filter: blur(2rem);
    backdrop-filter: blur(2rem);
    background: rgba(255, 255, 255, .5);
    visibility: hidden;
    z-index: 250;
}

#caja_p-overlay>button {
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

#caja_p-overlay>button img {height: 1rem;}

#caja_p-overlay>img {
    width: 100%;
    max-width: fit-content;
    max-height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

#caja_p-overlay>nav {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#caja_p-overlay>nav div {
    width: 50%;
    height: 100%;
}

#caja_p-overlay>nav button {
    margin-top: auto;
    height: fit-content;
}

@media only screen and (min-width: 1024px) {
    #caja_p-overlay>nav button {margin-bottom: auto;}
}

#caja_p-overlay>nav button img {
    width: auto;
    height: 1.5rem;
}
#caja_p-overlay>nav div:nth-of-type(2) button {margin-left: auto;}


/* 
QA
*/
#caja_p-qa > * {grid-column: 1/-1;}
#caja_p-qa > h2 {margin-bottom: 2rem;}
#caja_p-qa > li:not(:last-of-type) {margin-bottom: 3rem;}
@media only screen and (min-width: 1024px) {
    #caja_p-qa>li {grid-column: span 4;}
}



/* 
MEDIA
*/
#caja_p-media {
    width: 100vw;
    height: 100vh;
    margin-left: -1rem;
    margin-right: -1rem;
}
#caja_p-media img {
    height: 100%;
    object-fit: cover;
}
