
/* PMH slide 15. Keep the Figma grids and adjust the space at section edges. */
body.pmh-r6-site {
  --pmh-section-edge: clamp(30px, 2.5vw, 48px);
  --pmh-section-break: clamp(56px, 4vw, 76px);
}
html body.pmh-r6-site.pmh-nov-home .elementor.elementor[data-elementor-type]
:is([data-id="8a55d41"],[data-id="0d5022e"],[data-id="d083c3d"],[data-id="6e2a2ce"]) {
  padding-bottom: var(--pmh-section-edge) !important;
}
html body.pmh-r6-site.pmh-nov-home .elementor.elementor[data-elementor-type]
:is([data-id="0d5022e"],[data-id="d083c3d"],[data-id="6e2a2ce"],[data-id="7da9159"]) {
  padding-top: var(--pmh-section-edge) !important;
}
html body.pmh-r6-site.pmh-nov-home .elementor.elementor[data-elementor-type] [data-id="1769648"] {
  margin-top: var(--pmh-section-break) !important;
}
html body.pmh-r6-site.pmh-r7-inner.pmh-detail-about .elementor.elementor[data-elementor-type]
:is([data-id="0812bed"],[data-id="16f8096"],[data-id="796f7d8"]) {
  padding-bottom: var(--pmh-section-edge) !important;
}
html body.pmh-r6-site.pmh-r7-inner.pmh-detail-about .elementor.elementor[data-elementor-type] [data-id="d2b8965"] {
  margin-top: var(--pmh-section-break) !important;
}
html body.pmh-r6-site.pmh-r7-inner:is(.page-id-201,.page-id-2442) .elementor.elementor[data-elementor-type] [data-id="5f9f6fb"] {
  margin-bottom: 0 !important;
  padding-bottom: var(--pmh-section-edge) !important;
}
html body.pmh-r6-site.pmh-r7-inner:is(.page-id-199,.page-id-2411) .elementor.elementor[data-elementor-type] [data-id="04dc6c1"] {
  padding-block: var(--pmh-section-break) !important;
}
html body.pmh-r6-site.pmh-r7-inner:is(.page-id-205,.page-id-2509) .elementor.elementor[data-elementor-type] [data-id="9ea536e"] {
  padding-bottom: var(--pmh-section-edge) !important;
}
html body.pmh-r6-site.pmh-r7-inner:is(.page-id-205,.page-id-2509) .elementor.elementor[data-elementor-type]
:is([data-id="9c010cd"],[data-id="c7bc8f0"]) {
  padding-top: var(--pmh-section-edge) !important;
}
html body.pmh-r6-site.pmh-r7-inner:is(.page-id-205,.page-id-2509) .elementor.elementor[data-elementor-type] [data-id="9c010cd"] {
  padding-bottom: var(--pmh-section-edge) !important;
}
/* Related stories use the same Elementor single-post template across languages. */
html body.pmh-r6-site.single-newsmedia .elementor.elementor-location-single [data-id="0ebb471"] {
  margin-block: var(--pmh-section-edge) var(--pmh-section-break) !important;
}
html body.pmh-r6-site:is(.page-id-2731,.page-id-2732) .elementor.elementor [data-id="legal00"] {
  padding-bottom: var(--pmh-section-break) !important;
}
@media (min-width:768px) {
  html body.pmh-r6-site.pmh-detail-about .elementor.elementor [data-id="d1ec9b4"] {
    justify-content: flex-start !important;
    padding-top: clamp(36px, 3.8vw, 72px) !important;
  }
  html body.pmh-r6-site.pmh-r7-inner:is(.page-id-201,.page-id-2442) .elementor.elementor [data-id="6e9c784"] {
    padding-top: var(--pmh-section-break) !important;
  }
}
@media (max-width:767px) {
  html body.pmh-r6-site.pmh-nov-home .elementor.elementor[data-elementor-type] [data-id="d083c3d"] {
    padding-bottom: 0 !important;
  }
  html body.pmh-r6-site.pmh-nov-home .elementor.elementor[data-elementor-type] [data-id="1769648"] {
    margin-top: 32px !important;
  }
  html body.pmh-r6-site.pmh-detail-about .elementor.elementor[data-elementor-type] [data-id="d2b8965"] {
    margin-top: 28px !important;
    row-gap: 28px !important;
  }
  html body.pmh-r6-site.single-newsmedia .elementor.elementor-location-single [data-id="73cef13"] {
    padding-bottom: 0 !important;
  }
}
@media (min-width:768px) {
  html body.pmh-r6-site.pmh-detail-about .elementor.elementor [data-id="d1ec9b4"] {
    align-self: flex-start !important;
  }
  html body.pmh-r6-site.pmh-r7-inner .elementor.elementor .crescent-child.pmh-feedback-room {
    padding-bottom: var(--pmh-section-break) !important;
  }
}
@media (max-width:767px) {
  html body.pmh-r6-site.pmh-r7-inner .elementor.elementor .crescent-child.pmh-feedback-room {
    margin-bottom: 28px !important;
  }
  html body.pmh-r6-site.pmh-r7-inner .elementor.elementor .pmh-r6-room-text {
    padding-bottom: 26px !important;
  }
}
/* The developer column has a scroll transform in the older desktop layout.
   Anchor it to the photo so its top edge stays consistent while scrolling. */
