/* =========================
   GALLERY GRID
========================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* =========================
   CARD
========================= */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #111;

    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

/* =========================
   IMAGE
========================= */
.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;

    filter: grayscale(20%);
    transition: transform .5s ease, filter .5s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(0.7);
}

/* =========================
   OVERLAY
========================= */
.gallery-overlay {
    position: absolute;
    inset: 0;
    gap: 6px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 1.2rem;

    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;

    opacity: 0;
    transform: translateY(20px);
    transition: all .35s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   TEXT
========================= */
.gallery-overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin: 3px 0;
}

/* =========================
   BUTTON
========================= */
.btn-detail {
    margin-top: 14px;
    padding: 8px 10px;
    border: none;
    background: #fff;
    color: #000;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;

    transition: .3s;
}

.btn-detail:hover {
    background: #ddd;
}

.tbm-gallery{ 
  display:flex; 
  flex-direction:column; 
  gap:12px; 
  width:100%; 
}

.tbm-main{
  border:1px solid #2a2a2a; 
  border-radius:10px; 
  overflow:hidden; 
  background:#111;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.tbm-main img {
  width: 100%;
  aspect-ratio: 3/4; 
  object-fit: cover;
  display: block;
}

.tbm-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.tbm-thumb {
  border-radius: 8px;
  overflow: hidden;
  outline: 1px solid #2a2a2a;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tbm-thumb:hover{ 
  transform:translateY(-1px); 
}

.tbm-thumb.is-active{ 
  outline:2px solid #fff; 
}

.tbm-thumb img {
  width: 100%;
  aspect-ratio: 3/4; 
  max-height: 90px;
  object-fit: cover;
  display: block;
}

/* =========================
   MEDIA QUERY 1024px
========================= */
@media (max-width: 1024px) {

  .section-header h2 {
    font-size: 2.3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .gallery-overlay {
    padding: 1rem;
  }

  .gallery-overlay h3 {
    font-size: 1.1rem;
  }

  .tbm-thumbs {
    grid-template-columns: repeat(5, 1fr); /* 🔥 lebih lega */
  }

  .tbm-main img {
    aspect-ratio: 3/4;
  }

}

/* =========================
   MEDIA QUERY 768px
========================= */
@media (max-width: 768px) {

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .gallery-card img {
    aspect-ratio: 3 / 4;
  }

  .gallery-overlay {
    padding: 0.9rem;
  }

  .gallery-overlay h3 {
    font-size: 1rem;
  }

  .gallery-overlay p {
    font-size: 0.8rem;
  }

  .tbm-main img {
    aspect-ratio: 3/4;
  }

  .tbm-thumbs {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }

  .tbm-thumb img {
    aspect-ratio: 3/4; 
    max-height: 80px;
  }

}

/* =========================
   MEDIA QUERY 480px
========================= */
@media (max-width: 480px) {

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .gallery-card img {
    aspect-ratio: 3 / 4;
  }

  .gallery-overlay {
    padding: 0.7rem;
  }

  .gallery-overlay h3 {
    font-size: 0.9rem;
  }

  .gallery-overlay p {
    font-size: 0.75rem;
  }

  .btn-detail {
    font-size: 0.8rem;
    padding: 6px 8px;
  }

   .tbm-main img {
    aspect-ratio: 3/4;
  }

  .tbm-thumbs {
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }

  .tbm-thumb img {
    aspect-ratio: 3/4;
    max-height: 70px;
  }

}