/* Modal de galeria de imagens - estilos utilitários */

.img-gallery-clickable {
  cursor: pointer;
}

.img-modal-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.img-modal-root.img-modal-open {
  display: flex;
}

.img-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.img-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}

.img-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.img-modal-prev,
.img-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.875rem;
  font-weight: 300;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}

.img-modal-prev:hover,
.img-modal-next:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.img-modal-prev {
  left: 1rem;
}

.img-modal-next {
  right: 1rem;
}

.img-modal-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  position: relative;
  z-index: 10;
}
