/* Gallery Page Styles */

.gallery-header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 40px;
}

.gallery-title {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.gallery-subtitle {
  font-size: 20px;
  color: #666;
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.zoom-icon {
  font-size: 32px;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 36px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  transition: opacity 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  opacity: 0.7;
}

#lightboxImage {
  max-width: 100%;
  max-height: calc(90vh - 80px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.image-counter {
  color: white;
  font-size: 16px;
  font-weight: 500;
  min-width: 80px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 36px;
  }

  .gallery-subtitle {
    font-size: 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 15px;
  }

  .gallery-header {
    padding: 30px 15px;
    margin-bottom: 30px;
  }

  .lightbox-close {
    top: -40px;
    font-size: 28px;
  }

  .lightbox-nav {
    gap: 15px;
    padding: 12px 20px;
    margin-top: 15px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .image-counter {
    font-size: 14px;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .gallery-title {
    font-size: 28px;
  }

  .gallery-subtitle {
    font-size: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
  }

  .gallery-header {
    padding: 20px 10px;
    margin-bottom: 20px;
  }

  .zoom-icon {
    font-size: 28px;
  }

  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  #lightboxImage {
    max-height: calc(95vh - 70px);
  }

  .lightbox-nav {
    gap: 10px;
    padding: 10px 15px;
    margin-top: 10px;
  }

  .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .image-counter {
    font-size: 13px;
    min-width: 60px;
  }
}
