/* Home page — section 2 mosaic (3 + 1 + 3) & Top Destinations */

#sec2 {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

#s2st {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  /* NOTE: no !important here — GSAP ScrollTrigger sets position:fixed inline to pin the
     stage. An !important rule would override it and break the pin (leaving an empty gap). */
  position: relative;
  isolation: isolate !important;
  padding: clamp(3.25rem, 5.5vh, 4rem) 0 0 !important;
  background: radial-gradient(130% 100% at 50% 0%, #16243c 0%, #0e1828 50%, #0a1018 100%) !important;
  overflow: hidden !important;
}

#s2tx {
  position: relative !important;
  grid-row: 1 !important;
  z-index: 30 !important;
  text-align: center !important;
  pointer-events: none !important;
  /* NOTE: opacity/visibility intentionally NOT forced with !important so GSAP can fade
     the headline out as the centre image begins to expand. */
  filter: none !important;
  padding: 0 clamp(1rem, 4vw, 4rem) clamp(0.5rem, 1.2vh, 0.9rem) !important;
}

#s2tx .s2-headline {
  font-family: var(--rt-font-display, "Fraunces", Georgia, serif) !important;
  font-weight: 700 !important;
  font-size: clamp(1.15rem, 2.2vw, 2.05rem) !important;
  line-height: 1.34 !important;
  color: #fff !important;
  margin: 0 auto !important;
  max-width: 52rem !important;
  text-wrap: balance;
}

#s2mo {
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 clamp(0.5rem, 2vw, 2rem) 0 !important;
  gap: clamp(8px, 1.1vw, 16px) !important;
  z-index: 20 !important;
}

#s2mo .s2-wing,
#s2mo .s2-side-col,
#s2c,
#s2c-spacer {
  align-self: center !important;
  flex-shrink: 0 !important;
}

#s2mo .s2-side-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: clamp(5px, 0.5vw, 8px) !important;
}

#s2mo .s2-wing,
#s2mo .s2-tile {
  border-radius: 14px !important;
  overflow: hidden !important;
}

#s2c {
  border-radius: 16px !important;
  overflow: hidden !important;
  z-index: 26 !important;
  background-color: #141820 !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#s2mo .s2-wing,
#s2mo .s2-side-col {
  z-index: 22 !important;
  will-change: transform, opacity;
}

#s2c img.s2-center-img {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate(-50%, -50%) !important;
  object-fit: cover !important;
  object-position: 50% 44% !important;
  display: block !important;
  pointer-events: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#s2mo .s2-wing img,
#s2mo .s2-tile img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

#things > div:first-child {
  justify-content: flex-start !important;
  padding-top: clamp(2rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(1rem, 2vh, 1.5rem) !important;
  box-sizing: border-box !important;
}

#things > div:first-child > div:first-child {
  flex-shrink: 0 !important;
}

#things > div:first-child > div:nth-child(2) {
  flex: 0 0 auto !important;
  margin-bottom: clamp(0.75rem, 2vh, 1.25rem) !important;
}

#things > div:first-child > div:last-child {
  flex-shrink: 0 !important;
  margin-top: auto !important;
}

@media (max-width: 768px) {
  #s2st {
    padding-top: clamp(3.25rem, 5.5vh, 4rem) !important;
    overflow: hidden !important;
  }

  #s2tx {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  #s2tx .s2-headline {
    font-size: clamp(0.92rem, 4.1vw, 1.2rem) !important;
    line-height: 1.32 !important;
    max-width: 100% !important;
  }

  #s2mo {
    gap: clamp(4px, 1.2vw, 8px) !important;
    padding-left: clamp(0.25rem, 1.2vw, 0.5rem) !important;
    padding-right: clamp(0.25rem, 1.2vw, 0.5rem) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}
