/* Opted-in product details only; category pages keep the site header. */
body.product-detail-page {
    background: #fff !important;
}

body.product-detail-page > header {
    display: none !important;
}

body.product-detail-page > #container {
    padding-top: 24px;
}

.product-detail-page #reelcontainer > .product-heading-row {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    margin-bottom: 40px !important;
}

.product-heading-title {
    min-width: 0;
}

.product-detail-page #reelcontainer .product-heading-title > .d-flex {
    align-items: flex-start;
}

.product-detail-page #reelcontainer .product-heading-title > .d-flex,
.product-detail-page #reelcontainer .product-heading-title > h2,
.product-detail-page #reelcontainer .product-heading-title > .d-flex > h2,
.product-detail-page #reelcontainer .product-heading-title .beige-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.product-detail-page #reelcontainer .product-heading-title > .d-flex > h2:not(.dropdownCate-title) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 12px !important;
    margin-right: 12px !important;
}

.product-detail-page #reelcontainer .product-heading-title > .d-flex > h2:not(.dropdownCate-title):first-child {
    margin-left: 0 !important;
}

.product-detail-page #reelcontainer .product-heading-title > .d-flex > h2:not(.dropdownCate-title):last-child {
    margin-right: 0 !important;
}

.product-heading-collection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.product-collection-label {
    margin: 0;
    color: #b9a18d;
    font-family: 'Source Sans Pro', 'Source Sans', Arial, sans-serif;
    font-size: 25px;
    font-weight: 100;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    transform: translateX(-3px);
    transition: color .2s ease;
}

.product-detail-page .product-collection-label:hover,
.product-detail-page .product-collection-label:focus-visible {
    color: #967a64 !important;
}

@media (min-width: 769px) {
    /* Keep the same gap to the brown block, including older title wrappers. */
    .product-detail-page #reelcontainer .product-heading-title > .d-flex,
    .product-detail-page #reelcontainer .product-heading-title .lithographies-dropdown-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.product-heading-actions {
    display: flex;
    align-items: center;
}

.product-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #b9a18d;
    font-size: 16px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: .04em;
    white-space: nowrap;
}

.product-all-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    transform: translateY(-.04em);
}

.product-artist-details {
    position: relative;
    color: #b9a18d;
    /* Keep the whole credit above the collection selector (z-index: 50). */
    z-index: 60;
}

.product-artist-details > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    list-style: none;
    cursor: pointer;
}

.product-artist-details > summary::-webkit-details-marker {
    display: none;
}

.product-artist-symbol {
    display: inline-flex;
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.product-artist-symbol svg {
    width: 100%;
    height: 100%;
}

.product-artist-details[open] .product-artist-symbol {
    transform: rotate(45deg);
}

.product-artist-credit {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: max-content;
    margin: 0;
    padding: 8px 12px;
    background: #fff;
    font-size: 18px;
    line-height: 1.3;
}

@media (max-width: 768px), (pointer: coarse) and (max-device-width: 720px) {
    /* The mobile artwork canvas is 973px wide. Give wide dropdowns their own row. */
    .product-detail-page #reelcontainer > .product-heading-row {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        row-gap: 20px;
        margin-bottom: 8px !important;
    }

    .product-heading-collection {
        display: contents;
    }

    .product-all-link {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        min-height: 96px;
        font-size: 38px;
    }

    .product-all-arrow {
        font-size: 60px;
    }

    .product-collection-label {
        grid-column: 2;
        grid-row: 1;
        font-size: 43px;
        font-family: 'Source Sans Pro', sans-serif;
        font-weight: 200;
    }

    .product-heading-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .product-heading-title {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        width: 100%;
    }

    .product-artist-details > summary {
        min-width: 96px;
        min-height: 96px;
    }

    .product-artist-symbol {
        width: 34px;
        height: 34px;
    }

    .product-artist-credit {
        left: auto;
        right: 0;
        font-size: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-collection-label,
    .product-artist-symbol {
        transition: none;
    }
}
