/* Our Flags gallery — linked only from flags.html */

.flags-hero {
  background: #1a1e26;
  color: var(--cream);
  text-align: center;
  padding: 2.1rem 1.25rem 1.55rem;
}

.flags-hero .kicker-dark {
  color: color-mix(in srgb, var(--brass) 85%, var(--cream));
}

.flags-hero .kicker-dark::after {
  background: color-mix(in srgb, var(--brass) 55%, transparent);
}

.flags-hero h1 {
  margin: 0.45rem 0 0.5rem;
  color: #e8d19a;
  font-family: "Rye", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
}

.flags-hero h1 .accent {
  display: inline;
  color: inherit;
}

.flags-hero .lede {
  margin: 0 auto 0.85rem;
  max-width: 30rem;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
  font-size: 0.98rem;
}

.flags-hero-art {
  max-width: 560px;
  margin: 0.35rem auto 0;
  display: grid;
  place-items: center;
}

.flags-hero-art img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.flags-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.2rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}

.flags-jump a {
  color: #e8d19a;
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
  padding-bottom: 1px;
}

.flags-jump a:hover,
.flags-jump a:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--brass);
}

.flags-catalog {
  background-color: var(--cream);
}

.flags-seal {
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 1.35rem 1rem 0.35rem;
  max-width: var(--wrap, 980px);
}

.flags-seal img {
  width: min(156px, 42vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.flags-seal-cap {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--brass-text);
  text-align: center;
  letter-spacing: 0.02em;
}

.flags-section {
  padding-top: 1.1rem;
  padding-bottom: 2.4rem;
}

#national.flags-section {
  padding-top: 0.55rem;
}

.flags-section h2 {
  font-family: var(--font-fell);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  margin: 0 0 0.35rem;
  color: var(--scv-red);
}

.flags-section .flags-lede {
  margin: 0.65rem 0 1.35rem;
  max-width: 38rem;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
  font-size: 0.98rem;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.65rem 1.2rem;
  align-items: stretch;
}

.flags-plate {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.flags-plate-media {
  width: 100%;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 9.25rem;
}

.flags-plate-media img {
  width: 100%;
  height: auto;
  max-height: 148px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.flags-plate.is-wide .flags-plate-media img {
  max-height: 110px;
}

.flags-plate.is-painted .flags-plate-media {
  padding: 0.4rem;
  background: #ebe2cf;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  width: auto;
  max-width: 100%;
}

.flags-plate.is-painted .flags-plate-media img {
  max-height: 148px;
  filter: none;
}

.flags-opener {
  display: grid;
  place-items: center;
  margin: 0 0 1.75rem;
}

.flags-opener img {
  max-width: min(280px, 72vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
}

.flags-opener .flags-ticket {
  max-width: 20rem;
}

.flags-ticket {
  width: 100%;
  margin-top: auto;
  padding-top: 0.55rem;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 5.05rem;
  height: 5.05rem;
  min-height: 5.05rem;
  max-height: 5.05rem;
  overflow: hidden;
}

.flags-ticket-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  width: 100%;
  flex: 0 0 2.4rem;
  height: 2.4rem;
  min-height: 2.4rem;
  overflow: hidden;
}

.flags-ticket-name::before,
.flags-ticket-name::after {
  content: "";
  flex: 1 1 0.8rem;
  height: 1px;
  background: var(--brass, #b88f2a);
  opacity: 0.65;
  max-width: 2.4rem;
  min-width: 0.45rem;
}

.flags-ticket-name span {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.flags-ticket-credit {
  margin: 0.22rem 0 0;
  width: 100%;
  max-height: 1.85rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--brass-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.flags-tone {
  background-color: var(--cream-2, #e8d9bb);
}

@media (max-width: 520px) {
  .flags-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.75rem;
  }

  .flags-plate-media {
    min-height: 6.5rem;
  }

  .flags-plate-media img {
    max-height: 100px;
  }

  .flags-plate.is-painted .flags-plate-media img {
    max-height: 120px;
  }

  .flags-hero-art img {
    max-height: 260px;
  }

  .flags-seal img {
    width: min(140px, 46vw);
  }

  .flags-ticket {
    flex-basis: 4.95rem;
    height: 4.95rem;
    min-height: 4.95rem;
    max-height: 4.95rem;
  }

  .flags-ticket-credit {
    max-height: 2.05rem;
  }

  .flags-ticket-name {
    flex-basis: 2.05rem;
    height: 2.05rem;
    min-height: 2.05rem;
  }

  .flags-ticket-name span {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
}
