/* Clean branded product collection with modal viewer. */
.branded-gallery{padding:clamp(2.5rem,5vw,5rem) 0;background:#f6f8fb}
.branded-gallery-header{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:2rem}
.branded-gallery-header h2{font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.2;color:#102442;margin-bottom:.7rem}
.branded-gallery-header p{max-width:640px;color:#64748b;font-size:.95rem}
.branded-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.branded-gallery-card{margin:0;min-width:0;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 6px 20px #0f274506}
.branded-gallery-art{position:relative;display:block;background:#f4f6f8;overflow:hidden}
.branded-gallery-art>img{width:100%;height:auto;aspect-ratio:9/16;object-fit:contain;display:block}
.branded-gallery-logo{position:absolute;left:0;bottom:0;width:100%;height:11%;display:flex;justify-content:center;align-items:center;background:#0b1326}
.branded-gallery-logo img{width:62%;height:auto;max-height:80%;object-fit:contain}
.branded-gallery-card figcaption{padding:1.15rem 1.25rem 1.35rem}
.branded-gallery-card h3{font-size:1.12rem;line-height:1.4;color:#102442;margin-bottom:.4rem}
.branded-gallery-card p{font-size:.85rem;line-height:1.6;color:#64748b;margin-bottom:.8rem}
.branded-gallery-note{margin:1.3rem 0;color:#64748b;font-size:.8rem;line-height:1.7}
.branded-gallery a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(max-width:950px){.branded-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.branded-gallery-header{display:block}}
@media(max-width:520px){.branded-gallery-grid{grid-template-columns:minmax(0,1fr);gap:1.2rem}.branded-gallery-card{max-width:400px;width:100%;margin-inline:auto}.branded-gallery-header h2{font-size:1.9rem}}

/* Large image modal: native focus containment and Escape handling. */
.product-lightbox{position:fixed;inset:0;margin:0;padding:clamp(.75rem,2vw,1.5rem);width:100%;height:100%;max-width:none;max-height:none;border:0;background:transparent;color:#f8fafc;overflow:auto}
.product-lightbox::backdrop{background:rgba(3,10,23,.93)}
.product-lightbox[open]{display:flex;align-items:center;justify-content:center}
.product-lightbox-panel{width:min(1100px,100%);max-height:100%;display:flex;flex-direction:column;min-height:0;background:#0b1326;border:1px solid #ffffff24;border-radius:14px;box-shadow:0 25px 80px #0009;overflow:hidden}
.product-lightbox-header{display:flex;align-items:center;gap:1rem;padding:.65rem 1rem;border-bottom:1px solid #ffffff24;flex-shrink:0}
.product-lightbox-header h2{font-size:1rem;line-height:1.4;flex:1;min-width:0;color:#fff}
.product-lightbox-counter{font-size:.85rem;color:#cbd5e1;font-variant-numeric:tabular-nums;white-space:nowrap}
.product-lightbox-close,.product-lightbox-nav{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #ffffff45;background:#12223b;color:#fff;border-radius:8px;font-size:1.5rem;flex-shrink:0}
.product-lightbox-body{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:.5rem;padding:.75rem;min-height:0}
.product-lightbox-media{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}
.product-lightbox-image{display:block;max-width:100%;width:auto;height:auto;max-height:calc(100dvh - 170px);object-fit:contain}
.product-lightbox-status{font-size:.8rem;text-align:center;color:#cbd5e1;padding:0 .75rem .6rem;flex-shrink:0}
.product-lightbox-status:empty{display:none}
.product-lightbox button:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
@media(max-width:600px){.product-lightbox{padding:.5rem}.product-lightbox-header{padding:.5rem;gap:.5rem}.product-lightbox-body{grid-template-columns:44px minmax(0,1fr) 44px;gap:.2rem;padding:.4rem}.product-lightbox-nav{min-width:44px}.product-lightbox-header h2{font-size:.9rem}.product-lightbox-image{max-height:calc(100dvh - 150px)}}
@media(max-height:500px){.product-lightbox-image{max-height:calc(100dvh - 115px)}.product-lightbox-header{padding:.25rem .65rem}}