@media (min-width:768px) {
  html body.pmh-r6-site.pmh-detail-about .elementor.elementor [data-id="d1ec9b4"] {
    transform: none !important;
  }
}
@media (max-width:767px) {
  html body.pmh-r6-site.pmh-nov-home .elementor.elementor[data-elementor-type] [data-id="6e2a2ce"] {
    padding-top: 48px !important;
  }
  html body.pmh-r6-site.pmh-r7-inner:is(.page-id-201,.page-id-2442) .elementor.elementor[data-elementor-type] [data-id="5f9f6fb"] {
    padding-bottom: 56px !important;
  }
  html body.pmh-r6-site.pmh-r7-inner.pmh-detail-about :is(.elementor-203,.elementor-2502)[data-elementor-type] .elementor-element[data-id="0812bed"] {
    padding-bottom: 56px !important;
  }
  html body.pmh-r6-site.pmh-r7-inner.pmh-detail-about :is(.elementor-203,.elementor-2502)[data-elementor-type] .elementor-element[data-id="d2b8965"] {
    margin-top: 28px !important;
  }
}
/* Override the Elementor page-level important spacing only at these edges. */
@layer pmhSectionEdges {
  body.single-newsmedia [data-id="b499d8a"] {
    margin-bottom: clamp(16px, 1.8vw, 34px) !important;
  }
  body:is(.page-id-2731,.page-id-2732) [data-id="legal00"] {
    padding-bottom: var(--pmh-section-break) !important;
  }
  @media (max-width:767px) {
    body.single-newsmedia [data-id="0ebb471"] {
      margin-top: 8px !important;
      padding-top: 12px !important;
    }
    body.pmh-detail-about [data-id="0812bed"] {
      padding-bottom: 56px !important;
    }
    body.pmh-detail-about [data-id="d2b8965"] {
      row-gap: 14px !important;
    }
  }
}
@layer pmhSectionEdges {
  body:is(.page-id-199,.page-id-2411) [data-id="a5ac5c6c"] {
    padding-bottom: var(--pmh-section-edge) !important;
  }
}

