
.gradient-bg {
background: linear-gradient(262deg,rgba(46, 76, 140, 0) 27%, rgba(22, 13, 13, 0.445) 50%);
} 

/* Galería */
.gallery-item {
  transition: all 0.4s ease;
  overflow: hidden;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.filter-btn {
  transition: background-color 0.2s ease-in-out;
}

/* Filtros */
.filter-btn.active {
  background-color: #4361ee;
  color: white;
}

.filter-btn:hover {
  background-color: #4361ee;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  color: white;
  font-size: 30px;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Masonry layout */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  grid-auto-rows: 10px;
  gap: 20px;
}

.masonry-item {
  grid-row-end: span var(--span);
} 

.overflow-hidden img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
