.layout-publication.publication-home {
    --publication-home-content-width: 1280px;
    --publication-detail-font-size: 0.7rem;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.layout-publication.publication-home main.publication-main {
    max-width: none;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: #b0b0b0 transparent;
    padding: 0;
}

.publication-product {
    width: 100%;
    max-width: var(--publication-home-content-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
    font-size: 1rem;
    line-height: 1.65;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(2rem, 3.5vw, 3rem);
    padding-block: 0 clamp(3rem, 7vw, 6rem);
}

.product-hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto 1;
    align-self: start;
}

.product-information {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.publication-product h1 {
    margin-bottom: 0;
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #404040;
}

.product-subtitle {
    margin-block: 0.4rem 2rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #404040;
    line-height: 1.25;
}

.product-synopsis {
    font-size: 0.95rem;
    font-weight: 700;
    color: #666;
    line-height: 1.3;
}

.product-synopsis p {
    margin-bottom: 0.65rem;
}

.product-specs {
    margin: 0.5rem 0 0;
    font-size: 0.65rem;
    font-weight: 700;
    color: #000;
    line-height: 1.15;
}

.product-specs > div {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.1rem;
}

.product-specs dt {
    font-weight: 700;
}

.product-specs dd {
    margin: 0;
}

.product-specs a {
    color: inherit;
    text-underline-offset: 0.15em;
}

.product-specs > div:last-child {
    margin-bottom: 0;
}

.product-gallery .product-specs {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.1rem 0.6rem;
    margin-top: 0.75rem;
    color: #62625d;
}

.product-gallery .product-specs > div {
    display: contents;
}

.product-credits {
    margin: 0;
}

.product-credits > div {
    grid-template-columns: 8rem minmax(0, 1fr);
    column-gap: 0.6rem;
}

.product-purchase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.product-purchase > .btn {
    justify-self: end;
}

.layout-publication .product-purchase > .btn-primary {
    --bs-btn-font-size: 0.8rem;
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-border-radius: 50rem;
}

.product-section {
    padding-block: clamp(2.5rem, 6vw, 5rem);
    scroll-margin-top: 2rem;
}

.product-gallery-section {
    padding-top: 0;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.product-gallery > .product-purchase {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    padding-top: 0;
}

.product-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 1040;
}

.product-card {
    min-width: 0;
    margin: 0;
}

.product-card-visual {
    display: block;
    cursor: zoom-in;
}

.product-card-label {
    padding-top: 1.5rem;
    font-size: var(--publication-detail-font-size);
    font-weight: 700;
    color: #000;
}

.product-card-credit {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.65rem;
    color: #62625d;
    line-height: 1.15;
}

.product-editorial-images,
.product-making-images {
    display: grid;
    justify-items: center;
    max-width: 1200px;
    margin-inline: auto;
    padding-top: 0;
}

.product-editorial-images {
    grid-template-columns: minmax(0, 250px) 50px minmax(0, 625px) 75px minmax(0, 200px);
    align-items: center;
}

.product-making-images {
    grid-template-columns: minmax(0, 280px) 120px minmax(0, 300px) minmax(0, 1fr) minmax(0, 400px);
    align-items: start;
}

.product-editorial-images > img,
.product-making-images > img {
    display: block;
    width: 100%;
    height: auto;
}

.product-spread {
    grid-column: 1;
    align-self: end;
    max-width: 280px;
}

.product-dessin {
    grid-column: 3;
    max-width: 300px;
    margin-top: 1.5rem;
}

.product-covers {
    grid-column: 5;
    max-width: 400px;
}

.product-amateurs {
    grid-column: 1;
    max-width: 225px;
}

.product-ocana {
    grid-column: 3;
    max-width: 625px;
}

.product-coq {
    grid-column: 5;
    max-width: 200px;
}

.product-lightbox {
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 1rem;
    border: 0;
    background: #fff;
}

.product-lightbox::backdrop {
    background: rgb(0 0 0 / 75%);
}

.product-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.product-lightbox-header .btn-close {
    flex-shrink: 0;
}

.product-lightbox > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 7rem);
    margin-inline: auto;
    object-fit: contain;
}

@media (max-width: 1199.98px) {
    .product-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .product-hero-image {
        width: auto;
        max-width: min(100%, 500px);
        max-height: 60dvh;
        justify-self: center;
        object-fit: contain;
    }

    .product-information {
        padding-top: 0;
    }
}

@media (max-width: 991.98px) {
    .product-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-editorial-images,
    .product-making-images {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2.5rem;
    }

    .product-editorial-images > img,
    .product-making-images > img {
        grid-column: 1;
    }

    .product-dessin {
        margin-top: 0;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .product-editorial-images,
    .product-making-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2rem;
    }

    .product-making-images > .product-dessin {
        grid-column: 2;
    }

    .product-making-images > .product-covers {
        grid-column: 1 / -1;
    }

    .product-editorial-images > .product-ocana {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .product-editorial-images > .product-amateurs {
        grid-row: 2;
    }

    .product-editorial-images > .product-coq {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 575.98px) {
    .product-gallery,
    .product-purchase {
        grid-template-columns: minmax(0, 1fr);
    }
}
