@charset "UTF-8";
/* ===== GALERIA + LIGHTBOX ===== */
.gallery-item {
  position: relative;
  aspect-ratio: 187 / 130;
  padding: 0;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 22px rgba(30, 107, 255, 0.28);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 8, 30, 0.85));
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .zoom {
  position: absolute; right: 10px; bottom: 10px;
  z-index: 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  transform: scale(0);
}


.lightbox {
  position: fixed; inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px var(--gutter-r) 24px var(--gutter-l);
  background: rgba(1, 3, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(920px, 100%); text-align: center; }
.lightbox img {
  max-height: 72vh; width: auto; margin-inline: auto;
  border-radius: 16px;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 60px rgba(30, 107, 255, 0.55);
}
.lightbox figcaption { margin-top: 14px; color: var(--muted); }
.lightbox .lb-close { position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); right: var(--gutter-r); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; margin-top: -22px; }
.lightbox .lb-prev { left: var(--gutter-l); }
.lightbox .lb-next { right: var(--gutter-r); }