/* Space measured between visible content, including both sides of a colour change. */
body.pmh-r6-site {
  --pmh-room-gap: clamp(54px, calc(40px + 3.125vw), 80px);
  --pmh-amenity-gap: clamp(64px, calc(50px + 2.34375vw), 80px);
}
@media (min-width:1280px) {
  body.pmh-r6-site {
    --pmh-room-gap: clamp(80px, calc(28.8px + 4vw), 96px);
    --pmh-amenity-gap: var(--pmh-room-gap);
  }
}
@layer pmhSectionEdges {
  .crescent .pmh-amenities {
    padding-bottom: calc(var(--pmh-room-gap) * .75) !important;
  }
  @media (min-width:768px) {
    .crescent .crescent-child.pmh-feedback-room {
      padding-block: calc(var(--pmh-room-gap) / 2) !important;
      margin-block: 0 !important;
    }
    .crescent .pmh-r7-residence-info {
      padding-bottom: calc(var(--pmh-room-gap) / 2) !important;
    }
    .crescent .pmh-amenities {
      padding-top: calc(var(--pmh-amenity-gap) - var(--pmh-room-gap) / 2) !important;
    }
    .crescent:is(.crescent-2, .crescent-3, .crescent-5) {
      padding-top: calc(var(--pmh-room-gap) / 2) !important;
      margin-top: 0 !important;
    }
  }
  @media (max-width:767px) {
    .crescent .crescent-child.pmh-feedback-room {
      margin-bottom: calc(var(--pmh-room-gap) - 26px) !important;
    }
    .crescent .pmh-amenities {
      padding-top: calc(var(--pmh-amenity-gap) - var(--pmh-room-gap)) !important;
    }
  }
}

/* Match repeated section edges on Facilities and the final Contact section. */
@layer pmhSectionEdges {
  @media (min-width:768px) {
    body:is(.page-id-201,.page-id-2442) :is([data-id="483eb638"],[data-id="3a7b579b"]) {
      padding-block: var(--pmh-section-break) !important;
    }
    body:is(.page-id-201,.page-id-2442) [data-id="4dfc8ffe"] {
      padding-top: var(--pmh-section-break) !important;
    }
    body:is(.page-id-201,.page-id-2442) :is([data-id="7c087643"],[data-id="39aa2765"],[data-id="4515e4e2"],[data-id="800b884"]),
    body:is(.page-id-205,.page-id-2509) [data-id="c7bc8f0"] {
      padding-bottom: var(--pmh-section-break) !important;
    }
  }
}
@layer pmhSectionEdges {
  @media (max-width:767px) {
    body:is(.page-id-201,.page-id-2442) :is([data-id="2ddaaccb"],[data-id="7c087643"],[data-id="39aa2765"]) {
      padding-bottom: 28px !important;
    }
    body:is(.page-id-201,.page-id-2442) :is([data-id="483eb638"],[data-id="39aa2765"]) {
      padding-top: 28px !important;
    }
    body:is(.page-id-201,.page-id-2442) [data-id="3a7b579b"] {
      padding-bottom: var(--pmh-amenity-gap) !important;
    }
  }
}

