/*
 * The About page (template-about.php). Plain CSS: the theme's gulp build has not run
 * since 2017. Montserrat, #2C2C2C, yellow #F3BB00, the soft shadow and 4px corners of
 * the booking card; full-width bands by a clipped spread shadow (the page sits inside
 * the theme's .container).
 */

/* Intro: the page's first heading as one statement. */
.mp-about__intro { padding: 56px 0 44px; text-align: center; }
.mp-about__mark { display: block; margin: 0 auto 20px; }
.mp-about__lead {
  max-width: 860px; margin: 0 auto; color: #2C2C2C;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem); font-weight: 500; line-height: 1.55; letter-spacing: 0; text-transform: none;
}
.mp-about__lead::after { content: ''; display: block; width: 64px; height: 2px; margin: 28px auto 0; background: #F3BB00; }

/* Story: the photo beside the text. */
.mp-about__story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; padding: 8px 0 72px; }
.mp-about__photo { margin: 0; position: sticky; top: calc(var(--mp-nav-h, 89px) + 32px); }
.mp-about__photo img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 10px rgba(153, 153, 153, .34), 0 18px 40px rgba(0, 0, 0, .12); }
.mp-about__text { color: #555; font-size: 1rem; line-height: 1.8; }
.mp-about__text p { margin: 0 0 1.15em; }
.mp-about__text > p:first-child { color: #2C2C2C; font-size: 1.125rem; font-weight: 500; line-height: 1.7; }
.mp-about__text > :last-child { margin-bottom: 0; }

/* Text only (the photos are in the gallery row): one centred column. */
.mp-about__story.is-text { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }

/*
 * Gallery row (ClickUp 1an1mqmrry3): the content's first Gallery block, rendered by the
 * apartments' gallery (lib/apartment-gallery.php) without its thumbnails, so a photo
 * still opens the full-screen viewer. Desktop: the photos side by side; phone: the same
 * frame swipes, with the next photo peeking in. The viewer stays outside any sticky or
 * transformed parent, or the fixed menu (z-index 1030) would cover it.
 */
.mp-about__gallery { padding: 0 0 56px; }
.mp-about__gallery .mp-gal__frame {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
  overflow: visible; aspect-ratio: auto; background: none; scroll-snap-type: none; cursor: auto;
}
.mp-about__gallery .mp-gal__slide { border-radius: 4px; overflow: hidden; box-shadow: 0 0 10px rgba(153, 153, 153, .34), 0 18px 40px rgba(0, 0, 0, .12); }
.mp-about__gallery .mp-gal__slide img { aspect-ratio: 4 / 3; height: auto; transition: transform .4s ease; }
.mp-about__gallery .mp-gal__slide:hover img, .mp-about__gallery .mp-gal__slide:focus-visible img { transform: scale(1.03); }
.mp-about__gallery .mp-gal__count, .mp-about__gallery .mp-gal__arrow { display: none !important; }

@media (max-width: 991px) {
  .mp-about__story { grid-template-columns: 1fr; gap: 32px; padding-bottom: 56px; }
  .mp-about__photo { position: static; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 767px) {
  .mp-about__gallery { padding-bottom: 40px; }
  .mp-about__gallery .mp-gal__frame {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 15px;
    margin: 0 -15px; padding: 0 15px 16px;
  }
  .mp-about__gallery .mp-gal__slide { flex: 0 0 84%; scroll-snap-align: start; scroll-snap-stop: normal; }
  .mp-about__intro { padding: 40px 0 32px; }
  .mp-about__lead { font-size: 1.1rem; line-height: 1.6; }
  .mp-about__text { font-size: .95rem; }
}

/* The facility icons, as on the home page (whose styles are scoped to body.home), on a light band. */
.mp-about__features { position: relative; padding: 8px 0 24px; }
.mp-about__features::before {
  content: ''; position: absolute; z-index: -1; inset: 0; background: #F6F6F6;
  box-shadow: 0 0 0 100vmax #F6F6F6; clip-path: inset(0 -100vmax);
}
.mp-about__features section.features { font-size: .8125rem; padding-top: 48px; }
.mp-about__features section.features h3 { text-transform: none; margin-bottom: .8rem; }
.mp-about__features section.features span.icon { display: inline-block; height: 124px; width: 124px; border-radius: 100%; background-color: #F3BB00; position: relative; margin-bottom: 1rem; }
.mp-about__features section.features span.icon svg { position: absolute; inset: 0; margin: auto; }

/* Closing band: the availability search on the dark band. */
.mp-book-cta { position: relative; padding: 56px 0; }
.mp-book-cta::before {
  content: ''; position: absolute; z-index: -1; inset: 0; background: #2C2C2C;
  box-shadow: 0 0 0 100vmax #2C2C2C; clip-path: inset(0 -100vmax);
}
@media (max-width: 767px) { .mp-book-cta { padding: 32px 0; } }
