/* Estilos para overlay de ampulheta e modal de galeria */
.box-galeria {
  position: relative;
  overflow: hidden;
}
.gallery-hourglass {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 3rem;
  color: #fff;
  pointer-events: none;
  transition: all 300ms ease-out;
}
.box-galeria:hover .gallery-hourglass,
.box-galeria:focus-within .gallery-hourglass {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumbs-wrap {
    display: none;
}

/* Modal de galeria */
#galleryModal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
#galleryModal.show {
  display: flex;
  opacity: 1;
}
#galleryModal .gallery-content {
  position: relative;
  /* background: #111; */
  border-radius: 10px;
  padding: 30px 20px 20px 20px;
  max-width: 1600px;
  width: 90vw;
  max-height: 90vh;
  /* box-shadow: 0 8px 32px rgba(0,0,0,0.4); */
  display: flex;
  flex-direction: column;
  align-items: center;
}
#galleryModal .gallery-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
#galleryModal .gallery-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

#galleryModal .gallery-slider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
}
#galleryModal .gallery-image {
  max-width: 600px;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(5, 2, 2, 0.3);
  margin: 0 20px;
  object-fit: contain;
  min-width: 100%;
  opacity: 1;
  transition: opacity 0.3s;
}
#galleryModal .gallery-image.fade-out {
  opacity: 0;
}
#galleryModal .gallery-arrow {
  background: rgba(0,0,0,0.3);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 0 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 2;
}
#galleryModal .gallery-arrow:hover {
  background: #d8bd86;
  color: #222;
}
#galleryModal .gallery-image {
  max-width: 600px;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin: 0 20px;
  object-fit: contain;
}
#galleryModal .gallery-thumbs {
  display: flex;
  align-items: center;
  margin-top: 18px;
  width: 100%;
  overflow-x: auto;
  gap: 10px;
}
#galleryModal .gallery-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s;
}
#galleryModal .gallery-thumb.active {
  border: 2px solid #d8bd86;
}
#galleryModal .thumb-arrow {
  background: rgba(0,0,0,0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  display: none;
}
#galleryModal .thumb-arrow:hover {
  background: #d8bd86;
  color: #222;
}

@media (max-width: 880px) {
  #galleryModal .gallery-content {
    border-radius: 10px;
}
#galleryModal .gallery-close {
    right: 1vw;
}
#galleryModal .gallery-arrow {
    position: absolute;
        width: 32px;
    height: 36px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
#galleryModal .gallery-arrow.gallery-next {
    right: 0px;
}
#galleryModal .gallery-arrow.gallery-prev {
    left: 0px;
}

}