.image-discovery-controls{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:10px 0}.image-discovery-controls form{display:flex;gap:5px;flex:1 1 260px}.image-discovery-controls input{width:100%;min-width:80px;padding:8px;border:1px solid #7698ad;border-radius:6px}.image-discovery-controls button,.image-discovery-controls select,#picture-gallery button,#picture-gallery+button{font:inherit;color:#153d58;border:1px solid #8caabd;background:#f1f8fc;border-radius:7px;padding:8px;cursor:pointer}.image-discovery-controls button{white-space:nowrap}.image-discovery-links{display:flex;gap:12px;flex-wrap:wrap;font-size:11px}.image-discovery-links a{color:#155271}.picture-gallery .discovery-picture{padding:0;overflow:hidden;display:flex;flex-direction:column;text-align:left;min-width:0}.picture-gallery .discovery-picture span{padding:8px;font-size:11px}.image-unavailable{min-height:90px}button:disabled{cursor:default}.image-cinema{box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:12px;background:#071a2b;color:#f4f9ff;border:0}.image-cinema[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto 68px minmax(85px,16vh);gap:8px}.image-cinema::backdrop{background:#071a2b}.image-cinema header{display:flex;justify-content:space-between;align-items:center;gap:10px}.image-cinema h2{margin:0;font-size:17px}.image-cinema button{border:1px solid #90b9cf;border-radius:7px;background:#163c58;color:white;cursor:pointer;min-width:40px;min-height:38px}.image-cinema button:focus-visible,.image-discovery-controls :focus-visible,.discovery-picture:focus-visible{outline:3px solid #ffd779;outline-offset:2px}.image-cinema-stage{min-height:0;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;overflow:hidden}.image-cinema-stage>img{width:100%;height:100%;min-height:0;object-fit:contain}.image-cinema-stage>button{height:65px;font-size:38px}.image-cinema-stage>p{grid-column:2}.image-cinema-stage>img[hidden]{display:none}.image-cinema-stage>button:last-child{grid-column:3}.image-cinema-caption{margin:0;font-size:11px;line-height:1.4;max-height:60px;overflow:auto}.image-cinema a{color:#b3e0ff}.image-cinema-strip{display:flex;overflow:auto;gap:7px;min-height:0}.image-cinema-strip button{flex:0 0 88px;padding:2px;overflow:hidden}.image-cinema-strip img{width:100%;height:100%;object-fit:cover}.image-cinema-strip [aria-pressed=true]{border:3px solid #ffd779}.image-cinema-videos{min-height:0;overflow:hidden}.image-cinema .reel-footer{position:static;width:100%;height:100%;min-height:0;border:1px solid #64829a;box-sizing:border-box}.image-cinema .video-footer{height:100%;min-height:0}.image-cinema .video-reel{min-height:0}.image-cinema [hidden]{display:none!important}@media(max-width:600px){.image-cinema{padding:7px}.image-cinema[open]{grid-template-rows:auto minmax(0,1fr) auto 55px 105px;gap:5px}.image-cinema h2{font-size:13px}.image-cinema-stage{grid-template-columns:35px minmax(0,1fr) 35px;gap:3px}.image-cinema-stage>button{min-width:32px}.image-cinema-caption{font-size:10px}.image-discovery-controls form{flex-basis:100%}}@media print{.image-cinema,.image-discovery-controls,.image-discovery-links{display:none}}

/* Edge-to-edge photo mosaic; descriptions and credits belong in the full viewer. */
#picture-gallery.picture-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:0!important;margin:0!important;padding:0!important;align-items:stretch}
#picture-gallery .discovery-picture{min-width:0;min-height:95px;aspect-ratio:4/3;display:block;position:relative;width:100%;height:auto;padding:0!important;margin:0;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden;background:#132d43}
#picture-gallery .discovery-picture img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border:0;border-radius:0;transition:transform .18s ease}
#picture-gallery .discovery-picture:hover img{transform:scale(1.045)}
#picture-gallery .discovery-picture:focus-visible{outline:3px solid #ffd779;outline-offset:-3px;z-index:2}
#picture-gallery .discovery-picture.image-unavailable{display:grid;place-items:center;color:#fff;font-size:10px}
#picture-gallery .discovery-picture.image-unavailable span{padding:6px}
/* Two seamless horizontal thumbnail rows, swipeable in either direction. */
.image-cinema{padding:0!important}
.image-cinema[open]{grid-template-rows:auto minmax(0,1fr) auto clamp(104px,19vh,180px) minmax(65px,14vh);gap:0}
.image-cinema header,.image-cinema-caption{padding:7px 12px}
.image-cinema-stage{touch-action:pan-y pinch-zoom;padding:0 5px}
.image-cinema-stage>a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;overflow:hidden}
.image-cinema-stage>a img{width:100%;height:100%;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
.image-cinema-strip{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-columns:clamp(90px,11vw,145px);gap:0;min-height:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scroll-snap-type:x proximity;overscroll-behavior-x:contain;touch-action:pan-x}
.image-cinema-strip .image-thumb{width:100%;height:100%;min-width:0;min-height:0;display:block;padding:0;border:0;border-radius:0;overflow:hidden;scroll-snap-align:start;background:#102d45}
.image-cinema-strip .image-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.image-cinema-strip .image-thumb[aria-pressed="true"]{border:0;outline:3px solid #ffd779;outline-offset:-3px}
.image-cinema-videos{border-top:1px solid #4e6d83}
.image-cinema .reel-footer{border:0}
@media(max-width:600px){#picture-gallery.picture-gallery{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}#picture-gallery .discovery-picture{min-height:75px}.image-cinema[open]{grid-template-rows:auto minmax(0,1fr) auto 112px 86px}.image-cinema-strip{grid-auto-columns:96px}.image-cinema header,.image-cinema-caption{padding:5px 7px}}
@media(prefers-reduced-motion:reduce){#picture-gallery .discovery-picture img{transition:none}.image-cinema-strip{scroll-behavior:auto}}
