.milo-core-gallery-page #main-content,
.milo-core-gallery-page #main-content .container,
.milo-core-gallery-page .entry-content,
.milo-core-gallery-page .et-l--post,
.milo-core-gallery-page .et_builder_inner_content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.milo-core-gallery-page #main-content .container::before,
.milo-core-gallery-page .entry-title,
.milo-core-gallery-page #sidebar {
  display: none !important;
}

.milo-gallery-page {
  --milo-navy: #071a2f;
  --milo-deep: #03101e;
  --milo-cream: #f7f2e8;
  --milo-gold: #c9a66b;
  --milo-blue: #7bc9e8;
  --milo-pink: #ef9fc9;
  --milo-mint: #73d6b2;
  --milo-surface: #f5f8fb;
  --milo-ink: #102437;
  --milo-muted: #607382;
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: 100svh;
  margin-left: -50vw;
  overflow: clip;
  color: var(--milo-ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(123, 201, 232, .28), transparent 28%),
    radial-gradient(circle at 12% 58%, rgba(239, 159, 201, .13), transparent 32%),
    linear-gradient(135deg, #fffefb 0%, var(--milo-cream) 55%, #e8eff2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.milo-gallery-page *,
.milo-gallery-page *::before,
.milo-gallery-page *::after {
  box-sizing: border-box;
}

.milo-gallery-page button,
.milo-gallery-page input,
.milo-gallery-page a {
  font: inherit;
}

.milo-gallery-page button,
.milo-gallery-page a {
  -webkit-tap-highlight-color: transparent;
}

.milo-gallery-page button:focus-visible,
.milo-gallery-page a:focus-visible,
.milo-gallery-page input:focus-visible {
  outline: 3px solid #0b79a5;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .96);
}

.milo-gallery-page__site-header {
  position: relative;
  z-index: 5;
  width: min(1420px, calc(100% - 40px));
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(7, 26, 47, .08);
}

.milo-gallery-page__brand {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--milo-navy) !important;
  text-decoration: none !important;
}

.milo-gallery-page__brand > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--milo-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .06em;
}

.milo-gallery-page__brand img {
  width: auto;
  max-width: 190px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.milo-gallery-page__brand strong {
  color: var(--milo-navy);
  font-size: 15px;
  font-weight: 780;
}

.milo-gallery-page__return,
.milo-gallery-page__footer a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid rgba(7, 26, 47, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--milo-navy) !important;
  box-shadow: 0 12px 34px rgba(7, 26, 47, .08);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 780;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.milo-gallery-page__return:hover,
.milo-gallery-page__footer a:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 26, 47, .13);
}

.milo-gallery-page__hero {
  position: relative;
  width: min(1320px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: end;
  gap: clamp(32px, 7vw, 100px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) 0 clamp(46px, 6vw, 82px);
}

.milo-gallery-page__hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 28px;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201, 166, 107, .23);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255, 255, 255, .15), 0 0 0 104px rgba(123, 201, 232, .06);
}

.milo-gallery-page__eyebrow,
.milo-gallery-card__eyebrow,
.milo-gallery-detail__eyebrow {
  margin: 0 0 16px;
  color: #896633;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.milo-gallery-page__hero h1 {
  max-width: 950px;
  margin: 0;
  color: var(--milo-deep);
  font-size: clamp(48px, 7.2vw, 104px);
  font-weight: 760;
  letter-spacing: -.067em;
  line-height: .91;
}

.milo-gallery-page__hero > div > p:last-child {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--milo-muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
}

