/* =====================================================================
   Group Delegation Gallery  (section + album popup + photo viewer)
   Everything is namespaced with .gdg so nothing leaks into the rest
   of the site. Admin-only styles live in gallery-admin.css.
   ===================================================================== */

.gdg {
  --gdg-navy: #101f46;
  --gdg-navy-deep: #0b1638;
  --gdg-orange: #e3622c;
  --gdg-orange-deep: #cf4f1b;
  --gdg-ink: #2b3145;
  --gdg-line: #d8dcea;
  --gdg-radius: 14px;
  --gdg-gap: 11px;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 12vh;
  padding: 50px 0 168px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfdff 46%, #f3f5fd 78%, #eaedfa 100%);
}

/* The gallery sits directly above "Why us": remove that section's gap so
   the two backgrounds meet cleanly. */
.gdg + #why__choose {
  margin-top: 0;
}

/* The site sets pointer-events:none on p/span/h2/h3 – restore inside. */
.gdg p,
.gdg span,
.gdg h2,
.gdg h3,
.gdg-modal p,
.gdg-modal span,
.gdg-modal h2,
.gdg-modal h3 {
  pointer-events: auto;
}

/* ---------- decorative background art ---------- */
.gdg__art {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
}

.gdg__art--plane {
  top: 26px;
  left: 0;
  width: 320px;
  height: 230px;
  background-image: url("./art/flight-path.svg");
  background-size: contain;
}

.gdg__art--map {
  top: -6px;
  right: -40px;
  width: 640px;
  height: 330px;
  background-image: url("./art/world-dots.svg");
  background-size: 760px auto;
  background-position: right -150px top 6px;
  -webkit-mask-image: radial-gradient(120% 110% at 78% 30%, #000 38%, transparent 78%);
  mask-image: radial-gradient(120% 110% at 78% 30%, #000 38%, transparent 78%);
  opacity: 0.9;
}

.gdg__art--skyline {
  left: 0;
  right: 0;
  bottom: 0;
  height: 215px;
  background-image: url("./art/skyline.svg");
  background-position: center bottom;
  background-size: max(100%, 1180px) auto;
}

/* ---------- layout ---------- */
.gdg__inner {
  width: min(100% - 64px, 1490px);
  margin-inline: auto;
}

.gdg__head {
  text-align: center;
}

.gdg__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.gdg__eyebrow-line {
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: var(--gdg-orange);
}

.gdg .gdg__eyebrow-text {
  font-family: var(--primary-font-family);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gdg-orange);
}

.gdg__heading {
  margin-top: 12px;
  font-family: var(--primary-font-family);
  font-size: clamp(1.55rem, 1.05rem + 1.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gdg-navy);
}

.gdg .gdg__desc {
  width: min(100%, 860px);
  margin: 12px auto 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gdg-ink);
}

/* ---------- filter pills ---------- */
.gdg__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 26px;
  min-height: 40px;
}

.gdg-pill {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 23px;
  border: 1px solid var(--gdg-line);
  border-radius: 999px;
  background: #fff;
  color: #1b2340;
  font-family: var(--primary-font-family);
  font-size: 0.81rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.gdg-pill:hover {
  border-color: #aab2d0;
  box-shadow: 0 4px 14px rgba(16, 31, 70, 0.09);
}

.gdg-pill:active {
  transform: scale(0.97);
}

.gdg-pill.is-active {
  background: var(--gdg-navy);
  border-color: var(--gdg-navy);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(16, 31, 70, 0.22);
}

.gdg-pill:focus-visible,
.gdg__nav:focus-visible,
.gdg__edit-btn:focus-visible,
.gdg-tile:focus-visible,
.gdg-tile__open:focus-visible {
  outline: 3px solid rgba(227, 98, 44, 0.55);
  outline-offset: 2px;
}

/* ---------- photo grid ---------- */
.gdg__grid {
  display: grid;
  grid-template-columns: minmax(0, 614fr) minmax(0, 866fr);
  gap: var(--gdg-gap);
  margin-top: 30px;
  /* height follows the width (design ratio 1490:505); never use min-height
     together with aspect-ratio – it would force a minimum width. */
  height: max(360px, calc(min(100vw - 64px, 1490px) * 0.339));
  transition: opacity 0.22s ease;
}

.gdg__grid.is-switching {
  opacity: 0;
}

.gdg__grid--solo {
  grid-template-columns: minmax(0, 1fr);
}

.gdg__side {
  display: flex;
  flex-direction: column;
  gap: var(--gdg-gap);
  min-width: 0;
  min-height: 0;
}

.gdg__row {
  display: flex;
  gap: var(--gdg-gap);
  flex: 1 1 0;
  min-height: 0;
}

.gdg__row--top {
  flex-grow: 253;
}

.gdg__row--bottom {
  flex-grow: 240;
}

.gdg-tile {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #dfe3f1;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px -14px rgba(16, 31, 70, 0.45);
  transform: translateZ(0);
}

.gdg-tile--main {
  border-radius: var(--gdg-radius);
}

/* design proportions of the five side tiles */
.gdg__row--top .gdg-tile:nth-child(1) {
  flex-grow: 392;
}
.gdg__row--top .gdg-tile:nth-child(2) {
  flex-grow: 462;
}
.gdg__row--n3 .gdg-tile:nth-child(1) {
  flex-grow: 333;
}
.gdg__row--n3 .gdg-tile:nth-child(2) {
  flex-grow: 297;
}
.gdg__row--n3 .gdg-tile:nth-child(3) {
  flex-grow: 211;
}

.gdg-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gdg-tile:hover .gdg-tile__img,
.gdg-tile:focus-visible .gdg-tile__img {
  transform: scale(1.045);
}

.gdg-tile__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: repeating-linear-gradient(135deg, #e6e9f5 0 14px, #eef0f9 14px 28px);
  color: #6b7392;
  font-family: var(--primary-font-family);
  font-size: 0.9rem;
  text-align: center;
}

/* location + date badge */
.gdg-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 7px 14px 7px 11px;
  border-radius: 12px;
  background: rgba(13, 24, 58, 0.84);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
}

