/* ============================================= */
/* GALERIA - Fotos da empresa e equipamentos      */
/* ============================================= */
/* Grid de imagens com efeito de overlay           */
/* e lightbox (visualizador de imagem grande)      */
/* ============================================= */

.galeria {
  background: linear-gradient(180deg, #0a0a0a, #111111);
}

/* Grid de fotos: 3 colunas */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Container de cada imagem */
.galeria-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3; /* Proporção da imagem */
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Zoom na imagem ao passar o mouse */
.galeria-item:hover img {
  transform: scale(1.08);
}

/* Overlay escuro com texto "Ver Imagem" */
.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 77, 155, 0.6));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  background: rgba(29, 161, 242, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

/* --- LIGHTBOX (Visualizador de imagem grande) --- */
.lightbox {
  display: none;            /* Escondido por padrão */
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Quando aberto */
.lightbox.aberto {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
}

/* Botão de fechar (X) */
.lb-fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

/* Botões de navegação (anterior/próximo) */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(29, 161, 242, 0.2);
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 12px;
  transition: background 0.3s;
  z-index: 10001;
}

.lb-nav:hover {
  background: rgba(29, 161, 242, 0.4);
}

.lb-anterior { left: 20px; }
.lb-proximo { right: 20px; }
