/* ==========================================================================
   LINK BERKAH – Galeri
   ========================================================================== */

.gl-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-bottom: 18px; padding: 22px 20px;
  color: #fff; border-radius: var(--radius-card);
  background: radial-gradient(420px 180px at 100% 0%, rgba(255, 215, 0, .22), transparent 60%), linear-gradient(125deg, #047857 0%, #059669 45%, #0d9488 100%);
  box-shadow: 0 18px 32px -20px rgba(4, 120, 87, .85);
}
.gl-hero::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .24), transparent 68%); }
.gl-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 5px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .16);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.gl-eyebrow i { color: #fcd34d; }
.gl-hero h1 {
  margin: 0; font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
}
.gl-hero p { margin: 8px 0 0; font-size: .86rem; line-height: 1.6; color: #d1fae5; }

.gl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gl-item {
  position: relative; display: block; overflow: hidden; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gl-item:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(5, 150, 105, .5); }
.gl-item img, .gl-ph {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--em-50);
  transition: transform .45s var(--ease);
}
.gl-item:hover img { transform: scale(1.06); }
.gl-ph { display: grid; place-items: center; color: var(--em-500); font-size: 1.6rem; }
.gl-cap {
  position: absolute; inset: auto 0 0 0; padding: 28px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(6, 78, 59, .88));
  color: #fff;
}
.gl-cap b {
  display: block; font-family: 'Outfit', sans-serif; font-size: .82rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gl-cap small { display: block; margin-top: 4px; font-size: .7rem; opacity: .85; }

.gl-empty { padding: 40px 16px; text-align: center; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); color: var(--muted); font-weight: 600; }
.gl-empty i { display: block; font-size: 2.2rem; color: var(--em-500); margin-bottom: 8px; }

.gl-lb {
  position: fixed; inset: 0; z-index: 80; display: none; place-items: center;
  background: rgba(2, 44, 34, .82); padding: 20px;
}
.gl-lb.is-on { display: grid; }
.gl-lb img { max-width: min(960px, 100%); max-height: 78vh; border-radius: 16px; object-fit: contain; background: #022c22; }
.gl-lb p {
  position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center;
  color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; padding: 0 48px;
}
.gl-lb button {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; cursor: pointer; font-size: 1.1rem;
}
.gl-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; cursor: pointer;
}
.gl-nav.is-prev { left: 16px; } .gl-nav.is-next { right: 16px; }

@media (min-width: 768px) {
  .gl-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .gl-hero { padding: 36px 40px; margin-bottom: 24px; }
  .gl-hero h1 { font-size: 2.1rem; }
  .gl-hero p { font-size: .95rem; white-space: nowrap; }
  .gl-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .gl-cap b { font-size: .9rem; }
}
