.trama-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.trama-gallery .gallery-item {
  width: calc(25% - 10px);
  cursor: pointer;
}

.trama-gallery .gallery-item img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

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

#gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

#gallery-modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

#gallery-modal .close,
#gallery-modal .prev,
#gallery-modal .next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

#gallery-modal .close {
  top: 20px;
  right: 20px;
}

#gallery-modal .prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#gallery-modal .next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