.gdg-badge svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: #fff;
}

.gdg-badge__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gdg .gdg-badge__place,
.gdg .gdg-badge__date {
  overflow: hidden;
  font-family: var(--primary-font-family);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
}

.gdg .gdg-badge__place {
  font-weight: 600;
}

.gdg .gdg-badge__date {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.gdg-tile--main .gdg-badge {
  top: 16px;
  left: 16px;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
}

.gdg-tile--main .gdg-badge svg {
  width: 24px;
  height: 24px;
}

.gdg .gdg-tile--main .gdg-badge__place,
.gdg .gdg-tile--main .gdg-badge__date {
  font-size: 0.8rem;
}

/* caption: always on the main tile, on hover for the small ones */
.gdg-tile__shade {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 58%;
  background: linear-gradient(180deg, rgba(8, 14, 36, 0) 0%, rgba(8, 14, 36, 0.55) 55%, rgba(8, 14, 36, 0.86) 100%);
  pointer-events: none;
}

.gdg-tile__caption {
  position: absolute;
  left: 22px;
  right: 78px;
  bottom: 20px;
  z-index: 2;
}

.gdg .gdg-tile__title {
  display: block;
  font-family: var(--primary-font-family);
  font-size: clamp(1.25rem, 0.9rem + 1vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: #fff;
}

.gdg .gdg-tile__tagline {
  display: block;
  margin-top: 6px;
  font-family: var(--primary-font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.gdg-tile__open {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--gdg-navy);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.gdg-tile__open svg {
  width: 18px;
  height: 18px;
}

.gdg-tile--main:hover .gdg-tile__open {
  transform: translateX(3px);
  background: var(--gdg-orange);
  color: #fff;
}

.gdg-tile--side .gdg-tile__shade,
.gdg-tile--side .gdg-tile__caption {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gdg-tile--side .gdg-tile__caption {
  left: 14px;
  right: 14px;
  bottom: 12px;
}

.gdg .gdg-tile--side .gdg-tile__title {
  font-size: 1rem;
}

.gdg .gdg-tile--side .gdg-tile__tagline {
  display: none;
}

.gdg-tile--side:hover .gdg-tile__shade,
.gdg-tile--side:hover .gdg-tile__caption,
.gdg-tile--side:focus-visible .gdg-tile__shade,
.gdg-tile--side:focus-visible .gdg-tile__caption {
  opacity: 1;
}

/* skeleton while loading */
.gdg-tile--skeleton {
  cursor: default;
  box-shadow: none;
  background: linear-gradient(100deg, #e9ecf6 20%, #f4f6fc 40%, #e9ecf6 60%);
  background-size: 300% 100%;
  animation: gdg-shimmer 1.4s linear infinite;
}

@keyframes gdg-shimmer {
  to {
    background-position: -300% 0;
  }
}

.gdg__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed #c9cfe4;
  border-radius: var(--gdg-radius);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.gdg .gdg__empty-title {
  font-family: var(--primary-font-family);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gdg-navy);
}

.gdg .gdg__empty-text {
  font-size: 0.9rem;
  color: #636b85;
}

/* ---------- bottom controls ---------- */
.gdg__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.gdg__nav {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d3d8e8;
  border-radius: 50%;
  background: #fff;
  color: var(--gdg-navy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 31, 70, 0.06);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.gdg__nav svg {
  width: 16px;
  height: 16px;
}

.gdg__nav:hover:not(:disabled) {
  background: var(--gdg-navy);
  border-color: var(--gdg-navy);
  color: #fff;
}

.gdg__nav:active:not(:disabled) {
  transform: scale(0.94);
}

.gdg__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.gdg__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-width: 0;
}

.gdg__cta-line {
  flex: none;
  width: clamp(40px, 12vw, 182px);
  height: 1px;
  background: rgba(227, 98, 44, 0.75);
}

.gdg__edit-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 40px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ea6a31 0%, var(--gdg-orange) 45%, #d6551f 100%);
  color: #fff;
  font-family: var(--primary-font-family);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(227, 98, 44, 0.75);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.gdg__edit-btn svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.gdg .gdg__edit-btn span {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  pointer-events: none;
}

.gdg__edit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 26px -8px rgba(227, 98, 44, 0.85);
}

.gdg__edit-btn:active {
  transform: translateY(0) scale(0.98);
}

.gdg__edit-btn[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}

/* =====================================================================
   Album popup
   ===================================================================== */
html.gdg-lock,
html.gdg-lock body {
  overflow: hidden;
}

.gdg-modal {
  --gdg-navy: #101f46;
  --gdg-orange: #e3622c;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 3vw, 36px);
  font-family: var(--primary-font-family);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}

.gdg-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.25s ease,
    visibility 0s;
}

.gdg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 32, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gdg-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 1240px);
  max-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gdg-modal.is-open .gdg-modal__panel {
  transform: none;
}

.gdg-modal__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e6e9f3;
  background: #fff;
}

.gdg-modal__back,
.gdg-modal__close {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 1px solid #d8dcea;
  border-radius: 999px;
  background: #fff;
  color: var(--gdg-navy);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.gdg-modal__back {
  padding: 0 18px 0 14px;
}

.gdg-modal__close {
  width: 40px;
  padding: 0;
}

.gdg-modal__back svg,
.gdg-modal__close svg {
  width: 16px;
  height: 16px;
}

.gdg-modal__back:hover,
.gdg-modal__close:hover {
  background: var(--gdg-navy);
  border-color: var(--gdg-navy);
  color: #fff;
}

.gdg-modal .gdg-modal__back span {
  font: inherit;
  color: inherit;
  pointer-events: none;
}

.gdg-modal__titles {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.gdg-modal .gdg-modal__title {
  overflow: hidden;
  font-family: var(--primary-font-family);
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--gdg-navy);
}

.gdg-modal .gdg-modal__meta {
  margin-top: 2px;
  overflow: hidden;
  font-family: var(--secondary-font-family);
  font-size: 0.84rem;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #5b637d;
}

.gdg-modal .gdg-modal__meta b {
  font-weight: 600;
  color: var(--gdg-orange);
}

.gdg-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  background: #f6f7fc;
}

.gdg-modal__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.gdg-photo {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #dfe3f1;
  cursor: zoom-in;
}

.gdg-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gdg-photo:hover img {
  transform: scale(1.05);
}

.gdg-photo:focus-visible,
.gdg-modal__back:focus-visible,
.gdg-modal__close:focus-visible,
.gdg-viewer__btn:focus-visible {
  outline: 3px solid rgba(227, 98, 44, 0.6);
  outline-offset: 2px;
}

.gdg-modal .gdg-photo__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 9px;
  background: linear-gradient(180deg, transparent, rgba(8, 14, 36, 0.82));
  font-family: var(--primary-font-family);
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: left;
  color: #fff;
  pointer-events: none;
}

