/* ============================================= */
/* HALAMAN GALERI - PREMIUM DESIGN */
/* ============================================= */

.gallery-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 40px 100px 40px;
}

.gallery-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.gallery-title {
  font-size: 42px;
  font-weight: 800;
  color: #0a2b44;
  margin-bottom: 16px;
  line-height: 1.2;
}

.gallery-desc {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.6;
}

/* Tombol Filter */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: white;
  border: 2px solid #e2e8f0;
  color: #4a5568;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #67b4eb;
  color: #67b4eb;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #67b4eb;
  border-color: #67b4eb;
  color: white;
  box-shadow: 0 6px 15px rgba(103, 180, 235, 0.3);
}

/* Grid Galeri */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* Overlay saat di-hover */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 43, 68, 0.9) 0%, rgba(10, 43, 68, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 24px;
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-title {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.overlay-desc {
  color: #cbd5e0;
  font-size: 13px;
  margin-bottom: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: white;
  font-size: 32px;
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .overlay-title,
.gallery-item:hover .overlay-desc {
  transform: translateY(0);
}

.gallery-item:hover .overlay-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================= */
/* LIGHTBOX MODAL (Popup Gambar) */
/* ============================================= */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 43, 68, 0.95);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 20px;
  color: white;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: #f39c12;
  text-decoration: none;
  cursor: pointer;
  transform: scale(1.1);
}

/* ============================================= */
/* RESPONSIVE GALERI */
/* ============================================= */
@media screen and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .gallery-page {
    padding: 20px 20px 60px 20px;
  }
  
  .gallery-title {
    font-size: 32px;
  }
  
  .gallery-filters {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .close-lightbox {
    top: 15px;
    right: 25px;
    font-size: 35px;
  }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    aspect-ratio: 16 / 9;
  }
}