.overview {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.overview figure {
  min-width: 0;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.overview figure a {
  display: grid;
  place-items: center;
  background: #17263a;
  border: 1px solid #98b2cb26;
  min-height: 0;
  height: auto;
  aspect-ratio: 1.12;
  color: inherit;
  transition: background 0.28s ease;
}
.overview figure a:hover {
  background: #22364e;
}
.overview figure img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
  min-height: 0;
  background: transparent;
}
.overview figcaption {
  color: #d4e2ef;
  font-size: 0.91rem;
  line-height: 1.35;
}
.overview-vexilologia,
.overview-sigilografia {
  display: block;
}
.overview-vexilologia figure img,
.overview-sigilografia figure img {
  height: 100%;
  padding: 4%;
}
.overview-coins figure a {
  border: 1px solid #a9c9e34f;
}
.overview-badges {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.overview-badges img {
  padding-block: 0.65rem;
}
.badge-set {
  border-top: 1px solid #adcae345;
  margin-block: 1.3rem;
  padding-block: 0.45rem 1rem;
}
.exhibition-destination {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  background: #ccdef3;
  color: #11243b;
  padding-inline: 0.85rem;
  text-decoration: none;
  margin-right: 1rem;
}
.exhibition-page a.exhibition-destination:hover {
  color: #132741;
  background: #e9f6ff;
  text-shadow: none;
}
.objects-exhibit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.objects-exhibit a {
  display: grid;
  gap: 0.65rem;
  text-decoration: none;
}
.objects-exhibit img {
  width: 100%;
  height: clamp(9rem, 22vw, 20rem);
  object-fit: contain;
  background: #263a4f;
}
.note-stage {
  background: radial-gradient(ellipse at center, #3d536e, #192b43 78%);
  padding: clamp(1rem, 3vw, 2rem);
}
.note-stage > p {
  color: #d0e1f5;
  text-align: center;
  margin-top: 0.8rem;
}
.note-folio {
  position: relative;
  display: grid;
  justify-items: center;
}
.note-faces {
  width: min(100%, 52rem);
  position: relative;
  height: clamp(228px, 32vw, 417px);
  perspective: 800px;
}
.note-faces img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  transition: transform 0.66s cubic-bezier(0.22, 0.72, 0.16, 1);
  filter: drop-shadow(0 13px 22px #0a152b88);
}
.note-back {
  transform: rotateY(-180deg);
}
.note-folio[data-flipped] .note-front {
  transform: rotateY(180deg);
}
.note-folio[data-flipped] .note-back {
  transform: rotateY(0);
}
.note-turn {
  position: absolute;
  inset: 0 0 45px;
  background: transparent;
  border: 0;
  cursor: ew-resize;
}
.note-zoom {
  min-height: 42px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.note-fan {
  display: flex;
  justify-content: center;
  align-items: end;
  min-height: clamp(112px, 11vw, 158px);
  padding: 1.4rem 0.8rem 0.25rem;
  background: linear-gradient(180deg, #101b2c, #182a41);
}
.note-fan button {
  position: relative;
  isolation: isolate;
  flex: 0 0 15.5%;
  min-width: 0;
  display: grid;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-inline: -1.75%;
  color: #e1ecfa;
  transition: transform 0.35s cubic-bezier(0.22, 0.72, 0.16, 1);
  transform: translateY(calc(abs(var(--fan-offset)) * 5px))
    rotate(calc(var(--fan-offset) * 4deg));
}
.note-fan button img {
  width: 100%;
  aspect-ratio: 2.1;
  object-fit: contain;
  filter: drop-shadow(0 10px 11px #060e1eaa);
}
.note-fan button span {
  padding: 8px 0.3rem;
  font-size: clamp(0.63rem, 1.3vw, 0.93rem);
  white-space: nowrap;
}
.note-fan button[aria-pressed="true"],
.note-fan button:is(:hover, :focus-visible) {
  z-index: 2;
  transform: translateY(-0.65rem) rotate(0) scale(1.12);
}
.art-zoom {
  max-width: min(92vw, 1490px);
  max-height: 92svh;
  background: #101d2b;
  border: 1px solid #94c5f56b;
  color: #f9fcff;
  padding: 1rem;
  overflow: auto;
}
.art-zoom::backdrop {
  background: #030912e7;
}
.art-zoom button {
  display: grid;
  place-items: center;
  margin: 0 0 0.65rem auto;
  width: 44px;
  height: 44px;
  border: 1px solid #d8eafa80;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.35rem;
}
.art-zoom img {
  max-height: 74svh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}
.art-zoom p {
  margin: 0.8rem 0 0;
  text-align: center;
}
@media (max-width: 660px) {
  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .note-fan {
    min-height: 100px;
    padding-inline: 0.15rem;
  }
  .note-fan button span {
    min-height: 44px;
    font-size: 0.65rem;
    padding-inline: 0;
  }
}

.anthem-player {
  width: min(100%, 32rem);
  margin-block: 0.7rem 1.2rem;
}

.overview:is(.overview-vexilologia, .overview-sigilografia) figure a {
  aspect-ratio: 2.1;
}
.overview-filatelia figure a {
  aspect-ratio: 1.25;
}
.overview-paramentos figure a {
  aspect-ratio: 0.92;
}
.overview-badges figure a {
  aspect-ratio: 1.62;
}
.overview-badges figure img {
  padding: 8%;
}
.overview-coins figure a {
  aspect-ratio: 1;
}
.overview:is(
    .overview-heraldica,
    .overview-insignias,
    .overview-filatelia,
    .overview-paramentos
  )
  a {
  overflow: hidden;
  position: relative;
}
.overview a::after {
  content: "↗";
  position: absolute;
  inset: 0.55rem 0.65rem auto auto;
  font-size: 0.8rem;
  color: #c7e1fb;
  opacity: 0;
  transition: opacity 0.22s;
}
.overview a:is(:hover, :focus-visible)::after {
  opacity: 1;
}
.overview a {
  position: relative;
}
.exhibition-page .collection-nav a[aria-current]::before {
  box-shadow: none;
}
.exhibition-page .collection-nav a {
  color: #cfdef0;
  opacity: 0.78;
  text-shadow: none;
}
.exhibition-page .collection-nav a:is(:hover, :focus-visible, [aria-current]) {
  opacity: 1;
  text-shadow: none;
}
.anthem-status a {
  color: #acd6fc;
}

.art-zoom .zoom-sequence {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 0.7rem;
  color: #e6f1fe;
  font-size: 0.9rem;
}
.art-zoom .zoom-sequence button {
  position: static;
  min-width: 44px;
  min-height: 44px;
  background: #17263a;
  color: #d5edff;
  border: 1px solid #aaceee55;
  border-radius: 50%;
  padding: 0;
}
.art-zoom:has(.zoom-sequence:not([hidden])) img {
  max-height: calc(87svh - 114px);
}
.calendar-embed {
  display: block;
  width: 100%;
  height: clamp(530px, 55vw, 660px);
  border: 1px solid #8bbde84d;
  margin: 1rem 0;
  color-scheme: dark;
  background: #102e49;
}
