/* Five-image midnight aquatic campaign gallery, scoped to the foaming face-wash product page. */
#cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-main-image{aspect-ratio:1;background:#0f1b27;border:1px solid #3c5265}
#cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-image-stage{background-image:none}
#cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-image-stage img{width:100%;height:100%;object-fit:contain;position:static;padding:0;margin:0}
#cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-image-grid button{border:1px solid #344d61;background:#0f1b27}
#cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-image-grid img{object-fit:contain;padding:0}
#cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-image-grid span{padding:32px 15px 14px;font-size:10px;letter-spacing:.09em;background:linear-gradient(transparent,rgba(6,16,26,.85))}
#cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight button:focus-visible{outline:2px solid #c2d8e6;outline-offset:4px}
/* Keep the square cover within the first viewport, including header and breadcrumb space. */
@media(min-width:801px){
 #cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight{width:100%;max-width:min(680px,calc(100svh - 192px));margin-inline:auto}
}
@media(max-width:800px){
 #cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-main-image{width:min(100%,calc(100svh - 152px));height:auto;max-height:none;margin-inline:auto}

 #cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-thumbnails{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;overflow:visible;padding-bottom:0}
 #cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-thumbnails button{aspect-ratio:1;min-width:0}
 #cosmecos-recreation[data-product="face-wash"] .pdp-gallery--midnight .pdp-thumbnails img{width:100%;height:100%;object-fit:cover}
}

#cosmecos-recreation[data-product="face-wash"] .pdp-lightbox-stage{background:#0f1b27}
