/* ============================================================
   Galeria de Trabalhos — SHIDRAU CAST
   ============================================================ */
.gal-hero {
  background: linear-gradient(135deg, var(--ink, #04091a), #0a1428);
  color: #fff;
  padding: 130px 0 56px;
  border-bottom: 3px solid var(--blue, #dc1f1f);
}
.gal-hero .sc-eyebrow { color: #fca5a5; }
.gal-hero h1 {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 10px 0 8px;
}
.gal-hero__sub { color: #94a3b8; font-size: 1.05rem; max-width: 620px; margin: 0; }

.gal-body { padding: 56px 0 72px; }

/* grade responsiva */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .gal-grid { grid-template-columns: 1fr; } }

.gal-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--mist, #f8fafc);
  border: 1px solid #e2e8f0;
  cursor: pointer;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gal-item:hover img { transform: scale(1.08); }
.gal-item__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,9,26,.45);
  color: #fff;
  opacity: 0;
  transition: opacity .3s ease;
}
.gal-item:hover .gal-item__zoom { opacity: 1; }
.gal-item__zoom svg { width: 40px; height: 40px; }

/* lightbox */
.gal-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4,9,26,.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.gal-lb.is-open { display: flex; }
.gal-lb__img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: galFade .3s ease;
}
@keyframes galFade { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.gal-lb__close {
  position: absolute;
  top: 20px; right: 28px;
  background: none; border: none;
  color: #fff; font-size: 2.6rem; line-height: 1;
  cursor: pointer; opacity: .8;
  transition: opacity .2s ease;
}
.gal-lb__close:hover { opacity: 1; }
.gal-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 2rem; line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
  display: flex; align-items: center; justify-content: center;
}
.gal-lb__nav:hover { background: rgba(220,31,31,.8); }
.gal-lb__prev { left: 24px; }
.gal-lb__next { right: 24px; }
.gal-lb__counter {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: #cbd5e1;
  font-family: "IBM Plex Mono", monospace;
  font-size: .9rem;
}
@media (max-width: 560px) {
  .gal-lb__nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .gal-lb__prev { left: 10px; } .gal-lb__next { right: 10px; }
  .gal-lb__close { top: 12px; right: 16px; }
}
