.costume-image{display:block;border:0;padding:0;overflow:hidden;cursor:zoom-in;color:#888;font:inherit;position:relative;}
.costume-image img{display:block;width:100%;height:100%;object-fit:contain;}
.costume-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-family:"Helvetica Neue","Hiragino Sans",sans-serif;font-size:11px;font-weight:400;line-height:1.5;color:#888;}
.costume-location-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:calc(100vw - 40px);position:relative;left:50%;transform:translateX(-50%);}
.costume-location-gallery>.costume-reference{margin:0;min-width:0;}
.costume-location-gallery>.costume-reference--wide{grid-column:1 / -1;}
.costume-location-gallery .costume-image img{object-fit:cover;}
.costume-image:focus-visible{outline:2px solid #242424;outline-offset:4px;}
.costume-photo-dialog{position:fixed;inset:0;box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100dvh - 88px);margin:auto;padding:0;border:0;background:transparent;overflow:visible;color:#242424;}
.costume-photo-dialog::backdrop{background:rgba(0,0,0,.72);}
.costume-polaroid{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box;max-height:calc(100dvh - 88px);overflow:hidden;padding:24px 24px 18px;border-radius:3px;background:#fff;box-shadow:0 16px 56px rgba(0,0,0,.28);}
.costume-polaroid-image{width:100%;height:var(--gallery-stage-height);flex:none;background:#d9d9d9;overflow:hidden;}
.costume-polaroid-image img{display:block;width:100%;height:100%;object-fit:contain;}
.costume-photo-strip{box-sizing:border-box;display:flex;flex:0 0 60px;height:60px;gap:8px;scrollbar-width:none;margin:8px 0 0;padding:2px 0;overflow-x:auto;overflow-y:hidden;}
.costume-photo-strip::-webkit-scrollbar{display:none;}
.costume-photo-thumbnail{flex:0 0 56px;box-sizing:border-box;width:56px;height:56px;border:2px solid transparent;border-radius:8px;padding:0;background:#d9d9d9;overflow:hidden;cursor:pointer;}
.costume-photo-thumbnail[aria-pressed=true]{border-color:#242424;}
.costume-photo-thumbnail img{width:100%;height:100%;display:block;object-fit:cover;}
.costume-photo-thumbnail .costume-placeholder{font-size:8px;}
.costume-polaroid-caption{box-sizing:border-box;flex:none;height:var(--gallery-caption-height,24px);min-height:0;max-height:none;overflow:auto;margin:8px 0 0;color:#666;font-family:"Helvetica Neue","Hiragino Sans","Yu Gothic",sans-serif;font-size:13px;line-height:1.7;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere;}
.costume-photo-close{display:grid;place-items:center;position:absolute;right:-8px;top:-44px;width:44px;height:44px;border:0;padding:6px;background:transparent;cursor:pointer;}
.costume-photo-close span{display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(0,0,0,.15);color:#fff;font:24px/1 Arial,sans-serif;}
.costume-photo-dialog button:focus-visible{outline:2px solid #888;outline-offset:2px;}
@media(min-width:761px){.costume-location-gallery{width:min(768px,calc(100vw - 64px));grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}}

/* Videographer: paired portrait thumbnails, with no letterbox background. */
.costume-videographer-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;}
.costume-videographer-gallery>.costume-reference{min-width:0;margin:0;}
.costume-videographer-gallery .costume-image img{object-fit:cover;}
@media(min-width:761px){.costume-videographer-gallery{gap:20px;}}

.costume-image:has(img),.costume-polaroid-image:has(img){background:transparent;}
/* Keep focus feedback on the visible circle, not the square touch target. */
.costume-photo-dialog .costume-photo-close{-webkit-appearance:none;appearance:none;border-radius:0;-webkit-tap-highlight-color:transparent;}
.costume-photo-dialog .costume-photo-close:focus,.costume-photo-dialog .costume-photo-close:focus-visible{outline:none;box-shadow:none;}
.costume-photo-dialog .costume-photo-close:focus-visible span{border-width:2px;border-color:#fff;background:rgba(0,0,0,.35);}