/* Facilities captions retain the same typography with or without an Admin URL. */
@layer pmhSectionEdges {
  body:is(.page-id-201,.page-id-2442) :is(.pmh-cpd-venue, [data-id="1c0c417d"]) .elementor-heading-title > a,
  .pmh-facility-dialog .pmh-facility-venue-link {
    font: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
    text-decoration: none !important;
  }
  body:is(.page-id-201,.page-id-2442) [data-id="46a7bc84"] .pmh-r6-sub .elementor-heading-title {
    font-size: clamp(18px, 2.068vw, 39px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.03em !important;
    color: #283c3b !important;
  }
  body:is(.page-id-201,.page-id-2442) [data-id="1c0c417d"] .pmh-image-caption .elementor-heading-title {
    font-size: clamp(15px, 1.326vw, 25px) !important;
    line-height: 2 !important;
    font-weight: 500 !important;
    letter-spacing: .02em !important;
    color: #283c3b !important;
  }
  body:is(.page-id-201,.page-id-2442) [data-id="c231114"] .elementor-heading-title {
    color: #213c39 !important;
  }
  @media (max-width:767px) {
    body:is(.page-id-201,.page-id-2442) [data-id="46a7bc84"] .pmh-r6-sub .elementor-heading-title {
      font-size: 18px !important;
      line-height: 1.07 !important;
      letter-spacing: -.025em !important;
    }
    body:is(.page-id-201,.page-id-2442) [data-id="1c0c417d"] .pmh-image-caption .elementor-heading-title {
      font-size: 15px !important;
      line-height: 1.05 !important;
    }
  }
}

/* Desktop Figma section rhythm. B starts a section, C separates its content. */
@media (min-width:1280px) {
  body.pmh-r6-site {
    --pmh-desktop-b: calc(7.155vw + 4px);
    --pmh-desktop-c: 5.3vw;
  }
  @layer pmhSectionEdges {
    .pmh-nov-home [data-id="54b00f1"] {
      padding-top: calc(3.18vw + 20px) !important;
    }
    .pmh-nov-home [data-id="8a55d41"] {
      margin-top: calc(var(--pmh-desktop-b) - 4px) !important;
      padding-bottom: calc(var(--pmh-desktop-c) - 4px) !important;
    }
    .pmh-nov-home [data-id="d146a22"] { margin-top: var(--pmh-desktop-b) !important; }
    .pmh-nov-home :is([data-id="0d5022e"],[data-id="d083c3d"],[data-id="6e2a2ce"],[data-id="7da9159"]) {
      padding-top: var(--pmh-desktop-b) !important;
    }
    .pmh-nov-home :is([data-id="0d5022e"],[data-id="6e2a2ce"],[data-id="7da9159"]) {
      row-gap: var(--pmh-desktop-c) !important;
    }
    .pmh-nov-home [data-id="0d5022e"] { padding-bottom: var(--pmh-desktop-c) !important; }
    /* Interior layouts retain the room grid and the Figma editorial columns. */
    .pmh-detail-about [data-id="796f7d8"],
    body:is(.page-id-199,.page-id-2411) [data-id="04dc6c1"] {
      padding-block: var(--pmh-desktop-b) var(--pmh-desktop-c) !important;
    }
    body:is(.page-id-201,.page-id-2442) [data-id="3a7b579b"] {
      padding-block: var(--pmh-desktop-b) var(--pmh-desktop-c) !important;
    }
    body:is(.page-id-205,.page-id-2509) :is([data-id="9c010cd"],[data-id="c7bc8f0"]) {
      padding-top: calc(var(--pmh-desktop-b) / 2) !important;
    }
    body:is(.page-id-205,.page-id-2509) :is([data-id="9ea536e"],[data-id="9c010cd"]) {
      padding-bottom: calc(var(--pmh-desktop-b) / 2) !important;
    }
    body:is(.page-id-205,.page-id-2509) [data-id="c7bc8f0"],
    body:is(.page-id-2731,.page-id-2732) [data-id="legal00"] {
      padding-bottom: var(--pmh-desktop-c) !important;
    }
    body.single-newsmedia [data-id="0ebb471"] { margin-bottom: var(--pmh-desktop-c) !important; }
  }
}

/* Work and Learn card alignment from the 27 November review. */
@layer pmhSectionEdges {
  body.pmh-r6-site [data-id="c231003"] {
    margin-top: 1vw !important;
  }
  @media (max-width:767px) {
    body.pmh-r6-site [data-id="c231003"] {
      margin-top: 10px !important;
    }
    body.pmh-r6-site :is([data-id="c231003"],[data-id="c231116"],[data-id="c231114"]) {
      width: 100% !important;
      text-align: center !important;
    }
    body.pmh-r6-site [data-id="c231114"] .elementor-heading-title,
    body.pmh-r6-site :is([data-id="c231003"],[data-id="c231116"]) .elementor-button-wrapper {
      text-align: center !important;
      justify-content: center !important;
    }
  }
}

@layer pmhSectionEdges {
  @media (min-width:768px) {
    .pmh-cpd-school-copy [data-id="c231114"] .elementor-heading-title {
      font: 700 clamp(24px, 2.54507vw, 60px)/1.1 "STIX Two Text", serif !important;
      letter-spacing: -.03em !important;
    }
    .pmh-cpd-school-copy [data-id="c231114"] br { display: none; }
    .pmh-school-level {
      display: block;
      font-size: clamp(18px, 1.80276vw, 42.5px);
      font-weight: 400;
      line-height: 1.32353;
    }
    .pmh-cpd-school-copy [data-id="c231115"] { margin-top: clamp(12px, 1.34677vw, 32px) !important; }
    .pmh-cpd-school-copy { row-gap: 0 !important; }
    .pmh-cpd-school-copy [data-id="c231116"] { margin-top: 12px !important; }
  }
  @media (max-width:767px) {
    .pmh-cpd-school-copy [data-id="c231114"] .elementor-heading-title { font-weight: 700 !important; }
    .pmh-cpd-school-copy .pmh-school-desktop-separator { display: none; }
  }
}
/* Facilities Live: the image and its link share the caption column width. */
@media (min-width:1025px) {
  :is([data-id="7cf99bdd"], [data-id="365efff2"], [data-id="8aa317a"], [data-id="14aefb78"], [data-id="2029c462"], [data-id="8c849e"]) :is(a, img) {
    display: block;
    width: 100% !important;
  }
  :is([data-id="8aa317a"], [data-id="14aefb78"], [data-id="2029c462"], [data-id="8c849e"]) img {
    aspect-ratio: 1278 / 1350;
    height: auto !important;
    object-fit: cover;
  }
}

@layer pmhSectionEdges {
  body .cta-button.pmh-chat-button { display: none !important; }
  .pmh-cpd-school-copy [data-id="c231114"] .elementor-heading-title {
    font-family: "STIX Two Text", serif !important;
  }
  :is([data-id="1a880589"], [data-id="36fa99d9"], [data-id="358f8dfb"], [data-id="19a263df"]) a {
    display: block !important;
    width: 100% !important;
  }
  :is([data-id="1a880589"], [data-id="36fa99d9"], [data-id="358f8dfb"], [data-id="19a263df"]) img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 354 / 400 !important;
    object-fit: cover !important;
  }
}

