/* Fresh gallery design - grid + lightbox, independent of the old
   JoomGallery/fancybox styling. */

.gnew-header {
  text-align: center;
  padding: 60px 20px 30px;
}
.gnew-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin: 0 0 10px;
  color: #222;
}
.gnew-header h1 small {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.02em;
}
.gnew-header p {
  color: #777;
  font-size: 16px;
  margin: 0;
}
.gnew-back {
  margin-bottom: 20px !important;
}
.gnew-back a {
  color: #a3862f;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.gnew-back a:hover { text-decoration: underline; }

/* year index grid */
.gnew-yeargrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 10px 0 80px;
}
.gnew-yearcard {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  text-decoration: none;
}
.gnew-yearcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gnew-yearcard:hover img { transform: scale(1.06); }
.gnew-yearcard-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.gnew-yearcard-year {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: #fff;
  font-weight: 700;
}
.gnew-yearcard-year small {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #ddd;
}
.gnew-yearcard-count {
  color: #eee;
  font-size: 13px;
}

/* per-year photo grid */
.gnew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 10px 0 40px;
}
.gnew-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.gnew-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gnew-thumb:hover img { transform: scale(1.05); opacity: 0.92; }

.gnew-yearnav {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 70px;
  font-size: 14px;
}
.gnew-yearnav a {
  color: #a3862f;
  text-decoration: none;
  font-weight: 600;
}
.gnew-yearnav a:hover { text-decoration: underline; }

/* lightbox */
.gnew-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gnew-lightbox.gnew-open {
  display: flex;
  opacity: 1;
}
.gnew-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.gnew-lightbox-close,
.gnew-lightbox-prev,
.gnew-lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.gnew-lightbox-close:hover,
.gnew-lightbox-prev:hover,
.gnew-lightbox-next:hover { background: rgba(255,255,255,0.25); }
.gnew-lightbox-close { top: 20px; right: 20px; }
.gnew-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.gnew-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.gnew-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ddd;
  font-size: 13px;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .gnew-header h1 { font-size: 30px; }
  .gnew-yeargrid, .gnew-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .gnew-lightbox-prev, .gnew-lightbox-next { width: 40px; height: 40px; font-size: 18px; }
}
