/* Fancy Gallery Grid */
.gallery-list {
  max-width: 980px;
  margin: 2em auto 0 auto;
  padding: 1em 1em 2em 1em;
  background: #fffbee;
  border-radius: 14px;
  box-shadow: 0 5px 22px rgba(168,138,100,0.17);
}
.gallery-list h2 {
  text-align: center;
  color: #a68a64;
  font-size: 2em;
}
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8em;
  justify-content: center;
  margin-top: .5em;
}
.gallery-grid img {
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(168,138,100,0.18);
  max-width: 230px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.22s, box-shadow 0.22s;
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 7px 28px rgba(168,138,100,0.35);
}

/* Lightbox modal styling */
.lightbox {
  display: none;
  position: fixed;
  z-index: 30;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38, 28, 17, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: background 0.22s;
}
.lightbox.show {
  display: flex;
}
.lightbox-img {
  border-radius: 18px;
  max-width: 90vw;
  max-height: 70vh;
  box-shadow: 0 7px 32px #aa996c66;
}
.close {
  color: #fffbe2;
  position: absolute;
  font-size: 2.7em;
  top: 32px;
  right: 44px;
  font-weight: bold;
  cursor: pointer;
  transition: color .12s;
  z-index: 15;
}
.close:hover {
  color: #eebb58;
}
.caption {
  color: #fffbe2;
  text-align: center;
  font-size: 1.23em;
  margin-top: 1.1em;
}
@media (max-width: 800px) {
  .gallery-list {
    padding: 0.5em;
  }
  .gallery-grid img {
    max-width: 98vw;
    height: 130px;
  }
  .lightbox-img {
    max-width: 98vw;
    max-height: 40vh;
  }
}
