/* ================= HISTORY BASE ================= */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  text-align: center;
}

/* ================= SECTION NAV ================= */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid #00aaff;
}

.section-nav a {
  color: #00aaff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

/* ================= SECTIONS ================= */
.section {
  padding: 4.5rem 2rem;
  scroll-margin-top: 120px;
}

.section.white {
  background: #fff;
}

.section.grey {
  background: #d8e2ec;
}

.section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 3px;
  font-size: 1.4rem;
}

/* ================= TEXT ================= */
.section-description {
  max-width: 850px;
  margin: 1.8rem auto 2.2rem;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #333;
}

/* ================= GRIDS ================= */
.grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  align-items: start;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Smaller single-image grid (1988) */
.grid-small {
  max-width: 480px;
  margin: 2.5rem auto 0;
}

/* ================= FIGURES ================= */
figure {
  margin: 0;
  text-align: center;
  width: 100%;
  max-width: 350px;
}

/* ================= IMAGES ================= */
.img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ================= CAPTIONS ================= */
figcaption {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #555;
  letter-spacing: 0.6px;
}

/* ================= TIMELINE FEEL ================= */
.section.grey .img {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.section.white .img {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ================= SINGLE IMAGE (1988) ================= */
.grid-1 {
  max-width: 420px;
  margin: 2rem auto 0;
}

.grid-1 .img {
  aspect-ratio: 3 / 2;
}

/* ================= SPECIFIC HISTORY IMAGES ================= */

/* 1988 */
.hist-1988 {
  background-image: url("../images/history/s1_m.jpg");
}

/* 1994 */
.hist-1994-1 { background-image: url("../images/history/s2_l.jpg"); }
.hist-1994-2 { background-image: url("../images/history/s2_m.jpg"); }
.hist-1994-3 { background-image: url("../images/history/s2_r.jpg"); }

/* 2004 */
.hist-2004-1 { background-image: url("../images/history/s3_tl.jpg"); }
.hist-2004-2 { background-image: url("../images/history/s3_tr.jpg"); }
.hist-2004-3 { background-image: url("../images/history/s3_bl.jpg"); }
.hist-2004-4 { background-image: url("../images/history/s3_brjpg.jpg"); }

/* 2008–2018 */
.hist-2008-1  { background-image: url("../images/history/s4_r1_l.jpg"); }
.hist-2008-2  { background-image: url("../images/history/s4_r1_m.jpg"); }
.hist-2008-3  { background-image: url("../images/history/s4_r1_r.jpg"); }

.hist-2008-4  { background-image: url("../images/history/s4_r2_l.jpg"); }
.hist-2008-5  { background-image: url("../images/history/s4_r2_m.jpg"); }
.hist-2008-52 { background-image: url("../images/history/s4_r2_ml.jpg");}
.hist-2008-6  { background-image: url("../images/history/s4_r2_r.jpg"); }

.hist-2008-7  { background-image: url("../images/history/s4_r3_l.jpg"); }
.hist-2008-8  { background-image: url("../images/history/s4_r3_m.jpg"); }
.hist-2008-9  { background-image: url("../images/history/s4_r3_r.jpg"); }

.hist-2008-10 { background-image: url("../images/history/s4_r4_l.jpg"); }
.hist-2008-11 { background-image: url("../images/history/s4_r4_m.jpg"); }
.hist-2008-12 { background-image: url("../images/history/s4_r4_r.jpg"); }

.hist-2008-13 { background-image: url("../images/history/s4_r5_l.jpg"); }
.hist-2008-14 { background-image: url("../images/history/s4_r5_m.jpg"); }
.hist-2008-15 { background-image: url("../images/history/s4_r5_r.jpg"); }

.hist-2008-16 { background-image: url("../images/history/s4_r6_l.jpg"); }
.hist-2008-17 { background-image: url("../images/history/s4_r6_m.jpg"); }
.hist-2008-18 { background-image: url("../images/history/s4_r6_r.jpg"); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

}

@media (max-width: 600px) {

  .grid-6 {
    grid-template-columns: 1fr;
  }

  .section-description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

}