.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 40px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--rounded);
  cursor: pointer;
  transition: transform var(--transition);
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}

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

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  width: fit-content;
  height: fit-content;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--primary);
}

#lightbox-image {
  max-width: 85vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--rounded);
  box-shadow: var(--shadow);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0);
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: var(--rounded);
  transition: all var(--transition);
  z-index: 1001;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0);
  border-color: rgba(255, 255, 255, 0);
  color: var(--primary);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: var(--rounded);
}

.lightbox-title {
  position: absolute;
  bottom: -75px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.2rem;
  font-weight: var(--semi-bold);
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: var(--rounded);
  max-width: 80%;
  word-wrap: break-word;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
  }
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  #lightbox-image {
    max-width: 95vw;
    max-height: 95vh;
  }
  .lightbox-nav {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  .lightbox-counter {
    bottom: 10px;
  }
  .lightbox-title {
    bottom: 45px;
    font-size: 1rem;
    padding: 6px 15px;
    max-width: 90%;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*# sourceMappingURL=gallery-grid.css.map */