/* Product media: one image, one purpose; restrained catalogue scale. */
.kit-page .gallery-main{height:350px;aspect-ratio:auto;min-height:0;display:grid;place-items:center;padding:22px;border:1px solid #E2E8F0}
.kit-page .gallery-main img{width:100%;height:100%;max-height:305px;object-fit:contain}
.kit-page .gallery-main .gallery-native-size{max-width:100%;max-height:100%;width:auto;height:auto;}
.kit-page .gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 6px;scrollbar-width:thin}
.kit-page .gallery-thumbs button{width:64px;height:60px;flex:none}
.kit-page .gallery-thumbs img{width:100%;height:100%;object-fit:contain}
.kit-page .gallery-thumbs button[aria-pressed=true]{display:grid;place-items:center;color:#1E3A8A;font-size:12px;font-weight:700}
.kit-page .gallery-caption{font-size:12px;line-height:1.5;color:#475569;max-width:60ch}
.gallery-video-jump{display:inline-block;margin-top:10px;font-size:13px;color:#1E3A8A;text-decoration:underline;text-underline-offset:3px}
.kit-page .rich-section-heading h2{font-size:24px;line-height:1.25;margin-bottom:10px;letter-spacing:-.5px}
.kit-page .rich-section-heading>p{max-width:68ch;font-size:15px;line-height:1.65}
.kit-page .gallery-unavailable{margin:0;padding:18px;border:1px solid #CBD5E1;border-radius:6px;line-height:1.5}
.brand-video-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 12px}
.brand-video-tabs button{border:1px solid #CBD5E1;border-radius:6px;background:white;font:inherit;font-size:13px;color:#334155;padding:9px 12px;cursor:pointer;min-height:40px}
.brand-video-tabs button[aria-pressed=true]{background:#1E3A8A;border-color:#1E3A8A;color:white}
.brand-video-stage{margin:0}
.brand-video-stage video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#0F172A;border:0;border-radius:12px}
.brand-video-stage figcaption,.video-error{font-size:12px;color:#475569;line-height:1.6;margin-top:9px}
.brand-video-stage figcaption a{color:#1E3A8A;text-decoration:underline;text-underline-offset:3px}
.video-error{padding:12px;background:#FFFBEB;border:1px solid #F59E0B;border-radius:6px}
.kit-page .rich-lightbox-image{max-height:80vh;width:auto;max-width:100%;margin-inline:auto;object-fit:contain}
@media(max-width:760px){
 .kit-page .gallery-main{height:290px;padding:18px}.kit-page .gallery-main img{max-height:250px}
 .brand-video-tabs button{font-size:12px;min-height:44px}
}

.pdp-page[data-product-id] .related-photo{display:block;overflow:hidden;background:#fff}
.pdp-page[data-product-id] .related-photo img{display:block}
.pdp-page[data-product-id] [data-related-sku="D03"] .related-photo img{transform:scale(1.35)}
.pdp-page[data-product-id] [data-related-sku="D04"] .related-photo img{transform:scale(1.35)}
@media(max-width:760px){
 .pdp-page[data-product-id] .related-photo{grid-row:1/3}
}
