@charset "UTF-8";
.tempero-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.tempero-gallery .gallery-item {
  display: block;
  width: calc(25% - 12px);
  box-sizing: border-box;
  max-height: 150px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.tempero-gallery .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .tempero-gallery .gallery-item {
    width: calc(33.333% - 12px);
  }
}
@media (max-width: 600px) {
  .tempero-gallery .gallery-item {
    width: calc(50% - 12px);
  }
}

.gallery-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  justify-content: center;
  align-items: center;
}
.gallery-overlay.active {
  display: flex;
}
.gallery-overlay .overlay-bg {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(0, 60, 130, 0.7);
  backdrop-filter: blur(10px);
}
.gallery-overlay .overlay-bg::before {
  content: " ";
  width: 150px;
  height: 80px;
  display: block;
  position: fixed;
  top: 1rem;
  left: calc(50% - 75px);
  background-image: url(../imgs/logo_cdl-branco.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center top;
}
.gallery-overlay .overlay-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.gallery-overlay .overlay-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.gallery-overlay .thumb-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 10px;
}
.gallery-overlay .thumb-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.gallery-overlay .thumb-list img.active {
  opacity: 1;
  border: 2px solid #fff;
}
.gallery-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 26px;
  line-height: 0;
}

.gallery-overlay .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.gallery-overlay .nav-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}
.gallery-overlay .nav-arrow.prev {
  left: 20px;
}
.gallery-overlay .nav-arrow.next {
  right: 20px;
}

/* ============================
   ANIMAÇÃO BACKGROUND DO OVERLAY
   ============================ */
@keyframes bgFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.gallery-overlay.bg-animating {
  animation: bgFade 0.6s ease forwards;
}

/* ============================
   ANIMAÇÃO IMAGEM PRINCIPAL (fade + leve zoom)
   ============================ */
@keyframes imageFade {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
#overlayMainImage.image-animating {
  animation: imageFade 0.6s ease forwards;
}

/*# sourceMappingURL=tempero-galeria-public.css.map */