.milo-gallery-page__hero aside {
  display: grid;
  gap: 3px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 28px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 24px 70px rgba(7, 26, 47, .09);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.milo-gallery-page__hero aside strong {
  color: var(--milo-navy);
  font-size: 48px;
  letter-spacing: -.05em;
  line-height: 1;
}

.milo-gallery-page__hero aside span {
  color: var(--milo-muted);
  font-size: 14px;
  font-weight: 720;
}

.milo-gallery-page__main {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: clamp(76px, 10vw, 140px);
}

.milo-gallery-page__filters {
  position: sticky;
  z-index: 4;
  top: 14px;
  width: fit-content;
  max-width: 100%;
  display: flex;
  gap: 7px;
  margin: 0 auto 30px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid rgba(7, 26, 47, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 46px rgba(7, 26, 47, .11);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.milo-gallery-page__filters button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 10px 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #596e7e;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.milo-gallery-page__filters button.is-selected {
  background: var(--milo-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 26, 47, .22);
}

.milo-gallery-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.milo-gallery-card {
  position: relative;
  min-width: 0;
  min-height: 540px;
  display: grid;
  grid-template-rows: 270px 1fr;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(7, 26, 47, .08) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, .78) !important;
  color: var(--milo-ink) !important;
  box-shadow: 0 22px 60px rgba(7, 26, 47, .09) !important;
  text-align: left;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.milo-gallery-card:hover {
  transform: translateY(-7px);
  border-color: rgba(201, 166, 107, .34) !important;
  box-shadow: 0 32px 78px rgba(7, 26, 47, .15) !important;
}

.milo-gallery-card.is-featured {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.17fr) minmax(320px, .83fr);
  grid-template-rows: 1fr;
}

.milo-gallery-card__visual {
  position: relative;
  min-height: 270px;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--milo-navy), #315976);
}

.milo-gallery-card.is-featured .milo-gallery-card__visual {
  min-height: 540px;
}

.milo-gallery-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 16, 30, .35));
}

.milo-gallery-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.milo-gallery-card:hover .milo-gallery-card__visual img {
  transform: scale(1.035);
}

.milo-gallery-card__badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--milo-navy);
  font-size: 12px;
  font-style: normal;
  font-weight: 840;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.milo-gallery-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 27px 27px 25px;
}

.milo-gallery-card__eyebrow {
  margin-bottom: 10px;
}

.milo-gallery-card__body h2 {
  margin: 0;
  color: var(--milo-deep);
  font-size: clamp(25px, 2.2vw, 35px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.03;
}

.milo-gallery-card__summary {
  margin: 15px 0 24px;
  color: var(--milo-muted);
  font-size: 15px;
  line-height: 1.55;
}

.milo-gallery-card__progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
}

.milo-gallery-card__progress-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 26, 47, .09);
}

.milo-gallery-card__progress-track > i {
  width: var(--milo-progress, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--milo-pink), var(--milo-gold), var(--milo-mint));
}

.milo-gallery-card__progress strong,
.milo-gallery-card__progress span {
  font-size: 13px;
  font-weight: 760;
}

.milo-gallery-card__progress strong {
  color: var(--milo-navy);
}

.milo-gallery-card__progress span {
  color: var(--milo-muted);
}

.milo-gallery-card__footer {
  min-height: 44px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(7, 26, 47, .08);
}

.milo-gallery-card__footer span {
  color: var(--milo-muted);
  font-size: 12px;
  font-weight: 700;
}

.milo-gallery-card__footer strong {
  color: var(--milo-navy);
  font-size: 14px;
  font-weight: 820;
  white-space: nowrap;
}

.milo-gallery-page__empty {
  grid-column: 1 / -1;
  padding: 70px 30px;
  border: 1px dashed rgba(7, 26, 47, .18);
  border-radius: 28px;
  color: var(--milo-muted);
  background: rgba(255, 255, 255, .52);
  text-align: center;
  font-size: 16px;
}

.milo-gallery-page__detail {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7, 26, 47, .08);
  border-radius: 38px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 38px 110px rgba(7, 26, 47, .15);
}

.milo-gallery-page__detail[hidden],
.milo-gallery-page__grid[hidden] {
  display: none !important;
}

