.has-image-viewer {overflow:hidden}
html .image-viewer {padding:0;inset:0;width:min(96vw,88rem);max-width:96vw;height:min(94vh,72rem);height:min(94dvh,72rem);max-height:94dvh;margin:auto;background:#202a24;border:1px solid #857852;border-radius:.45rem;color:#fcf7e8;box-shadow:0 12px 90px #070d09aa}
.image-viewer::backdrop {background:#0d140ff2}
.viewer-shell {height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.viewer-bar,.viewer-foot,.viewer-tools,.viewer-nav {display:flex;align-items:center}
.viewer-bar,.viewer-foot {justify-content:space-between;gap:.8rem;padding:.45rem 1rem}
.viewer-bar {border-bottom:1px solid #66705b}
#viewer-label {font:500 clamp(1.2rem,2.4vw,1.8rem)/1.1 var(--serif)}
.viewer-tools,.viewer-nav {gap:.4rem}
.viewer-control {display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border:1px solid #918665;border-radius:50%;background:#29352c;color:#f6e1ba;cursor:pointer}
.viewer-control[hidden],.media-video-frame [hidden] {display:none!important}
.viewer-control svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.viewer-control:focus-visible,.viewer-control:hover {outline:2px solid #f1d199;outline-offset:1px}
.viewer-stage {overflow:auto;min-width:0;min-height:0;position:relative;text-align:center;background:#182019;overscroll-behavior:contain}
.viewer-stage img {width:100%;height:100%;object-fit:contain;display:block;cursor:zoom-in}
.viewer-stage.is-zoomed img {display:block;width:auto;min-width:100%;max-width:none;height:auto;margin-inline:auto;cursor:zoom-out;object-fit:initial}
.viewer-foot {border-top:1px solid #56624e}
.viewer-caption {font:400 1rem/1.45 var(--sans);margin:0;color:#e5e6da}
.viewer-count {font-variant-numeric:tabular-nums;white-space:nowrap;min-width:3rem;text-align:center}
.media-video-frame.is-playing {position:relative}
.media-live-player {position:absolute;inset:0;border:0;width:100%;height:100%;background:#172019}
.media-stop-player {position:absolute;right:.4rem;top:.4rem;z-index:2;width:44px;height:44px;opacity:.92}
a[data-lightbox],a[data-media-image] {cursor:zoom-in}
@media(max-width:600px) {
  html .image-viewer {width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100dvh;border:0;border-radius:0}
  .viewer-bar,.viewer-foot {padding:.45rem .7rem}
  .viewer-bar {padding-top:max(.5rem,env(safe-area-inset-top))}
  .viewer-foot {flex-wrap:wrap;justify-content:center;padding-bottom:max(.45rem,env(safe-area-inset-bottom))}
  .viewer-caption {width:100%;max-height:4.2em;overflow:auto;text-align:center;font-size:.93rem}
}
@media(prefers-reduced-motion:no-preference) {
  .image-viewer[open] .viewer-shell {animation:viewer-enter .2s ease-out both}
  @keyframes viewer-enter {from{opacity:.3;transform:translateY(3px)}to{opacity:1;transform:none}}
}
