.gebe-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}
.gebe-gallery a { display: block; overflow: hidden; aspect-ratio: 3 / 4; }
.gebe-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gebe-gallery a:hover img { transform: scale(1.03); }
.gebe-gallery a:focus-visible { outline: 3px solid var(--blue, #0067ad); outline-offset: -3px; }
.photo-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 60px 72px;
  border: 0;
  background: rgba(5, 15, 29, .97);
  color: white;
}
.photo-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.photo-lightbox::backdrop { background: #050f1d; }
.photo-lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.photo-full { display: block; max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; margin: auto; object-fit: contain; touch-action: pan-y; }
.photo-lightbox figcaption { margin-top: 16px; font-size: 14px; }
.photo-lightbox button { position: absolute; width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff60; border-radius: 50%; color: white; background: #ffffff18; font-size: 36px; cursor: pointer; line-height: 1; }
.photo-lightbox button:hover { background: #ffffff35; }
.photo-lightbox button:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.photo-close { top: 16px; right: 16px; }
.photo-prev { left: 16px; top: calc(50% - 24px); }
.photo-next { right: 16px; top: calc(50% - 24px); }
@media (max-width: 640px) {
  .gebe-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-lightbox { padding: 70px 12px 100px; }
  .photo-prev, .photo-next { top: auto; bottom: 20px; }
  .photo-full { max-height: calc(100dvh - 220px); }
}
@media (prefers-reduced-motion: reduce) {
  .gebe-gallery img { transition: none; }
}

