/* =============================
   GALERI – ENTERPRISE v2
============================= */

/* SECTION */
.galeri-section {
  padding: 100px 0;
}

/* EMPTY */
.galeri-empty {
  text-align: center;
  color: #6c757d;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* GRID */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px;
}

/* CARD */
.galeri-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* subtle lift */
.galeri-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.galeri-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* HOVER ZOOM */
.galeri-card:hover .galeri-img {
  transform: scale(1.12);
}

/* OVERLAY */
.galeri-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.35) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.galeri-card:hover .galeri-overlay {
  opacity: 1;
}

.galeri-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

/* LIGHTBOX */
#galeri-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  animation: fadeIn 0.25s ease;
}

#galeri-lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.35s ease;
}

.gl-caption {
  margin-top: 18px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  opacity: 0.9;
}

.gl-close {
  position: absolute;
  top: 28px;
  right: 36px;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.gl-close:hover {
  transform: rotate(90deg);
  opacity: 0.7;
}

/* SCROLL ANIMATION */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-animate].active {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMATIONS */
@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .galeri-img {
    height: 280px;
  }
}

@media (max-width: 576px) {
  .galeri-section {
    padding: 70px 0;
  }

  .galeri-img {
    height: 220px;
  }

  .gl-close {
    top: 18px;
    right: 20px;
    font-size: 34px;
  }
}
/* =============================
   MOBILE POLISH – PREMIUM FIX
============================= */

@media (max-width: 768px) {
  /* Section lebih compact */
  .galeri-section {
    padding: 50px 16px;
  }

  /* Grid lebih rapat */
  .galeri-grid {
    gap: 18px;
  }

  /* Card lebih subtle */
  .galeri-card {
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  }

  /* Image lebih proporsional */
  .galeri-img {
    height: 200px;
  }

  /* Overlay lebih ringan */
  .galeri-overlay {
    padding: 18px;
  }

  .galeri-overlay span {
    font-size: 14px;
  }

  /* Lightbox padding lebih kecil */
  #galeri-lightbox {
    padding: 20px;
  }

  .gl-close {
    top: 14px;
    right: 16px;
    font-size: 28px;
  }
}