/* Fill the allocated desktop column as the international galleries and venue features grow. */
@media (min-width:1025px) {
  :is([data-id="6ebe1c20"], [data-id="12640c01"], [data-id="47978dbd"]) a,
  :is([data-id="6ebe1c20"], [data-id="12640c01"], [data-id="47978dbd"]) img,
  :is([data-id="c539806"], [data-id="7af20f5"]) .swiper-slide-image {
    display: block;
    width: 100% !important;
  }
}

/* Keep the four Live venue captions equally spaced from their images. */
@layer pmhSectionEdges {
  :is([data-id="73c3de20"], [data-id="35560b7"], [data-id="78ae46e"], [data-id="339230f2"]) > .elementor-widget-heading {
    padding-top: clamp(10px, .85vw, 20px) !important;
  }
}

/* Home introduction: preserve the two-column grid and crop vertically on shorter desktops. */
@media (min-width: 1025px) {
  @layer pmhSectionEdges {
    .pmh-nov-home [data-id="54b00f1"] {
      --intro-gap: clamp(20px, 3.6vh, 54px);
      --intro-image-height: min(32.87vw, max(220px, calc(86vh - 17vw - 32px)));
      padding-top: var(--intro-gap) !important;
      row-gap: var(--intro-gap) !important;
    }
    /* The Vietnamese introduction can wrap to four lines on larger desktops. */
    @media (min-width: 1650px) {
      html:lang(vi) .pmh-nov-home [data-id="54b00f1"] {
        --intro-image-height: min(32.87vw, max(220px, calc(86vh - 21vw - 32px)));
      }
    }
    .pmh-nov-home [data-id="52d6c16"] .elementor-heading-title {
      font-size: clamp(38px, calc(4.75vw - 12px), 172px) !important;
      line-height: 1.04 !important;
    }
    .pmh-nov-home [data-id="77a1f63"] > .elementor-widget-container {
      margin-top: 0 !important;
    }
    .pmh-nov-home [data-id="77a1f63"] .swiper-peaceful-wr1 .swiper-peaceful-img {
      height: var(--intro-image-height) !important;
    }
    .pmh-nov-home [data-id="77a1f63"] .swiper-peaceful-wr2 .swiper-peaceful-img {
      height: calc(var(--intro-image-height) * .823) !important;
    }
  }
}

