.city-gallery {
  margin: 20px auto;
  border-radius: 16px;
  background: #fff;
  color: var(--purple);
  padding: clamp(24px, 5vw, 56px) 0 22px;
}
.city-gallery [hidden] { display: none !important; }
.city-gallery-inner { max-width: 1440px; margin: auto; padding: 0 clamp(16px, 4vw, 52px); }
.city-gallery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(14px, 3vw, 34px); }
.city-gallery-heading h2 { margin: 0; font-size: clamp(26px, 3.65vw, 53px); line-height: 1.12; color: inherit; }
.city-gallery-expand, .city-gallery-directory, .city-gallery-autoplay {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 8px 0;
  font: inherit;
  font-weight: 700;
  text-underline-offset: 4px;
  cursor: pointer;
}
.city-gallery-expand:hover, .city-gallery-directory:hover, .city-gallery-autoplay:hover { text-decoration: underline; }
.city-gallery button:focus-visible, .city-gallery-directory:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.city-gallery-frame { position: relative; }
.city-gallery-viewport { overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; }
.city-gallery-viewport::-webkit-scrollbar { display: none; }
.city-gallery-track { --city-gap: 20px; display: flex; gap: var(--city-gap); }
.city-gallery-card {
  flex: 0 0 calc((100% - 2 * var(--city-gap)) / 3);
  min-width: 0;
  background: #fff;
  color: var(--purple);
  border-radius: 16px;
  outline: 1px solid #e7deec;
  outline-offset: -1px;
  overflow: hidden;
}
.city-gallery-photo { position: relative; aspect-ratio: 4 / 3; background: #e7deec; overflow: hidden; }
.city-gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.city-gallery-photo img.city-gallery-tall-landmark { object-position: center top; }
.city-gallery-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--purple) 24%, transparent),
    transparent 43%,
    transparent 65%,
    color-mix(in srgb, var(--purple) 26%, transparent));
}
.city-gallery-fare {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 7px 12px;
  color: var(--purple);
  background: #fff;
  border-radius: 10px;
  font-size: clamp(15px, 1.55vw, 22px);
  line-height: 1.14;
}
.city-gallery-fare strong, .city-gallery-fare span { display: block; }
.city-gallery-fare span { font-size: .79em; font-weight: 700; margin-top: 3px; }
.city-gallery-body { display: flex; flex-direction: column; gap: 13px; padding: 17px; }
.city-gallery-body h3 { align-self: flex-start; max-width: 100%; color: inherit; line-height: 1.2; margin: 0; font-size: clamp(19px, 2.25vw, 31px); }
.city-gallery-link {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  padding: 8px;
  text-align: center;
  text-decoration: none;
}
.city-gallery-link:hover { background: var(--dark); }
.city-gallery-navigation { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.city-gallery-arrow {
  position: absolute;
  z-index: 1;
  top: 38%;
  width: 44px;
  height: 44px;
  border: 1px solid #e7deec;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  font: 700 21px/1 system-ui, sans-serif;
  box-shadow: 0 2px 10px #23143542;
  cursor: pointer;
}
.city-gallery-arrow:hover { background: #f0e6f5; }
.city-gallery-previous { left: -13px; }
.city-gallery-next { right: -13px; }
.city-gallery-autoplay { font-size: 14px; }
.city-gallery-viewport.is-expanded { overflow: hidden; }
.city-gallery-viewport.is-expanded .city-gallery-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.city-gallery-viewport.is-expanded [data-gallery-copy] { display: none; }

@media (max-width: 900px) {
  .city-gallery-card { flex-basis: calc((100% - var(--city-gap)) / 2); }
  .city-gallery-viewport.is-expanded .city-gallery-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .city-gallery-track { --city-gap: 14px; }
  .city-gallery-card { flex-basis: 100%; }
  .city-gallery-viewport.is-expanded .city-gallery-track { grid-template-columns: 1fr; }
  .city-gallery-photo { aspect-ratio: 3 / 2; }
  .city-gallery-previous { left: -10px; }
  .city-gallery-next { right: -10px; }
}

.city-gallery-promo-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  overflow: visible;
}
.city-gallery-photo.has-visible-promo .city-gallery-promo-art {
  animation: city-promo-enter 750ms cubic-bezier(.45,.05,.68,.68) 500ms both;
}
.city-gallery-photo.has-visible-promo .city-gallery-promo-bounce {
  animation: city-promo-bounce 2250ms ease-in-out 1250ms infinite;
}
.city-gallery-promo-question, .city-gallery-promo-answer {
  fill: #fff;
  stroke: var(--purple);
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-weight: 800;
}
.city-gallery-promo-question, .city-gallery-promo-answer {
  font-style: italic;
  letter-spacing: 1px;
  stroke-width: 6px;
}
.city-gallery-promo-question { font-size: 45px; }
.city-gallery-promo-answer { font-size: 49px; }
.city-gallery-package-note { margin: 9px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.city-gallery-smiley circle { fill: #ffe18a; stroke: var(--purple); stroke-width: 3.8px; }
.city-gallery-smiley path { fill: #fff; stroke: var(--purple); stroke-width: 2.2px; }
.city-gallery-smiley-eye { fill: var(--purple); transform-box: fill-box; transform-origin: center; }
.city-gallery-photo.has-visible-promo .city-gallery-smiley-eye {
  animation: city-promo-blink 2250ms linear 1250ms infinite;
}
.city-gallery.is-promo-paused .city-gallery-promo-art,
.city-gallery.is-promo-paused .city-gallery-promo-bounce,
.city-gallery.is-promo-paused .city-gallery-smiley-eye { animation-play-state: paused; }
.city-gallery-promo-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
@keyframes city-promo-enter {
  from { transform: translate(70%, -84%); opacity: 1; }
  to { transform: translate(0, 0); opacity: 1; }
}
@keyframes city-promo-bounce {
  0%, 45%, 100% { transform: translateY(0); }
  22% { transform: translateY(-20px); }
}
@keyframes city-promo-blink {
  0%, 62%, 72%, 81%, 91%, 100% { transform: scaleY(1); }
  67%, 86% { transform: scaleY(.1); }
}
@media (prefers-reduced-motion: reduce) {
  .city-gallery-photo.has-visible-promo .city-gallery-promo-art { opacity: 1; animation: none; }
  .city-gallery-photo.has-visible-promo .city-gallery-promo-bounce,
  .city-gallery-photo.has-visible-promo .city-gallery-smiley-eye { animation: none; }
}