.milo-gallery-detail__back {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  min-height: 44px;
  padding: 10px 15px !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .9) !important;
  color: var(--milo-navy) !important;
  box-shadow: 0 12px 32px rgba(7, 26, 47, .16) !important;
  font-size: 14px !important;
  font-weight: 780 !important;
  cursor: pointer;
}

.milo-gallery-detail__layout {
  display: grid;
  grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr);
}

.milo-gallery-detail__visual {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background: var(--milo-navy);
}

.milo-gallery-detail__visual > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.milo-gallery-detail__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 16, 30, .76));
}

.milo-gallery-detail__visual-progress {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background: rgba(3, 16, 30, .62);
  color: #fff;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.milo-gallery-detail__visual-progress > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.milo-gallery-detail__visual-progress strong {
  font-size: 34px;
  letter-spacing: -.04em;
  line-height: 1;
}

.milo-gallery-detail__visual-progress span {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 720;
}

.milo-gallery-detail__visual-progress i {
  height: 8px;
  display: block;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.milo-gallery-detail__visual-progress i > b {
  width: var(--milo-progress, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--milo-pink), var(--milo-gold), var(--milo-mint));
}

.milo-gallery-detail__body {
  min-width: 0;
  padding: clamp(52px, 6vw, 86px);
}

.milo-gallery-detail__body h2 {
  margin: 0;
  color: var(--milo-deep);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 760;
  letter-spacing: -.06em;
  line-height: .96;
}

.milo-gallery-detail__summary {
  margin: 23px 0 15px;
  color: #28465c;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 670;
  line-height: 1.46;
}

.milo-gallery-detail__story {
  margin: 0;
  color: var(--milo-muted);
  font-size: 16px;
  line-height: 1.7;
}

.milo-gallery-detail__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0;
}

.milo-gallery-detail__stats span {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(7, 26, 47, .08);
  border-radius: 18px;
  background: #f7f4ee;
}

.milo-gallery-detail__stats small {
  display: block;
  margin-bottom: 4px;
  color: var(--milo-muted);
  font-size: 12px;
  font-weight: 720;
}

.milo-gallery-detail__stats strong {
  display: block;
  overflow: hidden;
  color: var(--milo-navy);
  font-size: 17px;
  font-weight: 820;
  text-overflow: ellipsis;
}

.milo-gallery-detail__giving {
  padding-top: 29px;
  border-top: 1px solid rgba(7, 26, 47, .1);
}

.milo-gallery-detail__giving h3 {
  margin: 0 0 15px;
  color: var(--milo-navy);
  font-size: 20px;
  letter-spacing: -.02em;
}

.milo-gallery-detail__frequencies,
.milo-gallery-detail__amounts,
.milo-gallery-detail__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.milo-gallery-detail__frequencies button,
.milo-gallery-detail__amounts button {
  min-height: 44px;
  padding: 10px 15px !important;
  border: 1px solid rgba(7, 26, 47, .11) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #526777 !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  cursor: pointer;
}

.milo-gallery-detail__frequencies button.is-selected,
.milo-gallery-detail__amounts button.is-selected,
.milo-gallery-detail__routes button.is-selected {
  border-color: var(--milo-navy) !important;
  background: var(--milo-navy) !important;
  color: #fff !important;
}

.milo-gallery-detail__amounts {
  margin-top: 12px;
}

.milo-gallery-detail__amounts label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid rgba(7, 26, 47, .11);
  border-radius: 999px;
  background: #fff;
  color: var(--milo-muted);
  font-size: 14px;
  font-weight: 760;
}

.milo-gallery-detail__amounts input {
  width: 86px;
  min-height: 34px;
  padding: 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--milo-navy) !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.milo-gallery-detail__momentum {
  margin: 18px 0 0;
  padding: 15px 17px;
  border: 1px solid rgba(201, 166, 107, .2);
  border-radius: 18px;
  background: rgba(201, 166, 107, .09);
  color: #5e4a2d;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.5;
}

