@charset "UTF-8";


*{  
  padding: 0px;
  margin: 0px;
}
 
body {
  background-color: #000;
  color: #fff;
  /* font-family: 'Montserrat', sans-serif; */
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  margin: 0;
  padding: 0;
}



/* =========================
   GALERIA
========================= */
.gallery {
  padding: 50px 0;
  text-align: center;
  background: #000;
  color: #fff;
}

.gallery h2 {
  font-size: 5vw;
  margin-bottom: 60px;
  
  padding-top: 18%;
  color: #ffffffd5;
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.377);

  position: relative;
  display: inline-block;
}


.gallery h2::after{  
  
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: #ffffff52;
  border-radius: 2px;

}

.galery h1{ 
 
}

/* =========================
   GRID DE IMAGENS
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-item-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
}

.gallery-item-wrapper:hover {
  transform: scale(1.03);
}

.gallery-item {
  width: 100%;
  height: 400px;         /* desktop fixo */
  object-fit: cover;     /* corta para preencher */
  display: block;
  transition: filter 0.3s ease-in-out;
}

.gallery-item-wrapper:hover .gallery-item {
  filter: brightness(70%);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0; /* substitui top/left/right/bottom */
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.98);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  padding: 10px;
  box-sizing: border-box;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  margin: auto;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: rgba(0, 255, 255, 0.623);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2001;
}

.lightbox .image-counter {
  position: absolute;
  top: 25px;
  left: 35px;
  font-size: 18px;
  color: #fff;
  z-index: 2001;
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: #fff;
  cursor: pointer;
  padding: 15px;
  transition: color 0.3s, background-color 0.3s;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  user-select: none;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

.lightbox .prev:hover,
.lightbox .next:hover,
.lightbox .close:hover {
  color: #7fffd4;
  background-color: rgba(0, 0, 0, 0.6);
}

/* =========================
   RESPONSIVO
========================= */

/* Tablets grandes */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }

  .gallery-item {
    height: 400px;
  }

  .lightbox .prev,
  .lightbox .next {
    font-size: 50px;
    padding: 10px;
    width: 50px;
    height: 50px;
  }
}

/* Tablets pequenos / Celulares grandes */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 10px;
  }

  .gallery-item {
           /* ajusta automaticamente */
    object-fit: cover;/* mostra a foto inteira */
  }

  .lightbox .prev,
  .lightbox .next {
    font-size: 40px;
    padding: 8px;
    width: 40px;
    height: 40px;
    top: calc(50% + 20px);
    background-color: rgba(0,0,0,0.6);
  }

  .lightbox .prev { left: 10px; }
  .lightbox .next { right: 10px; }
  .lightbox .close {
    font-size: 35px;
    right: 25px;
    top: 15px;
  }
  .lightbox .image-counter {
    font-size: 16px;
    left: 25px;
    top: 20px;
  }
}

/* Celulares pequenos */
@media (max-width: 480px) {
  .gallery-item {
    max-height: 250px;
  }

  .lightbox .prev,
  .lightbox .next {
    font-size: 30px;
    padding: 5px;
    width: 30px;
    height: 35px;
    top: calc(50% + 20px);
  }

  .lightbox .prev { left: 5px; }
  .lightbox .next { right: 5px; }
  .lightbox .close {
    font-size: 28px;
    right: 15px;
    top: 10px;
  }
  .lightbox .image-counter {
    font-size: 14px;
    left: 15px;
    top: 15px;
  }
  .lightbox-content {
    max-width: 95vw;
    max-height: 85vh;
  }
}
