/* Mengatur gaya gambar */
.gallery-block .item {
  position: relative;
  overflow: hidden; /* Menyembunyikan bagian gambar yang keluar dari container */
}

/* Efek zoom pada gambar */
.gallery-block .item img {
  transition: transform 0.7s ease, filter 0.7s ease;
  will-change: transform, filter;
}

/* Zoom effect saat hover */
.gallery-block .item:hover img {
  transform: scale(1.2);
  filter: brightness(0.6);
}

/* Gaya untuk caption */
.gallery-block .description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0); /* Latar belakang semi-transparan */
  color: white;
  padding: 20px;
  text-align: center;
  opacity: 0; /* Menyembunyikan caption secara default */
  visibility: hidden; /* Menyembunyikan caption secara default */
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Caption muncul saat hover */
.gallery-block .item:hover .description {
  opacity: 1; /* Caption muncul */
  visibility: visible; /* Mengubah visibilitas menjadi terlihat */
}


.gallery-block .description .description-heading{
  font-size: 1.2em;
  font-weight: bold;
  color: white;
}

.gallery-block .description .description-body{
  font-size: 0.8em;
  margin-top: 10px;
  font-weight: 300;
}