body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f0f0;
  text-align: center;
}

h1 {
  margin-top: 20px;
  color: #333;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* Add some space between cards */
  padding: 20px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px; /* Increased width for a card look */
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adding shadow for card effect */
  transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effect */
}

.gallery-item:hover {
  transform: translateY(-5px); /* Lift the card on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* More intense shadow on hover */
}

.gallery-img {
  width: 100%; /* Ensure image fills the width of the card */
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* Menambahkan styling untuk nama lokasi */
.location-name {
  font-size: 18px;
  color: #333;
  margin-top: 15px;
  font-weight: bold;
}

/* Tombol SD dan HD */
.buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  text-decoration: none;
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn.sd {
  background-color: #007bff;
}

.btn.hd {
  background-color: #ffc107;
}

.btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.btn:active {
  background-color: #003f7f;
  transform: translateY(2px);
}

.btn.sd:hover {
  background-color: #0069d9;
}

.btn.hd:hover {
  background-color: #e0a800;
}

/* Modal */
.modal {
  display: none; /* Modal is hidden by default */
  position: fixed;
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black with transparency */
  padding-top: 60px;
  text-align: center;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  display: block;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
