/* The Green Embassy Kenya — Gallery page layout */
.gallery-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.gallery-heading {
  margin: 0 0 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line, #dce5df);
}

.gallery-heading .eyebrow {
  margin: 0 0 10px;
}

.gallery-heading h1 {
  margin: 0;
  color: var(--forest, #164b35);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.12;
}

.gallery-intro {
  max-width: 820px;
  margin: 0 0 42px;
}

.gallery-intro h2 {
  margin: 0 0 12px;
  color: var(--ink, #172820);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 600;
}

.gallery-intro p {
  margin: 0;
  color: var(--muted, #64736b);
  line-height: 1.75;
}

.album-list {
  display: grid;
  gap: 34px;
}

.album-section {
  min-width: 0;
  padding: 24px;
  background: var(--white, #fff);
  border: 1px solid var(--line, #dce5df);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 55, 38, 0.05);
}

.album-section > header {
  margin: 0 0 18px;
}

.album-section h3 {
  margin: 0;
  color: var(--forest, #164b35);
  font-size: 1.12rem;
  line-height: 1.45;
}

.album-photos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
}

.photo-button {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line, #dce5df);
  border-radius: 8px;
  background: #edf4ef;
  cursor: zoom-in;
}

.photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.photo-button:hover img {
  transform: scale(1.04);
}

.photo-button:focus-visible {
  outline: 3px solid var(--leaf, #39834e);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .album-photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gallery-page {
    width: min(100% - 36px, 680px);
    padding: 42px 0 56px;
  }

  .gallery-intro {
    margin-bottom: 30px;
  }

  .album-section {
    padding: 18px;
  }

  .album-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .gallery-page {
    width: calc(100% - 28px);
    padding-top: 32px;
  }

  .album-list {
    gap: 20px;
  }

  .album-section {
    padding: 14px;
    border-radius: 10px;
  }

  .album-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
}
