/* ================= RESET ================= */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Poppins',sans-serif; }
body, html { width:100%; height:100%; background-color:#020617; }

/* ================= HEAD BAR ================= */
.head-bar {
  width:100%;
  background:#000;
  padding:15px 20px;
  color:#FFD700;
  text-align:center;
  font-weight:700;
  font-size:18px;
  position:sticky;
  top:0;
  z-index:1000;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #38bdf8;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* icon */
.btn-back .icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* hover efek */
.btn-back:hover {
  background: #38bdf8;
}

.btn-back:hover .icon {
  transform: translateX(-5px); /* geser kiri */
}

/* ================= GALERI SECTION ================= */
.galeri-section {
  padding:60px 20px;
  width:100%;
}

/* Title & Subtitle */
.galeri-title {
  color:#38bdf8;
  font-size:36px;
  text-align:center;
  font-weight:700;
  margin-bottom:10px;
  text-transform:uppercase;
}
.galeri-subtitle {
  color:#fff;
  font-size:18px;
  text-align:center;
  margin-bottom:30px;
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
}

/* Back Button */
.btn-back {
  display:inline-block;
  margin-bottom:20px;
  padding:8px 20px;
  background:#38bdf8;
  color:#090000;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
}
.btn-back:hover { background:#38bdf8; color:#000; }

/* ================= FILTER ================= */
.galeri-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;      /* bikin bisa geser */
  white-space: nowrap;   /* paksa 1 baris */
  padding: 10px;
  justify-content: flex-start;
}

/* Hilangkan scrollbar biar bersih */
.galeri-tabs::-webkit-scrollbar {
  display: none;
}

/* TAB */
.galeri-tabs .tab {
  flex: 0 0 auto; /* penting biar gak turun */
  padding: 6px 14px;
  font-size: 13px;
  background: #1e293b;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

/* ACTIVE */
.galeri-tabs .tab.active {
  background: #38bdf8;
  color: #020617;
}

/* ================= GALERI CARDS ================= */

.galeri-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* KARTU */
.galeri-card {
  text-align: center;
  cursor: pointer;
}
@media (min-width:769px) {
  .galeri-tabs {
    justify-content: center;
    overflow-x: visible;
  }
}

/* FOTO VERTIKAL (portrait) */
.galeri-card img {
  width: 160px;
  height: 230px; /* lebih tinggi = portrait */
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.galeri-card img:hover {
  transform: scale(1.05);
}

/* CAPTION */
.galeri-caption {
  margin-top: 8px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}
@media(max-width:768px){
  .galeri-container {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di HP */
    gap: 15px;
  }

  .galeri-card img {
    width: 100%;
    height: 200px;
  }
}
/* ================= POPUP ================= */
.popup {
  display: none; /* hanya ini */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;

  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* saat aktif */
.popup.show {
  display: flex;
}

.popup-content {
  width: 80%;
  max-width: 500px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* tombol X */
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px; 
  font-weight: bold;
  color: #38bdf8;
  cursor: pointer;
  z-index: 10000;
}