.gallery {
  padding: 60px 20px;
  background: #fff;
  margin-top: 40px;
  box-shadow: 0 -10px 5px rgba(0,0,0,0.05);
  text-align: center;
}

.gallery h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fd5702;
  margin-bottom: 10px;
}

.gallery p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

.gallery-container {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* --- PERUBAHAN UTAMA UNTUK GAMBAR --- */
.gallery-card .image-container {
    width: 100%;
    aspect-ratio: 4 / 3; /* Memaksa rasio aspek gambar */
    background-color: #f0f0f0;
    overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Memastikan gambar mengisi container tanpa peyot */
  display: block;
}
/* ------------------------------------ */

.gallery-card-content {
    padding: 20px;
}

.gallery-card-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.gallery-card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}


@media screen and (max-width: 425px) {
  .gallery h2 {
    font-size: 1.5rem;
  }
  .gallery p {
    font-size: 0.8rem;
  }
}
