/* Shared product details, multi-image gallery and accessible lightbox. */
.product-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6vw;
    padding-block: 35px 85px;
    align-items: start;
}

.gallery-main {
    position: relative;
    display: block;
    height: 580px;
    padding: 35px;
    background: #efefea;
}

.gallery-main > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-main > span {
    position: absolute;
    bottom: 16px;
    right: 18px;
    background: #ffffffe8;
    padding: 5px 13px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.gallery-main .icon {
    width: 16px;
    height: 16px;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border: 1px solid var(--line);
    padding: 5px;
    background: #eee;
}

.gallery-thumb img {
    height: 100%;
    object-fit: contain;
}

.gallery-thumb.active {
    border: 2px solid var(--copper);
}

.gallery-caption {
    font-size: 13px;
    color: #7b7e77;
    margin-top: 15px;
}

.product-info {
    padding-top: 25px;
}

.product-info .eyebrow {
    display: inline-block;
}

.product-info h1 {
    font-size: clamp(30px, 3vw, 46px);
}

.product-info > p:not(.product-code) {
    color: var(--muted);
    font-size: 15px;
}

.product-specs {
    margin: 30px 0;
    border-top: 1px solid var(--line);
}

.product-specs > div {
    display: flex;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-size: 13px;
}

.product-specs dt {
    min-width: 115px;
    color: #7a7d76;
}

.product-specs dd {
    margin: 0;
}

.product-call {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 15px;
    margin-top: 20px;
}

.product-description {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 50px;
    padding-block: 55px;
    border-block: 1px solid var(--line);
}

.product-description h2 {
    font-size: 30px;
}

.lightbox {
    border: 0;
    background: #191e22;
    color: white;
    max-width: 96vw;
    width: 1300px;
    height: 92vh;
    max-height: 92vh;
    padding: 50px 60px;
    overflow: hidden;
}

.lightbox::backdrop {
    background: #101418ed;
}

.lightbox-image {
    width: 100%;
    height: calc(100% - 35px);
    object-fit: contain;
}

.lightbox-caption {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 20px;
    font-size: 36px;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 48%;
    font-size: 27px;
    padding: 10px;
}

.lightbox-prev {
    left: 5px;
}

.lightbox-next {
    right: 5px;
}

/* Page surface and material contrast. */
.gallery-main {
    background: #f0efec;
}

.product-description {
    background: #f5f4f1;
    padding: 28px;
    border-left: 4px solid #98714d;
}

@media (max-width: 1023px) {
    .gallery-main {
        height: 470px;
        padding: 22px;
    }

    .product-detail {
        gap: 35px;
    }

}

@media (max-width: 767px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 55px;
    }

    .gallery-main {
        height: 420px;
        padding: 20px;
    }

    .gallery-thumb {
        width: 57px;
        height: 57px;
    }

    .product-info h1 {
        font-size: 34px;
    }

    .product-info .button {
        width: 100%;
    }

    .product-description {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-block: 35px;
    }

    .lightbox {
        padding: 60px 32px 30px;
        width: 100vw;
        max-width: 100vw;
        height: 85vh;
    }

    .lightbox-caption {
        font-size: 13px;
    }

}