/* Home: Life in Phu My Hung, from the heading through the five links. */
@media (min-width: 1025px) {
  @layer pmhSectionEdges {
    .pmh-nov-home [data-id="e846757"] {
      --life-text-space: 20vw;
      margin-top: clamp(20px, 3.5vh, 52px) !important;
    }
    html:lang(vi) .pmh-nov-home [data-id="e846757"] {
      --life-text-space: 26vw;
    }
    .pmh-nov-home [data-id="e846757"] .img-h-510 {
      height: clamp(150px, calc(100vh - var(--life-text-space) - 65px), 24vw) !important;
    }
    .pmh-nov-home [data-id="e846757"] .img-h-510 :is(.elementor-widget-image, .elementor-widget-container, a, picture, img) {
      display: block;
      width: 100% !important;
      height: 100% !important;
    }
    .pmh-nov-home [data-id="e846757"] .img-h-510 img {
      object-fit: cover;
    }
    .pmh-nov-home [data-id="2b9a8c0"] img {
      object-position: center 75%;
    }
  }
}

/* Fit the Home gallery, tour and interactive map below the desktop header. */
@media (min-width: 1025px) {
  @layer pmhSectionEdges {
    .pmh-nov-home :is([data-id="0d5022e"], [data-id="6e2a2ce"], [data-id="7da9159"]) {
      padding-top: clamp(24px, 4.5vh, 64px) !important;
      row-gap: clamp(18px, 3.5vh, 48px) !important;
    }
    .pmh-nov-home [data-id="0d5022e"] {
      padding-bottom: clamp(24px, 4vh, 56px) !important;
    }
    .pmh-nov-home [data-id="d083c3d"] {
      padding-top: clamp(28px, 5vh, 72px) !important;
    }
    .pmh-nov-home [data-id="0d5022e"] .swiper-slide .elementor-widget-image img {
      width: 100% !important;
      height: min(32.87vw, calc(80vh - 11vw)) !important;
      object-fit: cover;
    }
    .pmh-nov-home [data-id="0911350"] img {
      width: 100% !important;
      height: min(41.4vw, calc(84vh - 8vw)) !important;
      object-fit: cover;
    }
    .pmh-nov-home [data-id="c655ab3"] .f-panzoom-map {
      height: min(82vh, calc(84vh - 8vw)) !important;
    }
  }
}

/* Short desktop windows: keep the unit grid and reserve room for its captions. */
@media (min-width: 1025px) {
  @layer pmhSectionEdges {
    .pmh-nov-home [data-id="e088dcc"] .img-h-670 {
      height: min(35.52vw, calc(100vh - 12vw - 95px)) !important;
    }
    @media (max-height: 900px) {
      .pmh-nov-home [data-id="e088dcc"] .img-h-670 {
        max-height: 55vh !important;
      }
    }
    .pmh-nov-home [data-id="e088dcc"] .img-h-670 :is(.elementor-widget-image, .elementor-widget-container, a, img) {
      display: block;
      height: 100% !important;
      width: 100% !important;
    }
    .pmh-nov-home [data-id="e088dcc"] .img-h-670 img { object-fit: cover; }
  }
}

