/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }

/* ─── BASE ────────────────────────────────────────────────── */
html {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--deep-wood, #1a0f08);
  color: var(--cream-warm, #f0e0c0);
  overflow-y: auto;
  overflow-x: hidden;
}

/* ─── FIXED BACKGROUND ────────────────────────────────────── */
.gallery-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.gallery-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) blur(4px);
}

/* ─── STICKY HEADER ───────────────────────────────────────── */
.gallery-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 36px;
  background: linear-gradient(to bottom, rgba(10,5,2,0.9) 60%, transparent);
}

.icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: filter 0.25s, transform 0.2s;
}
.icon-btn:hover {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.65));
  transform: scale(1.06);
}
.icon-btn img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
}

.logo-btn {
  background: none;
  border: none;
  padding: 0;
  transition: filter 0.25s, transform 0.2s;
}
.logo-btn:hover {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.65));
  transform: scale(1.04);
}
.logo-btn img { height: 64px; width: auto; }

/* ─── SCROLLABLE MAIN ─────────────────────────────────────── */
.gallery-main {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

/* ─── SDG BANNER ──────────────────────────────────────────── */
.gallery-banner {
  display: flex;
  justify-content: center;
  padding: 32px 20px 40px;
}
.gallery-banner img {
  width: min(640px, 88%);
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

/* ─── SDG 3-COLUMN SECTION ────────────────────────────────── */
.gallery-sdg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 52px;
}

/* Each SDG icon image — floats on the dark background */
.gallery-sdg-icon {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 20px;
  height: auto;
  object-fit: contain;
  /* The images have their own white bg; drop-shadow gives them the card look */
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  border-radius: 10px;
}

/* SDG text block sits directly on the dark background */
.gallery-sdg-title {
  font-family: 'Georgia', serif;
  font-size: 15.5px;
  font-weight: 700;
  font-style: italic;
  color: #f0e0c0;
  margin-bottom: 10px;
  text-align: center;
}

.gallery-sdg-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(240, 224, 192, 0.85);
  text-align: center;
}

/* ─── GOLDEN BANNER (shared by Blueprint + Architects) ───── */
.gallery-section-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 0;
  padding: 0 20px;
  position: relative;
}

.gallery-section-banner-bar {
  flex: 1;
  max-width: 320px;
  height: 2px;
  background: linear-gradient(to right, transparent, #c9a84c);
}
.gallery-section-banner-bar--right {
  background: linear-gradient(to left, transparent, #c9a84c);
}

.gallery-section-banner-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2a1a08;
  background: linear-gradient(135deg, #d4b45a 0%, #e8cc78 40%, #c9a030 100%);
  padding: 11px 44px;
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.2);
  box-shadow: 0 2px 12px rgba(180,130,20,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  white-space: nowrap;
}

/* ─── BLUEPRINT CONTENT (parchment box) ──────────────────── */
.gallery-blueprint-wrap {
  margin: 0;
}

.gallery-blueprint-content {
  background: rgba(235, 220, 185, 0.92);
  margin: 0;
  padding: 44px 80px;
  color: #1e0f02;
}

.gallery-blueprint-content p {
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 24px;
  color: #1e0f02;
}
.gallery-blueprint-content p:last-child { margin-bottom: 0; }

.gallery-blueprint-content strong {
  font-weight: 900;
}

/* ─── ARCHITECTS SECTION ──────────────────────────────────── */
.gallery-architects-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 80px;
  text-align: center;
}

/* ─── BOTTOM ITALIC TAGLINES ──────────────────────────────── */
.gallery-taglines {
  background: rgba(10, 5, 2, 0.55);
  border-top: 1px solid rgba(200, 165, 80, 0.2);
  padding: 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-taglines p {
  font-size: 14px;
  font-style: italic;
  color: #c9a84c;
  line-height: 1.6;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .gallery-sdg-grid { grid-template-columns: 1fr; max-width: 480px; gap: 40px; padding: 0 24px 40px; }
  .gallery-blueprint-content { padding: 32px 28px; }
  .gallery-taglines { padding: 24px 28px; }
  .gallery-architects-content { padding: 32px 28px; }
}
