/* Shared phone and tablet adjustments, loaded after the exported page styles. */
@media (max-width: 767px) {
  /* Keep the decoration alongside the links rather than below the copyright. */
  .elementor-61 .elementor-element.elementor-element-d7ebc18 {
    background-image: none !important;
  }
  .elementor-61 .elementor-element.elementor-element-d7ebc18 > .e-con-inner {
    padding-bottom: 24px !important;
  }
  .elementor-61 .elementor-element.elementor-element-98b2e4e {
    position: relative;
  }
  .elementor-61 .elementor-element.elementor-element-98b2e4e::after {
    content: '';
    position: absolute;
    right: 0;
    top: 65px;
    width: clamp(100px, 36vw, 150px);
    aspect-ratio: 1;
    background: url('../img/cresmonde-school-image-36.png') center / contain no-repeat;
    opacity: .25;
    pointer-events: none;
  }
  .elementor-61 .elementor-element.elementor-element-fc1cb80 {
    width: calc(100% - clamp(100px, 36vw, 150px) - 12px) !important;
  }
  /* Reserve space inside the scroller for the desktop-style image overlap. */
  html body .elementor-element.elementor-element-6a2567b {
    margin-top: 0 !important;
    padding-top: 100px !important;
  }
  html body .elementor-element-6a2567b > .e-con {
    padding: 20px 16px !important;
    height: auto !important;
    gap: 16px !important;
  }
  html body .elementor-element-6a2567b > .e-con > .elementor-shape {
    display: block;
  }
  html body .elementor-element-6a2567b .elementor-widget-image > .elementor-widget-container {
    margin: -100px 0 0 !important;
    padding: 0 !important;
  }
  html body .elementor-element-6a2567b .elementor-widget-image img {
    display: block;
    width: 160px !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    object-fit: contain !important;
    margin: 0 auto;
  }
  html body .admissions-popup-trigger {
    position: fixed !important;
    writing-mode: vertical-rl !important;
    transform: translateY(-50%) !important;
    top: 50% !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    padding: 12px 7px !important;
    border-radius: 6px 0 0 6px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: nowrap;
  }
}
@media (max-width: 1024px) {
  header.elementor-location-header .elementor-element-5ec7eaa,
  header.elementor-location-header .elementor-element-5ec7eaa > .e-con-inner {
    min-height: 0 !important;
    padding: 0 12px !important;
    gap: 12px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  header.elementor-location-header .elementor-element-87a7045,
  header.elementor-location-header .elementor-element-ccccc71 {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }
  header.elementor-location-header .elementor-widget-theme-site-logo img {
    display: block;
    width: 88px !important;
    max-width: 88px !important;
    height: 88px !important;
    object-fit: contain;
  }
  header.elementor-location-header .premium-hamburger-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
  }
  header.elementor-location-header .premium-mobile-menu-outer-container {
    max-width: 100vw !important;
    max-height: 100dvh;
    overflow-y: auto;
  }
}
@media (max-width: 767px) {
  html, body { max-width: 100%; }
  .e-con { --container-max-width: 100%; }
  .e-grid:not(.mobile-card-track) { --e-con-grid-template-columns: minmax(0, 1fr); }
  .elementor-widget-text-editor { overflow-wrap: break-word; }
  iframe, video { max-width: 100%; }
  input, select, textarea { max-width: 100%; font-size: 16px; }
  .elementor-widget-heading h3.elementor-heading-title,
  .elementor-widget-heading h4.elementor-heading-title { font-size: clamp(20px, 5vw, 26px) !important; }
  html body .mobile-card-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 12px 16px 20px !important;
  }
  html body .mobile-card-track > .e-con {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }
  html body .mobile-card-track .elementor-heading-title { font-size: 24px !important; }
}
