.artwork-gallery{align-items:start}
.artwork-gallery .gallery-open{display:block;position:relative;aspect-ratio:2/3;background:#eceae5;cursor:zoom-in;overflow:hidden}
.artwork-gallery .gallery-open img{display:block;width:100%;height:100%;max-height:none!important;aspect-ratio:auto;object-fit:contain!important}
.artwork-gallery .interior-photo img{filter:none}
.artwork-gallery figcaption{font-size:.875rem;line-height:1.45;letter-spacing:.01em;text-transform:none}
.gallery-caption-note{display:block;font-size:.75rem;margin-top:.2rem}
.gallery-expand{position:absolute;right:.5rem;bottom:.5rem;display:grid;place-items:center;width:32px;height:32px;background:rgba(250,249,245,.92);color:#181818;font-size:1.25rem}
.gallery-open:focus-visible,.artwork-lightbox button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.artwork-lightbox{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:1rem 2rem;border:0;background:var(--paper,#f5f4ef);color:var(--ink,#181818);overflow:auto}
.artwork-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:.75rem}
.artwork-lightbox::backdrop{background:rgba(20,20,20,.8)}
.lightbox-toolbar,.lightbox-navigation{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.artwork-lightbox button{min-width:44px;min-height:44px;border:0;padding:.5rem;background:transparent;color:inherit;font:inherit;cursor:pointer}
.lightbox-close{display:flex;align-items:center;gap:.8rem}.lightbox-close span{font-size:1.75rem;line-height:1}
.lightbox-count{font-size:.875rem;color:var(--muted)}
.lightbox-figure{margin:0;min-height:0;display:flex;flex-direction:column;align-items:center;gap:.75rem}
.lightbox-image{display:block;min-height:0;flex:1;max-height:100%;width:100%;object-fit:contain}
.lightbox-image.blue-photo{filter:brightness(.72) contrast(1.14) saturate(1.16)}
.lightbox-figure figcaption{text-align:center;font-size:.875rem;flex:none}
body.gallery-is-open{overflow:hidden}
@media(max-width:780px){.artwork-lightbox{padding:.5rem .75rem}.artwork-gallery{gap:.55rem}.artwork-gallery figcaption{font-size:.875rem}.gallery-expand{right:.3rem;bottom:.3rem;width:28px;height:28px}.gallery-caption-note{font-size:.75rem}}

.artwork-gallery .natural-photo img{filter:none}

.artwork-gallery .detail-photo img{filter:brightness(.80) contrast(1.10) saturate(1.18)}
.lightbox-image.detail-photo{filter:brightness(.80) contrast(1.10) saturate(1.18)}

.artwork-gallery--nabis .detail-photo img,.white-gallery .lightbox-image.detail-photo{filter:none}

/* Keep full-screen controls clear of phone notches and the home indicator. */
@media(max-width:780px){
  .artwork-lightbox{height:100vh;height:100dvh;padding:max(.5rem,env(safe-area-inset-top)) max(.75rem,env(safe-area-inset-right)) max(.75rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left))}
  .lightbox-toolbar,.lightbox-navigation{flex-wrap:wrap;gap:.5rem}
  .lightbox-figure{min-width:0}
  .lightbox-figure figcaption{overflow-wrap:anywhere}
}
