.olivet-facilities-page {
    --olivet-green: #28543a;
    --olivet-green-dark: #173f2c;
    --olivet-cream: #f6f2e8;
    --olivet-line: #d8dfd8;
    color: #25332b;
    overflow-wrap: anywhere;
}

.olivet-facilities-page > *:not(.alignfull) {
    width: min(1120px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.olivet-facilities-hero {
    min-height: clamp(360px, 55vw, 580px);
}

.olivet-facilities-hero .wp-block-cover__inner-container {
    width: min(900px, calc(100% - 40px));
}

.olivet-facilities-hero h1 {
    margin-bottom: .25em;
    color: #fff;
    font-size: clamp(3rem, 8vw, 5.4rem);
    line-height: .95;
}

.olivet-facilities-hero p {
    max-width: 760px;
    margin-bottom: 0;
    color: #fff;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.olivet-facilities-jump {
    position: relative;
    z-index: 2;
    margin-top: -34px;
    margin-bottom: 54px;
    padding: 18px 22px;
    border: 1px solid var(--olivet-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 63, 44, .12);
}

.olivet-facilities-jump p {
    margin: 0 0 10px;
    color: var(--olivet-green-dark);
    font-weight: 700;
}

.olivet-facilities-jump ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.olivet-facilities-jump a {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #bdd0c2;
    border-radius: 999px;
    color: var(--olivet-green-dark);
    font-size: .93rem;
    line-height: 1.2;
    text-decoration: none;
}

.olivet-facilities-jump a:hover,
.olivet-facilities-jump a:focus-visible {
    border-color: var(--olivet-green);
    background: var(--olivet-cream);
}

.olivet-facility-section {
    scroll-margin-top: 32px;
    margin-bottom: 64px;
    padding-top: 8px;
}

.olivet-facility-section > h2 {
    margin-bottom: 8px;
    color: var(--olivet-green-dark);
}

.olivet-facility-section > h2::after {
    display: block;
    width: 62px;
    height: 4px;
    margin-top: 7px;
    border-radius: 2px;
    background: #c79b4a;
    content: "";
}

.olivet-facility-subsection {
    margin-top: 30px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--olivet-line);
    border-radius: 14px;
    background: #fff;
}

.olivet-facility-subsection h3 {
    margin-top: 0;
    color: var(--olivet-green-dark);
}

.olivet-facility-copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, .85fr);
    gap: clamp(20px, 4vw, 42px);
    align-items: start;
}

.olivet-facility-facts {
    padding: 18px 20px;
    border-left: 4px solid #c79b4a;
    border-radius: 0 10px 10px 0;
    background: var(--olivet-cream);
}

.olivet-facility-facts h4 {
    margin: 0 0 8px;
    color: var(--olivet-green-dark);
}

.olivet-facility-facts ul {
    margin: 0;
    padding-left: 1.2em;
}

.olivet-editor-placeholder {
    padding: 10px 12px;
    border: 1px dashed #b7a77f;
    border-radius: 6px;
    background: #fffaf0;
    color: #685b3f;
    font-style: italic;
}

.olivet-facility-gallery {
    margin-top: 22px;
}

.olivet-gallery-featured {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #e7ece8;
    color: inherit;
    cursor: zoom-in;
    text-align: left;
}

.olivet-gallery-featured img {
    display: block;
    width: 100%;
    height: clamp(260px, 48vw, 560px);
    object-fit: cover;
}

.olivet-gallery-featured figcaption {
    margin: 0;
    padding: 10px 14px;
    background: var(--olivet-green-dark);
    color: #fff;
    font-size: .92rem;
}

.olivet-facility-gallery.wp-block-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
}

.olivet-facility-gallery.wp-block-gallery > .wp-block-image {
    flex: 0 0 92px;
    width: 92px !important;
    margin: 0 !important;
}

.olivet-facility-gallery .wp-block-image a {
    display: block;
    border: 3px solid transparent;
    border-radius: 8px;
}

.olivet-facility-gallery .wp-block-image a[aria-current="true"] {
    border-color: #c79b4a;
}

.olivet-facility-gallery .wp-block-image img {
    display: block;
    width: 86px !important;
    height: 68px !important;
    border-radius: 5px;
    object-fit: cover;
}

.olivet-facility-gallery .wp-block-image figcaption {
    display: none;
}

.olivet-gallery-dialog {
    width: min(1100px, calc(100vw - 32px));
    max-width: none;
    padding: 52px 18px 18px;
    border: 0;
    border-radius: 12px;
    background: #101713;
    color: #fff;
}

.olivet-gallery-dialog::backdrop {
    background: rgba(0, 0, 0, .84);
}

.olivet-gallery-dialog figure {
    margin: 0;
    text-align: center;
}

.olivet-gallery-dialog img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    margin: 0 auto;
    object-fit: contain;
}

.olivet-gallery-dialog figcaption {
    margin-top: 10px;
}

.olivet-gallery-dialog button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.5);
    background: #fff;
    color: #173f2c;
}

.olivet-gallery-close {
    position: absolute;
    top: 8px;
    right: 8px;
}

.olivet-gallery-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.olivet-facilities-cta {
    margin-top: 20px;
    margin-bottom: 72px;
    padding: clamp(26px, 5vw, 48px);
    border-radius: 14px;
    background: var(--olivet-green-dark);
    color: #fff;
    text-align: center;
}

.olivet-facilities-cta h2,
.olivet-facilities-cta p {
    color: #fff;
}

.olivet-facilities-cta .wp-block-button__link {
    background: #f5d58b;
    color: #173f2c;
}

.olivet-facilities-return-link {
    margin-top: 1em;
    font-weight: 700;
}

@media (max-width: 700px) {
    .olivet-facilities-page > *:not(.alignfull) {
        width: min(100% - 28px, 1120px);
    }

    .olivet-facilities-jump {
        margin-top: -22px;
        margin-bottom: 40px;
        padding: 15px;
    }

    .olivet-facility-section {
        margin-bottom: 48px;
    }

    .olivet-facility-copy-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .olivet-facility-subsection {
        padding: 18px;
    }

    .olivet-gallery-featured img {
        height: min(72vw, 420px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .olivet-facilities-page * {
        scroll-behavior: auto !important;
    }
}

/* Shared Astra transparent-header treatment for established public hero pages. */
.olivet-public-hero-page #masthead {
  position: absolute !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10000 !important;
  overflow: visible !important;
}

.olivet-public-hero-page .main-header-menu .sub-menu,
.olivet-public-hero-page .ast-mobile-header-content {
  z-index: 10002 !important;
}

@media (max-width: 921px) {
  .olivet-public-hero-page #ast-mobile-header {
    display: block !important;
  }
}

/* Normalize a nested full-width block hero to the Beaver Builder hero geometry. */
.olivet-public-block-hero-page .entry-content > .wp-block-group {
  margin-block-start: -70px !important;
}

.olivet-public-block-hero-page .entry-content > .wp-block-group > .wp-block-cover.alignfull:first-child {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw) !important;
}
