/* Gallery-only photo viewer. Keeps the original three-column grid intact. */
.gallery-wide figure img.galatart-lightbox-trigger{
  cursor:zoom-in;transition:filter .15s ease,transform .15s ease;
}
.gallery-wide figure img.galatart-lightbox-trigger:hover{filter:brightness(.96)}
.gallery-wide figure img.galatart-lightbox-trigger:focus-visible{
  outline:3px solid #277b7e;outline-offset:4px;
}
.galatart-lightbox[hidden]{display:none!important}
.galatart-lightbox{
  position:fixed;inset:0;z-index:2147483000;
  display:flex;flex-direction:column;
  background:rgba(8,20,25,.97);color:#fff;
  padding:clamp(12px,2vw,28px);box-sizing:border-box;
}
.galatart-lightbox-toolbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;min-height:45px;flex-shrink:0;
}
.galatart-lightbox-count{font:600 14px/1.3 system-ui,sans-serif;color:#dde9e9;font-variant-numeric:tabular-nums}
.galatart-lightbox button{
  cursor:pointer;border:1px solid rgba(255,255,255,.35);
  border-radius:50%;background:rgba(255,255,255,.12);color:#fff;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.galatart-lightbox button:hover{background:rgba(255,255,255,.27)}
.galatart-lightbox button:focus-visible{outline:3px solid #7bd1d0;outline-offset:3px}
.galatart-lightbox-close{width:44px;height:44px;font:32px/1 Arial,sans-serif}
.galatart-lightbox-stage{
  display:flex;align-items:center;justify-content:center;gap:clamp(4px,1.2vw,18px);
  flex:1;min-height:0;max-width:1500px;width:100%;margin:0 auto;touch-action:pan-y;
}
.galatart-lightbox-nav{
  width:clamp(36px,5vw,52px);height:clamp(36px,5vw,52px);font:36px/1 Georgia,serif;
}
.galatart-lightbox-figure{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  flex:1;min-width:0;min-height:0;max-height:100%;margin:0!important;
}
.galatart-lightbox-image{
  display:block;max-width:100%;max-height:calc(100dvh - 190px);
  width:auto;height:auto;object-fit:contain;border-radius:4px;
  box-shadow:none;user-select:none;-webkit-user-drag:none;
}
.galatart-lightbox-caption{
  max-width:85ch;text-align:center;margin-top:14px;
  color:#e2ebec;font:400 clamp(13px,1.5vw,16px)/1.5 system-ui,sans-serif;
}
.galatart-lightbox-help{
  flex-shrink:0;text-align:center;margin:12px 0 2px;
  font:400 12px/1.4 system-ui,sans-serif;color:#b8c9cb;
}
@media(max-width:620px){
  .galatart-lightbox{padding:10px}
  /* On phones, use swipe gestures instead of tiny side arrows. */
  .galatart-lightbox-nav{display:none!important}
  .galatart-lightbox-stage{gap:0;touch-action:pan-y}
  .galatart-lightbox-figure{width:100%;max-width:100%;flex:1 1 100%}
  .galatart-lightbox-image{
    width:auto;max-width:100%;
    max-height:calc(100dvh - 160px);object-fit:contain
  }
  .galatart-lightbox-caption{margin-top:10px}
}
@media(prefers-reduced-motion:reduce){
  .gallery-wide figure img.galatart-lightbox-trigger{transition:none}
}