/* =========================================================
   STC 2026
   GALLERY — grid dokumentasi (multi_page/gallery.html)
   ========================================================= */

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;

  margin-bottom: 34px;
}

.gallery-filter .filter-btn {
  padding: 10px 22px;
  border: 2px solid rgba(124, 185, 232, 0.5);
  border-radius: 999px;

  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #4a5a76;
  cursor: pointer;

  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}

.gallery-filter .filter-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

.gallery-filter .filter-btn.active {
  background: linear-gradient(135deg, #7cb9e8, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.26);
}

/* ---------------------------------------------------------
   GRID
   --------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;

  border-radius: 18px;
  border: 2px solid rgba(124, 185, 232, 0.4);
  background: #eef5ff;
  box-shadow: 0 12px 30px rgba(31, 62, 108, 0.08);

  transition:
    transform 0.4s,
    box-shadow 0.4s,
    border-color 0.4s;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: #2563eb;
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.18);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;

  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 26px 18px 16px;

  background: linear-gradient(transparent, rgba(13, 27, 42, 0.82));

  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ---------------------------------------------------------
   EMPTY STATE — dipakai selama foto dokumentasi belum ada
   --------------------------------------------------------- */

.gallery-empty {
  padding: 64px 26px;
  border-radius: 20px;
  border: 2px dashed rgba(124, 185, 232, 0.6);
  background: #f5faff;

  text-align: center;
}

.gallery-empty .icon {
  display: block;
  margin-bottom: 16px;
  font-size: 56px;
}

.gallery-empty h3 {
  margin-bottom: 10px;

  font-size: 19px;
  font-weight: 700;
  color: #1f3e6c;
}

.gallery-empty p {
  max-width: 460px;
  margin: 0 auto;

  font-size: 14px;
  line-height: 1.8;
  color: #4a5a76;
}

.gallery-empty .btn-back {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;

  border-radius: 999px;
  background: linear-gradient(135deg, #7cb9e8, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);

  font-size: 14px;
  font-weight: 600;
  color: #fff;

  transition:
    transform 0.3s,
    filter 0.3s;
}

.gallery-empty .btn-back:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-empty {
    padding: 46px 20px;
  }
}