.gdg-modal .gdg-modal__none {
  padding: 60px 20px;
  font-size: 0.95rem;
  text-align: center;
  color: #636b85;
}

/* ---------- full-size photo viewer ---------- */
.gdg-viewer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 9, 24, 0.96);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
}

.gdg-viewer.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease,
    visibility 0s;
}

.gdg-viewer__img {
  max-width: calc(100% - 140px);
  max-height: calc(100% - 120px);
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}

.gdg-viewer__btn {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.gdg-viewer__btn svg {
  width: 18px;
  height: 18px;
}

.gdg-viewer__btn:hover {
  background: #fff;
  color: #101f46;
}

.gdg-viewer__btn--prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.gdg-viewer__btn--next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.gdg-viewer__btn--close {
  top: 16px;
  right: 18px;
}

.gdg-viewer__btn[hidden] {
  display: none;
}

.gdg-modal .gdg-viewer__count {
  position: absolute;
  top: 26px;
  left: 22px;
  font-family: var(--primary-font-family);
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
}

.gdg-modal .gdg-viewer__cap {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 18px;
  font-family: var(--primary-font-family);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media screen and (max-width: 1279px) {
  .gdg__art--plane {
    top: 0;
    left: -46px;
    width: 180px;
    height: 130px;
    opacity: 0.8;
  }
}

@media screen and (max-width: 1200px) {
  .gdg__grid {
    height: max(360px, calc((100vw - 64px) * 0.39));
  }

  .gdg__art--map {
    width: 520px;
  }
}

@media screen and (max-width: 997px) {
  .gdg {
    padding: 48px 0 150px;
  }

  .gdg__inner {
    width: min(100% - 40px, 1490px);
  }

  .gdg__art--map {
    right: -120px;
    opacity: 0.6;
  }

  .gdg__art--skyline {
    height: 170px;
  }

  .gdg__grid {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .gdg-tile--main {
    aspect-ratio: 16 / 11;
  }

  .gdg__row {
    flex: none;
  }

  .gdg__row .gdg-tile {
    aspect-ratio: auto;
    height: clamp(150px, 26vw, 240px);
  }

  .gdg__empty {
    min-height: 260px;
  }
}

@media screen and (max-width: 767px) {
  .gdg__filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: -20px;
    padding: 4px 20px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .gdg__filters::-webkit-scrollbar {
    display: none;
  }

  .gdg-pill {
    flex: none;
    scroll-snap-align: center;
  }

  .gdg__cta {
    gap: 14px;
  }

  .gdg__cta-line {
    width: clamp(0px, 6vw, 60px);
  }

  .gdg-modal__bar {
    padding: 12px 14px;
    gap: 10px;
  }

  .gdg-modal__body {
    padding: 14px;
  }

  .gdg-modal__panel {
    border-radius: 0;
    height: 100%;
  }

  .gdg-viewer__img {
    max-width: 100%;
    max-height: calc(100% - 150px);
    border-radius: 0;
  }

  .gdg-viewer__btn--prev {
    left: 10px;
    top: auto;
    bottom: 58px;
    transform: none;
  }

  .gdg-viewer__btn--next {
    right: 10px;
    top: auto;
    bottom: 58px;
    transform: none;
  }

  .gdg-modal .gdg-viewer__cap {
    bottom: 14px;
    left: 16px;
    right: 16px;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 600px) {
  .gdg {
    margin-top: 9vh;
    padding: 40px 0 128px;
  }

  .gdg__art--plane {
    display: none;
  }

  .gdg__art--map {
    opacity: 0.45;
  }

  .gdg__art--skyline {
    height: 130px;
    background-size: 900px auto;
  }

  .gdg .gdg__eyebrow-text {
    font-size: 0.92rem;
    letter-spacing: 1.8px;
  }

  .gdg__eyebrow-line {
    width: 40px;
  }

  .gdg .gdg__desc {
    font-size: 0.92rem;
  }

  /* small tiles become a tidy two-column grid */
  .gdg__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gdg__row {
    display: contents;
  }

  .gdg__row .gdg-tile {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .gdg__side--odd .gdg__row:last-child .gdg-tile:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2.3 / 1;
  }

  .gdg-tile--main {
    aspect-ratio: 4 / 3.4;
  }

  .gdg-badge,
  .gdg-tile--main .gdg-badge {
    top: 9px;
    left: 9px;
    gap: 8px;
    padding: 6px 11px 6px 9px;
    border-radius: 10px;
  }

  .gdg-badge svg,
  .gdg-tile--main .gdg-badge svg {
    width: 18px;
    height: 18px;
  }

  .gdg .gdg-badge__place,
  .gdg .gdg-badge__date,
  .gdg .gdg-tile--main .gdg-badge__place,
  .gdg .gdg-tile--main .gdg-badge__date {
    font-size: 0.68rem;
  }

  .gdg-tile__caption {
    left: 16px;
    right: 66px;
    bottom: 16px;
  }

  .gdg .gdg-tile__tagline {
    font-size: 0.88rem;
  }

  .gdg-tile__open {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
  }

  .gdg__controls {
    gap: 10px;
    margin-top: 24px;
  }

  .gdg__cta-line {
    display: none;
  }

  .gdg__edit-btn {
    height: 48px;
    padding: 0 24px;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
  }

  .gdg-modal .gdg-modal__back span {
    display: none;
  }

  .gdg-modal__back {
    width: 40px;
    padding: 0;
  }

  .gdg-modal__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gdg *,
  .gdg-modal,
  .gdg-modal * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
