/* Let the approved Gather map finish before its three full-image invitations begin. */
body.gather-edited {
  height: auto !important;
  min-height: 100svh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.gather-edited main {
  height: auto !important;
  min-height: calc(100svh - var(--gather-nav-height, 84px)) !important;
  overflow: visible !important;
}

body.gather-edited .gather-burgundy-hero.gather-living-scene {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body.gather-edited .gather-living-scene > .gather-scene-stage {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: calc(100svh - var(--gather-nav-height, 84px)) !important;
  min-height: 480px !important;
  max-height: 920px !important;
  aspect-ratio: auto !important;
}

body.gather-edited .gather-living-scene > .gather-scene-stage > .gather-scene-motion {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body.gather-edited .gather-living-scene > .gather-map-wayfinding {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #172b22 !important;
  border: 0 !important;
}

body.gather-edited .gather-living-scene > .gather-map-wayfinding > button {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-right: 1px solid rgba(238, 220, 176, .55) !important;
  border-radius: 0 !important;
  background: #172b22 !important;
  color: #fff7e6 !important;
  text-align: left !important;
  box-shadow: none !important;
}

body.gather-edited .gather-living-scene > .gather-map-wayfinding > button:last-child {
  border-right: 0 !important;
}

body.gather-edited .gather-living-scene > .gather-map-wayfinding > button::before {
  display: none !important;
}

body.gather-edited .gather-living-scene > .gather-map-wayfinding > button .gather-invitation-photo {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #172b22 !important;
  filter: saturate(.94) contrast(1.02) !important;
}

#gather-map .gather-map-wayfinding .gather-invitation-photo {
  object-fit: contain !important;
}

/* Reset the older overlay-card grid so each photograph keeps its full natural frame. */
#gather-map > .gather-map-wayfinding > button {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  padding: 0 0 15px !important;
}

#gather-map > .gather-map-wayfinding > button::before { display: none !important; }

#gather-map > .gather-map-wayfinding > button > .gather-invitation-photo {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  flex: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

#gather-map > .gather-map-wayfinding > button > strong {
  position: relative !important;
  display: block !important;
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 17px 0 0 !important;
  padding: 0 clamp(18px, 2vw, 27px) !important;
  color: #fff4df !important;
  font: 400 clamp(23px, 2vw, 30px)/1.05 'EB Garamond', Georgia, serif !important;
  text-shadow: none !important;
}

#gather-map > .gather-map-wayfinding > button > .gather-door-summary {
  position: relative !important;
  display: block !important;
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 5px 0 0 !important;
  padding: 0 clamp(18px, 2vw, 27px) !important;
  color: #e8e1d3 !important;
  text-shadow: none !important;
}

body.gather-edited #gather-map .gather-map-wayfinding > button > .gather-door-summary {
  display: block !important;
}

#gather-map > .gather-map-wayfinding > button > .gather-door-action {
  position: relative !important;
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 12px 27px 0 !important;
}

body.gather-edited .gather-living-scene > .gather-map-wayfinding > button > strong {
  position: relative !important;
  z-index: 2 !important;
  margin: 17px 0 0 !important;
  padding: 0 clamp(18px, 2vw, 27px) !important;
  max-width: 22ch !important;
  color: #fff4df !important;
  font-size: clamp(20px, 2vw, 30px) !important;
  text-shadow: none !important;
}

body.gather-edited .gather-living-scene > .gather-map-wayfinding > button > .gather-door-summary {
  position: relative !important;
  z-index: 2 !important;
  margin-top: 5px !important;
  padding: 0 clamp(18px, 2vw, 27px) !important;
  max-width: 38ch !important;
  color: #e8e1d3 !important;
  text-shadow: none !important;
  font-size: clamp(13px, 1.15vw, 16px) !important;
}

body.gather-edited .gather-living-scene > .gather-map-wayfinding > button > .gather-door-action {
  position: relative !important;
  z-index: 2 !important;
  margin: 12px clamp(18px, 2vw, 27px) 0 !important;
  max-width: 250px !important;
}

@media (max-width: 800px) {
  body.gather-edited .gather-living-scene > .gather-scene-stage {
    height: 68svh !important;
    min-height: 350px !important;
    max-height: 600px !important;
  }

  body.gather-edited .gather-living-scene > .gather-map-wayfinding {
    grid-template-columns: 1fr !important;
  }

  body.gather-edited .gather-living-scene > .gather-map-wayfinding > button {
    height: auto !important;
    min-height: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(238, 220, 176, .55) !important;
  }

  body.gather-edited .gather-living-scene > .gather-map-wayfinding > button:last-child {
    border-bottom: 0 !important;
  }

  body.gather-edited .gather-living-scene > .gather-map-wayfinding > button > strong {
    font-size: clamp(23px, 6vw, 32px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gather-edited .gather-living-scene > .gather-map-wayfinding > button .gather-invitation-photo {
    transition: none !important;
  }
}