/* Booking & Support: keep the selected form and its photograph together. */
@media (min-width: 1025px) {
  @layer pmhSectionEdges {
    [data-id="360db98"] .e-n-tabs { row-gap: clamp(14px, 2.4vh, 32px) !important; }
    [data-id="360db98"] .pmh-r6-contact-image img {
      width: 100% !important;
      height: min(58.53vw, calc(91vh - 8vw - 32px)) !important;
      object-fit: cover;
    }
    [data-id="360db98"] :is([data-id="814f957"], [data-id="b96222f"], [data-id="9d5d963"]) { row-gap: clamp(10px, 1.5vh, 22px) !important; }
    [data-id="360db98"] .elementor-field-group { margin-bottom: min(.65vh, 8px) !important; }
    [data-id="360db98"] textarea { height: clamp(50px, 7vh, 100px) !important; min-height: 0 !important; }
    [data-id="c7bc8f0"] { row-gap: clamp(22px, 4vh, 60px) !important; }
  }
}

/* Wide, short windows have less room for the longer translated form labels. */
@media (min-width: 1800px) and (min-aspect-ratio: 2/1) {
  @layer pmhSectionEdges {
    [data-id="360db98"] .pmh-r6-sub .elementor-heading-title { font-size: min(2.6vw, 5.4vh) !important; line-height: 1.06 !important; }
    [data-id="360db98"] .elementor-form :is(.elementor-field-type-html, .field-name, .elementor-field-type-html p, .elementor-field-type-html label, .elementor-field-option label, input, select, textarea) { font-size: min(1vw, 1.9vh) !important; line-height: 1.26 !important; }
  }
}

/* Optical spacing for single-line category labels, based on the Facilities
   desktop frame. Venue names, school details and event cards have other styles. */
@layer pmhSectionEdges {
  @media (min-width: 768px) {
    body:is(.page-id-201, .page-id-2442)
    :is([data-id="3f014028"], [data-id="590cebf"], [data-id="6bd2674c"],
        [data-id="fd2d63b"], [data-id="53a2ff1"], [data-id="180af098"],
        [data-id="e4ee781"]) .elementor-widget-image + .elementor-widget-heading {
      padding-block-start: clamp(4px, .27vw, 7px) !important;
    }
  }
  @media (max-width: 767px) {
    body:is(.page-id-201, .page-id-2442)
    [data-id="1c0c417d"] .elementor-widget-image + .pmh-image-caption {
      padding-block-start: 3px !important;
    }
  }
}

/* Mobile school feature headings follow the SSIS name and level styles. */
@layer pmhSectionEdges {
  @media (max-width: 767px) {
    body.page-id-201 { --pmh-school-font: "STIX Two Text", sans-serif; }
    body.page-id-2442 { --pmh-school-font: "STIX Two Text", Georgia, serif; }
    body:is(.page-id-201,.page-id-2442) [data-id="c231114"] .elementor-heading-title,
    body:is(.page-id-201,.page-id-2442) [data-id="c231114"] .elementor-heading-title > a {
      font: 400 33px/1.05 var(--pmh-school-font) !important;
      letter-spacing: -.03em !important;
    }
    body:is(.page-id-201,.page-id-2442) [data-id="c231114"] .pmh-school-level {
      font: 400 22px/1.4 var(--pmh-school-font) !important;
      letter-spacing: -.02em !important;
    }
  }
}

/* Keep desktop carousel pagination in the layout as slide dimensions change. */
@layer pmhSectionEdges {
  @media (min-width: 1024px) {
    .elementor :is(.amenities-carousel, .crescent-carousel-gallery) .swiper-pagination-bullets {
      position: static !important;
      transform: none !important;
      width: 100% !important;
      margin: clamp(12px, 1vw, 24px) 0 0 !important;
      padding: 0 !important;
      text-align: center !important;
      line-height: 1 !important;
    }

    .elementor :is(.amenities-carousel, .crescent-carousel-gallery) .swiper-pagination-bullet-active {
      background-color: #1f3d3b !important;
    }
  }
}

@layer pmhSectionEdges {
  @media (min-width: 1024px) {
    .book-form-contact :is(.elementor-field-type-textarea, .elementor-field-type-submit) {
      padding-inline: 5px !important;
    }

    .book-form-contact .elementor-field-type-submit {
      margin-top: 2.12vw !important;
    }
  }
}
