/* Additions to the approved design, in its colours: the anniversary line in the
   header, the gallery's fifth photo, and fixes found by the layout check. Loaded on
   every page. */

.anniversary {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
  /* Georgia's old-style figures drop the "15" below the line; use upright ones. */
  font-variant-numeric: lining-nums;
}
.anniversary .a-red {
  color: #d6163c;
}
.anniversary .a-amber {
  color: #d9a400;
  text-shadow: 0 1px 0 rgba(120, 80, 0, 0.18);
}
.anniversary .a-green {
  color: #1f8a3b;
}
.anniversary-light {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 3px;
  background: #1b1b1b;
  border-radius: 5px;
  flex: 0 0 auto;
}
.anniversary-light i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.anniversary-light i:nth-child(1) {
  background: #e8213b;
}
.anniversary-light i:nth-child(2) {
  background: #ffc531;
}
.anniversary-light i:nth-child(3) {
  background: #35b34a;
}

/* The anniversary banner above the header, on every page (as on the school's own site). */
.anniversary-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e6ebf1;
  position: relative;
  z-index: 60;
}
.anniversary-banner .anniversary {
  flex: 0 1 auto;
  font-size: clamp(1.15rem, 3.2vw, 2.4rem);
}
.anniversary-banner .anniversary sup {
  font-size: 0.55em;
  vertical-align: 0.6em;
}
.anniversary-banner .anniversary-light {
  padding: 4px;
  border-radius: 7px;
  gap: 3px;
}
.anniversary-banner .anniversary-light i {
  width: clamp(7px, 1.1vw, 11px);
  height: clamp(7px, 1.1vw, 11px);
}
@media (max-width: 520px) {
  .anniversary-banner {
    gap: 8px;
    padding: 6px 10px;
  }
  .anniversary-banner .anniversary {
    /* Scales with the phone so the line fits between the two lights; on the very
       narrowest phones the words may wrap rather than push the page sideways. */
    font-size: min(1.02rem, 3.8vw);
    gap: 4px;
    min-width: 0;
    flex-wrap: wrap;
    white-space: normal;
  }
}
/* Below wide screens the tagline gives way so "Check Eligibility" stays on one line. */
@media (max-width: 1280px) {
  .brand-row .brand-message {
    display: none;
  }
}

/* The Spanish page's picture is 580px wide; on phones its column (and the buttons in
   it) must still fit the screen. */
.spanish-grid > * {
  min-width: 0;
}
.spanish-grid img {
  max-width: 100%;
}

/* Five photos in the gallery's three columns: the last one spans two, so the second
   row is full. (The design sets the columns with !important.) */
@media (min-width: 761px) {
  .gallery-grid .gallery-item.gallery-span-2 {
    grid-column: span 2 !important;
  }
}
