
/* ==========================================================================
   GALERI & DOKUMENTASI
   ========================================================================== */

.gallery {
  padding: 0 0 80px;
}

.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(60, 24, 8, 0.2);
}

.gallery__intro {
  max-width: 720px;
}

.gallery__title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  color: var(--brown);
}

.gallery__lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(60, 24, 8, 0.74);
  font-size: 17px;
  line-height: 1.7;
}

/* ==========================================================================
   GALERI UTAMA
   Setiap baris adalah grid sendiri agar komposisi desktop rapi dan
   tetap dapat menampung jumlah foto yang berbeda-beda.
   ========================================================================== */

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gallery-row {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.gallery-row > * {
  min-width: 0;
}

.gallery-row--lead {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.gallery-row--split {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.gallery-row--strip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.gallery-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(60, 24, 8, 0.25);
}

.gallery-card__media {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f0eadc;
  border: 1px solid var(--brown);
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-card__media img {
  transform: scale(1.03);
}

.gallery-card__body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: var(--brown);
  border-top: 1px solid rgba(60, 24, 8, 0.15);
}

.gallery-card__index {
  width: 30px;
  height: 30px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber);
  font-size: 12px;
  font-weight: 700;
}

.gallery-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gallery-card__media img {
    transition: none;
  }
}