/* =========================================================
   GKE GALLERY — Scoped dengan prefix gke- agar tidak konflik
========================================================= */

/* SECTION */
.gke-gallery-section {
  background: #f7f7f5;
  padding: 80px 0 72px;
}

/* HEADER */
.gke-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gke-gallery-header-left h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.gke-gallery-header-left p {
  font-size: 14px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

/* GRID */
#gke-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ITEM */
.gke-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #e8e8e6;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gke-gallery-item.gke-visible {
  opacity: 1;
  transform: translateY(0);
}
.gke-gallery-item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.gke-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  text-decoration: none;
}

/* IMAGE */
.gke-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.gke-gallery-item:hover img {
  transform: scale(1.06);
}

/* IMAGE FALLBACK */
.gke-img-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: #e8e8e6;
  color: #aaa;
  font-size: 12px;
}
.gke-gallery-item.gke-img-error .gke-img-fallback {
  display: flex;
}

/* OVERLAY */
.gke-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.1) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gke-gallery-item:hover .gke-gallery-overlay {
  opacity: 1;
}

/* CAPTION */
.gke-gallery-caption {
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.gke-gallery-item:hover .gke-gallery-caption {
  transform: translateY(0);
}
.gke-gallery-caption h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 3px;
  line-height: 1.3;
}
.gke-gallery-caption p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  margin: 0;
  line-height: 1.4;
}

/* SKELETON LOADING */
.gke-gallery-skeleton {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, #e8e8e6 25%, #d8d8d6 50%, #e8e8e6 75%);
  background-size: 200% 100%;
  animation: gke-shimmer 1.4s infinite;
}
@keyframes gke-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* EMPTY STATE */
.gke-gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: #aaa;
  font-size: 14px;
}

/* PAGINATION */
.gke-gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.gke-page-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.gke-page-btn:hover:not(:disabled) {
  background: #f0f0ee;
}
.gke-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.gke-page-dot {
  width: 34px;
  height: 34px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.gke-page-dot:hover {
  background: #f0f0ee;
  color: #111;
}
.gke-page-dot.gke-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  #gke-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (max-width: 576px) {
  .gke-gallery-section {
    padding: 56px 0 48px;
  }
  #gke-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .gke-gallery-header-left h2 {
    font-size: 20px;
  }
  .gke-page-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
}