.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: center; 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 :is(button, summary, .city-gallery-picker a):focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.city-gallery-picker { position: relative; min-width: 230px; max-width: 100%; }
.city-gallery-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid #ded2e8;
  border-radius: 8px;
  background: #f7f1fa;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.city-gallery-picker summary::-webkit-details-marker { display: none; }
.city-gallery-picker summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.city-gallery-picker[open] summary::after { transform: rotate(225deg); }
.city-gallery-picker-options {
  position: absolute;
  z-index: 3;
  inset: calc(100% + 7px) 0 auto auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  box-sizing: border-box;
  width: 350px;
  max-width: calc(100vw - 32px);
  max-height: 55vh;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid #ded2e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 22px #23143526;
  list-style: none;
}
.city-gallery-picker:not([open]) .city-gallery-picker-options { display: none; }
.city-gallery-picker-options a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 10px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
.city-gallery-picker-options a:hover { background: #f2e9fa; }
.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 picture { display: block; height: 100%; }
.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-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; }

@media (max-width: 900px) {
  .city-gallery-card { flex-basis: calc((100% - var(--city-gap)) / 2); }
}
@media (max-width: 560px) {
  .city-gallery-heading { align-items: stretch; flex-direction: column; }
  .city-gallery-picker { width: 100%; min-width: 0; }
  .city-gallery-picker-options { width: 100%; }
  .city-gallery-track { --city-gap: 14px; }
  .city-gallery-card { flex-basis: 100%; }
  .city-gallery-photo { aspect-ratio: 6 / 5; }
  .city-gallery-previous { left: -10px; }
  .city-gallery-next { right: -10px; }
}

.city-gallery-package-note { margin: 9px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
