.dish-page > * {grid-column: 1/-1;}
#dish_p-intro > * {grid-column: 1/-1;}

/*
NOVELTY
*/
#dish_p-novelty {
    position: fixed;
    top: calc(1.5rem + 7.5vw);
    left: 1rem;
    width: calc(var(--column-mobile) * 2 + 1rem);
}
@media only screen and (min-width: 1024px) {
    #dish_p-novelty {
        top: 6rem;
        height: 4rem;
        width: auto;
    }
}

/* INTRO */
#dish_p-description,
#dish_p-recipe,
#dish_p-information {grid-column: 1/-1;}

@media only screen and (min-width: 1024px) {
    #dish_p-intro {
        grid-row: 1;
    }

    #dish_p-intro-desktop {
        min-height: calc(100vh - 9rem);
    }
}

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

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


/* 
TITLE
*/
#dish_p-title {
    /* position: sticky; */
    top: 4.25rem;
    z-index: 10;
}
@media only screen and (min-width: 1024px) {
    #dish_p-title {top: 7.25rem;} 
}

#dish_p-title p {grid-column: 1/-1;}
#dish_p-title h2,
#dish_p-title h3 {
    grid-column: 3/-1;
    width: fit-content;
}
.shopify-buy-frame--product {grid-column: 1/-1;}
@media only screen and (min-width: 1024px) {
    #dish_p-title {
        position: fixed;
        left: 1rem;
        right: 50vw;
    }

    .shopify-buy-frame--product {justify-self: end;}
}


/* 
RECIPE
*/
#dish_p-recipe video {
    aspect-ratio: 1/1;
    object-fit: cover;
}
.dish_p-recipe-step span:first-of-type {min-width: 2rem;}
@media only screen and (min-width: 1024px) {
    #dish_p-recipe {
        grid-column: -4/-1;
        grid-row: 1;
        height: fit-content;
        margin-top: auto;
        
    }
}


/* 
INFORMATION
*/
#dish_p-information-table dt {height: auto;}
#dish_p-information-table dt:first-of-type {width: 100%;}
#dish_p-information-table dt:not(:first-of-type) {width: 25%;}
#dish_p-information-table dd {width: 75%;}

#dish_p-information-allergies img {
    width: auto;
    height: 1.25rem;
}
@media only screen and (min-width: 1024px) {
    #dish_p-information {
        grid-column: 1/4;
        grid-row: 1;
        margin-top: auto;
    }
} 


/* 
DETAILS
*/
#dish_p-details > * {grid-column: 1/-1;}
.dish_p-table p {background-color: black; color: var(--c-clear);}
.dish_p-table li {padding: .3rem;}
.dish_p-table li:not(:last-of-type) {border-bottom: 3px solid black;}
@media only screen and (min-width: 1024px) {
    .dish_p-table {grid-column: span 6 !important;}
    .dish_p-table ul {
        display: flex;
        flex-wrap: wrap;
        transform: translateY(-3px);
    }
    .dish_p-table li:not(:last-of-type) {border-bottom: 0;}
    .dish_p-table li {
        width: 50%;
        border-top: 3px solid black;
    }
    .dish_p-table li:nth-of-type(even) {border-left: 3px solid black;}
}


/* 
GALLERY
*/
#dish_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;
}

#dish_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;
}

#dish_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) {
    #dish_p-gallery figure {
        min-width: 25vw;
        max-width: 25vw;
    }
}
@media (hover: hover) {
    #dish_p-gallery figure:hover img {
        transform: scale(1.05);
    }
}


#dish_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;
}

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

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

#dish_p-overlay > nav {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
#dish_p-overlay > nav div {
    width: 50%;
    height: 100%;
}

#dish_p-overlay > nav button {
    margin-top: auto;
    height: fit-content;
}
@media only screen and (min-width: 1024px) {
    #dish_p-overlay>nav button {margin-bottom: auto;}
}
#dish_p-overlay > nav button img {
    width: auto;
    height: 1.5rem;
}
#dish_p-overlay > nav div:nth-of-type(2) button {margin-left: auto;}

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