#tendik-card .card {
  margin-bottom: 20px;
}

:root {
  --gap: 12px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: #0b0c10;
  color: #eaf0f4;
}
.wrap {
  /* fokus mobile */
  margin: 012 auto;
  padding: 16px;
  text-align: center;
}
h1 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: bold;
}
p {
  opacity: 0.8;
  margin: 0 0 18px;
  font-size: 14px;
}

.grid-photos {
  font-weight: bold;
  color: #0b0c10;
}

.card {
  background: #11151a;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  font-weight: bold;
}

/* =============================
   Struktur — Grid 2x2 (mobile-first)
   ============================= */
.grid-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.grid-photos img {
  width: 100%;
  aspect-ratio: 1 / 1; /* kotak */
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
/* Di layar lebih lebar, jadi 4 kolom */
@media (min-width: 640px) {
  .grid-photos {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================
   Opsi B — Scroll horizontal 1 baris
   ============================= */
.scroller {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px; /* ruang untuk scrollbar */
  -webkit-overflow-scrolling: touch;
}
.scroller::-webkit-scrollbar {
  height: 6px;
}
.scroller::-webkit-scrollbar-thumb {
  background: #2a3744;
  border-radius: 999px;
}
.scroller::-webkit-scrollbar-track {
  background: transparent;
}

.scroller .item {
  flex: 0 0 calc(25% - (var(--gap) * 3 / 4)); /* 4 foto tampak sekaligus di mobile */
  scroll-snap-align: start;
}
.scroller img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