.milo-gallery-detail__routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.milo-gallery-detail__routes button {
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 13px !important;
  border: 1px solid rgba(7, 26, 47, .09) !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: var(--milo-navy) !important;
  text-align: left;
  cursor: pointer;
}

.milo-gallery-detail__routes button > b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef3f6;
  font-size: 16px;
}

.milo-gallery-detail__routes button span,
.milo-gallery-detail__routes button strong,
.milo-gallery-detail__routes button small {
  min-width: 0;
  display: block;
}

.milo-gallery-detail__routes button strong {
  font-size: 14px;
  font-weight: 810;
}

.milo-gallery-detail__routes button small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--milo-muted);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.milo-gallery-detail__routes button.is-selected small {
  color: rgba(255, 255, 255, .72);
}

.milo-gallery-detail__continue {
  width: 100%;
  min-height: 54px;
  margin-top: 17px;
  padding: 14px 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--milo-navy) !important;
  color: #fff !important;
  box-shadow: 0 17px 38px rgba(7, 26, 47, .2) !important;
  font-size: 15px !important;
  font-weight: 830 !important;
  cursor: pointer;
}

.milo-gallery-detail__direct {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: var(--milo-navy) !important;
  font-size: 14px;
  font-weight: 760;
}

.milo-gallery-page__footer {
  width: min(1320px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid rgba(7, 26, 47, .09);
}

.milo-gallery-page__footer p {
  max-width: 720px;
  margin: 0;
  color: var(--milo-muted);
  font-size: 14px;
}

.milo-gallery-page__footer p strong {
  color: var(--milo-navy);
}

.milo-gallery-page__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .milo-gallery-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .milo-gallery-card.is-featured {
    grid-column: 1 / -1;
  }

  .milo-gallery-detail__layout {
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  }

  .milo-gallery-detail__body {
    padding: 52px 38px;
  }
}

@media (max-width: 760px) {
  .milo-gallery-page__site-header {
    width: min(100% - 28px, 1320px);
    min-height: 70px;
  }

  .milo-gallery-page__brand strong {
    display: none;
  }

  .milo-gallery-page__brand img {
    max-width: 145px;
    height: 36px;
  }

  .milo-gallery-page__hero {
    width: min(100% - 32px, 1320px);
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 54px 0 38px;
  }

  .milo-gallery-page__hero h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .milo-gallery-page__hero aside {
    width: min(220px, 100%);
  }

  .milo-gallery-page__main,
  .milo-gallery-page__footer {
    width: min(100% - 24px, 1320px);
  }

  .milo-gallery-page__filters {
    top: 8px;
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 18px;
    border-radius: 20px;
  }

  .milo-gallery-page__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .milo-gallery-card,
  .milo-gallery-card.is-featured {
    min-height: 0;
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 230px 1fr;
    border-radius: 25px !important;
  }

  .milo-gallery-card.is-featured .milo-gallery-card__visual,
  .milo-gallery-card__visual {
    min-height: 230px;
  }

  .milo-gallery-card__body {
    padding: 23px 21px 21px;
  }

  .milo-gallery-detail__layout {
    grid-template-columns: 1fr;
  }

  .milo-gallery-detail__visual {
    min-height: min(62svh, 520px);
  }

  .milo-gallery-detail__body {
    padding: 38px 22px 30px;
  }

  .milo-gallery-detail__stats,
  .milo-gallery-detail__routes {
    grid-template-columns: 1fr;
  }

  .milo-gallery-page__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .milo-gallery-page__return {
    width: 46px;
    padding: 0;
    overflow: hidden;
    color: transparent !important;
    white-space: nowrap;
  }

  .milo-gallery-page__return span {
    color: var(--milo-navy);
    font-size: 20px;
  }

  .milo-gallery-page__hero::before {
    right: -270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .milo-gallery-page *,
  .milo-gallery-page *::before,
  .milo-gallery-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
