body {
  font-family: 'EB Garamond', serif;
  background: url('https://www.transparenttextures.com/patterns/parchment.png');
  color: #2e1c09;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  font-family: 'Cinzel', serif;
  color: #5a3511;
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px #f1d9a6;
}

/* Grid galeri */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* Card */
.card {
  position: relative;
  overflow: hidden;
  border: 3px solid #b68d40;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f7f0d9;
}

.card img {
  width: 100%;
  display: block;
  border-bottom: 3px solid #b68d40;
  transition: transform 0.3s ease;
}

/* Hover efek */
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(182, 141, 64, 0.7);
}

.card:hover img {
  transform: scale(1.08);
}

/* Overlay lore singkat */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(90, 53, 17, 0.8);
  padding: 12px;
  text-align: center;
  color: #f9e4bc;
  font-size: 15px;
  font-family: 'Cinzel', serif;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .overlay {
  opacity: 1;
}

/* Modal pop-up */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: #f7f0d9;
  padding: 25px;
  border-radius: 15px;
  max-width: 700px;
  text-align: center;
  position: relative;
  color: #2e1c09;
  border: 4px solid #b68d40;
  box-shadow: 0 0 30px rgba(182, 141, 64, 0.8);
  font-size: 18px;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 2px solid #b68d40;
}

.modal-content h2 {
  font-family: 'Cinzel', serif;
  margin-bottom: 15px;
  color: #5a3511;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  color: #5a3511;
  cursor: pointer;
}
