.contentGalleryDialog{width:min(980px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;margin:auto;border:1px solid #ffffff45;border-radius:12px;background:#111316;color:#eee;box-shadow:0 15px 70px #000b;overflow:hidden}
.contentGalleryDialog::backdrop{background:rgba(0,0,0,.5)}
.galleryHead{display:flex;align-items:center;justify-content:space-between;padding:6px 10px}
.galleryHead output{font-size:12px;color:#bec2c7;font-variant-numeric:tabular-nums}
.galleryStage{position:relative;display:flex;align-items:center;justify-content:center;height:min(65dvh,calc(100dvh - 170px),640px);background:#08090b}
.galleryStage>img{display:block;width:100%;height:100%;object-fit:contain}
.galleryArrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:48px;padding:0;border-radius:8px;background:#111a;font-size:28px}
#galleryPrevious{left:8px}#galleryNext{right:8px}
.galleryThumbnails{display:flex;gap:7px;padding:10px;overflow-x:auto;overscroll-behavior:contain}
.galleryThumbnails button{flex:0 0 62px;height:54px;padding:2px;border-radius:5px;border:2px solid transparent;background:transparent;opacity:.55}
.galleryThumbnails button[aria-pressed=true]{border-color:#edbc70;opacity:1}
.galleryThumbnails button:hover{opacity:1}
.galleryThumbnails img{display:block;width:100%;height:100%;object-fit:contain}
.contentGalleryDialog button:focus-visible{outline:2px solid white;outline-offset:2px}
@media(max-width:600px){.contentGalleryDialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.galleryStage{height:calc(100dvh - 160px)}.galleryArrow{width:30px;height:40px}.galleryThumbnails button{flex-basis:52px;height:46px}}

/* Per-photo captions and provenance, alongside the image where space permits. */
.contentGalleryDialog{width:min(1180px,calc(100vw - 32px))}
.contentGalleryDialog[open]{display:flex;flex-direction:column}
.galleryHead,.galleryThumbnails{flex-shrink:0}
.galleryContent{display:grid;grid-template-columns:minmax(0,1fr) 270px;min-height:0;overflow:auto}
.galleryInfo{padding:20px 18px;min-width:0;overflow:auto;border-left:1px solid #ffffff20;font-size:13px;line-height:1.55}
.galleryInfo h3{font-size:18px;line-height:1.3;margin:0 0 14px}
.galleryCaption{white-space:pre-wrap;margin:0 0 18px;color:#d4d8dc}
.galleryInfo dl{margin:0}.galleryInfo dl>div{margin:0 0 14px}
.galleryInfo dt{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#a4adb7;margin-bottom:3px}
.galleryInfo dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.galleryInfo a{color:#a3e9f2;text-decoration:underline;text-underline-offset:3px}
.galleryInfo [hidden]{display:none}
@media(max-width:700px){
 .contentGalleryDialog{width:calc(100vw - 20px)}
 .galleryContent{display:block}
 .galleryStage{height:min(52dvh,calc(100dvh - 235px));min-height:150px}
 .galleryInfo{border-left:0;border-top:1px solid #ffffff20;padding:14px 16px;overflow:visible}
 .galleryInfo h3{font-size:16px;margin-bottom:12px}
 .galleryInfo dl{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
}
@media(max-height:500px) and (min-width:701px){.galleryStage{height:calc(100dvh - 155px)}.galleryInfo{padding:12px;font-size:12px}.galleryInfo h3{font-size:15px}}
