.gallery-grid {
  display: grid;
  /* Ganti auto-fill ke auto-fit supaya kolom menyesuaikan dan bisa diratakan di tengah */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;

  /* Pusatkan semua kolom bila ruang tersisa */
  justify-content: center;

  /* Pusatkan item di setiap cell */
  justify-items: center;
}

/* Tetap pakai lebar maksimum di .gallery-item agar minmax(280px,1fr) bekerja */
.gallery-item {
  width: 350px;
}


/* Tiap item */
.gallery-item .img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item .img-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Gambar */
.img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.img-wrapper:hover img {
  transform: scale(1.05);
}

/* Badge gradasi tosca di bottom-left */
.badge-grad {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}


/* CSS untuk .btn-tosca-gradient */
.btn-tosca-gradient {
  display: inline-block;
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-tosca-gradient,
.btn-tosca-gradient:link,
.btn-tosca-gradient:visited,
.btn-tosca-gradient:hover,
.btn-tosca-gradient:focus,
.btn-tosca-gradient:active {
  color: #fff !important;
  text-decoration: none;
}

.btn-tosca-gradient:hover,
.btn-tosca-gradient:focus {
  background: linear-gradient(135deg, #138f75 0%, #159d8e 100%);
  box-shadow: 0 6px 20px rgba(22, 160, 133, 0.4);
  color: #fff;
  outline: none;
}

.btn-tosca-gradient:active {
  background: linear-gradient(135deg, #117a65 0%, #12876f 100%);
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.2);
}

/* Pagination dengan gradasi tosca */
.pagination-custom a,
.pagination-custom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Tombol Prev/Next */
.pagination-custom a {
  /* gradasi vertikal */
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
  color: #ffffff;
}
.pagination-custom a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

/* Halaman Aktif */
.pagination-custom span {
  background: linear-gradient(135deg, #138f75 0%, #159d8e 100%);
  color: #ffffff;
}

/* Disabled */
.pagination-custom .disabled span,
.pagination-custom .disabled a {
  opacity: 0.5;
  pointer-events: none;
}

/* Custom pagination */
.pagination-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-custom li {
  list-style: none;
}

.pagination-custom a,
.pagination-custom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  transition: background 0.3s ease;
}

/* Prev/Next buttons */
.pagination-custom a {
  background: #f1fdfb;
  color: #333;
}
.pagination-custom a:hover {
  background: #e0f2f1;
}

/* Active page */
.pagination-custom span {
  background: #27ae60;
  color: #fff;
  font-weight: 600;
}

/* Disabled state */
.pagination-custom .disabled span {
  opacity: 0.5;
}
.pagination-custom .disabled span i {
  color: #333;
}

/* Breadcrumb container styling */
.breadcrumb-container {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Breadcrumb list styling */
.custom-breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.95rem;
}

/* Link item style */
.custom-breadcrumb .breadcrumb-item a {
  color: #1abc9c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
  color: #138f75;
  text-decoration: underline;
}

/* Active item style */
.custom-breadcrumb .breadcrumb-item.active {
  color: #333;
  font-weight: 600;
}

/* Card foto */
.foto-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.foto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Wrapper gambar untuk positioning badge */
.foto-wrapper {
  position: relative;
  overflow: hidden;
}
.foto-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.foto-card:hover .foto-wrapper img {
  transform: scale(1.05);
}

/* Badge tanggal bottom-right dengan gradasi tosca */
.foto-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Tombol Kembali */
.btn-tosca-gradient {
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 50px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.btn-tosca-gradient:hover {
  background: linear-gradient(135deg, #138f75 0%, #159d8e 100%);
  box-shadow: 0 6px 20px rgba(22,160,133,0.4);
}

/* Breadcrumb styling */
.breadcrumb-container {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
