* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}


.gallery-container {
  display: flex;
  gap: 20px;
  width: 950px;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* CENTRALIZA O CONTAINER */
}
/* Imagem principal */
.main-image {
  position: relative;
  width: 600px;
  height: 400px;
  cursor: pointer;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Hover */
.hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: 0.3s;
  border-radius: 10px;
  pointer-events: none;
}

.main-image:hover .hover-overlay {
  opacity: 1;
}

/* Miniaturas */
.thumbnails-wrapper {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thumbnails {
  max-height: 320px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.thumbnails img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

.thumbnails img:hover {
  transform: scale(1.05);
}

/* Setas */
.arrow {
  color: #6d0eb1;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  animation: bounce 1.2s infinite;
  margin: 6px 0;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.6);
  color: #00aaff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
  