/* Gallery list + album — cream & gold */

.gal-page {
  --gal-cream: #f7f4ee;
  --gal-cream-deep: #efe9df;
  --gal-gold: #c4a35a;
  --gal-gold-mid: #bca858;
  --gal-gold-dark: #a68b4b;
  --gal-ink: #2a241c;
  --gal-muted: #7a7268;
  --gal-line: #e4ddd2;
  --gal-radius: 18px;
  color: var(--gal-ink);
  background: #fff;
}

.gal-page a {
  color: var(--gal-gold-dark);
}

.gal-page a:hover {
  color: var(--gal-ink);
}

/* Kill size jump on hover (Akame a:hover font-weight) and any scale. */
.gal-page a:hover,
.gal-page a:focus,
.gal-page a:active,
.gal-page .gal-card:hover,
.gal-page .gal-card:focus {
  transform: none !important;
  -webkit-transform: none !important;
}

.gal-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----- Compact hero ----- */
.gal-hero {
  padding: 20px 0 28px;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(188, 168, 88, 0.12), transparent 55%),
    linear-gradient(180deg, var(--gal-cream) 0%, #fff 100%);
}

.gal-hero--album {
  padding-bottom: 20px;
}

.gal-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gal-gold-mid);
}

.gal-hero__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.gal-hero__eyebrow a:hover {
  color: var(--gal-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gal-hero__title {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--gal-ink);
}

.gal-hero__lead {
  margin: 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gal-muted);
}

/* ----- Grid ----- */
.gal-list {
  padding: 8px 0 72px;
  background: #fff;
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 18px;
}

.gal-grid--photos {
  grid-template-columns: repeat(4, 1fr);
}

.gal-card {
  display: block;
  text-decoration: none !important;
  color: var(--gal-ink);
  border-radius: var(--gal-radius);
  transition: box-shadow 0.3s ease;
}

.gal-card:hover,
.gal-card:focus {
  box-shadow: 0 10px 28px rgba(42, 36, 28, 0.1);
  color: var(--gal-ink);
}

.gal-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--gal-radius);
  overflow: hidden;
  background: var(--gal-cream-deep);
}

.gal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.gal-card:hover .gal-card__media img {
  filter: brightness(0.97);
}

.gal-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 28%, rgba(188, 168, 88, 0.28), transparent 55%),
    linear-gradient(145deg, #ebe6dc, #f7f4ee);
}

.gal-card__name {
  margin: 10px 4px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gal-ink);
  transition: color 0.25s ease;
}

.gal-card:hover .gal-card__name {
  color: var(--gal-gold-mid);
}

.gal-card--photo .gal-card__name {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--gal-muted);
}

.gal-empty {
  margin: 24px 0;
  font-size: 16px;
  color: var(--gal-muted);
  text-align: center;
}

@media (max-width: 991px) {
  .gal-grid,
  .gal-grid--photos {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 14px;
  }
}

@media (max-width: 575px) {
  .gal-hero {
    padding: 16px 0 22px;
  }

  .gal-hero__title {
    font-size: 26px;
  }

  .gal-hero__lead {
    font-size: 15px;
  }

  .gal-list {
    padding-bottom: 56px;
  }

  .gal-grid,
  .gal-grid--photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .gal-card__name {
    font-size: 15px;
    margin-top: 8px;
  }

  .gal-card--photo .gal-card__name {
    font-size: 12px;
  }
}

/* ----- Photo lightbox ----- */
html.gal-lb-open,
body.gal-lb-open {
  overflow: hidden;
}

.gal-lb {
  --gal-cream-deep: #efe9df;
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.gal-lb[hidden] {
  display: none !important;
}

.gal-lb__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: zoom-out;
  background: rgba(32, 26, 18, 0.88);
}

.gal-lb__shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gal-lb__figure {
  margin: 0;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gal-lb__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: var(--gal-cream-deep, #efe9df);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  user-select: none;
  -webkit-user-drag: none;
}

.gal-lb__meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 16px;
  max-width: 90vw;
  text-align: center;
  color: #f7f4ee;
}

.gal-lb__caption {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.gal-lb__counter {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(247, 244, 238, 0.72);
}

.gal-lb__close,
.gal-lb__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 244, 238, 0.28);
  background: rgba(42, 36, 28, 0.55);
  color: #f7f4ee;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gal-lb__close:hover,
.gal-lb__nav:hover,
.gal-lb__close:focus,
.gal-lb__nav:focus {
  background: rgba(196, 163, 90, 0.9);
  border-color: rgba(196, 163, 90, 0.95);
  color: #fff;
  outline: none;
}

.gal-lb__close {
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.gal-lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
}

.gal-lb__nav--prev {
  left: 8px;
}

.gal-lb__nav--next {
  right: 8px;
}

@media (max-width: 575px) {
  .gal-lb {
    padding: 10px;
  }

  .gal-lb__img {
    max-height: calc(100vh - 110px);
    border-radius: 10px;
  }

  .gal-lb__close {
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
  }

  .gal-lb__nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .gal-lb__nav--prev {
    left: 2px;
  }

  .gal-lb__nav--next {
    right: 2px;
  }

  .gal-lb__caption {
    font-size: 14px;
  }
}

