.m33-post-buttons{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.m33-post-button{
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, #765f72 38%, #d9dce5);
    border-radius: 9px;
    background: #faf7f9;
    color: #4f3d4d;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.1;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.m33-post-button:hover,
.m33-post-button:focus-visible{
    border-color: #765f72;
    background: #f2ebf0;
    transform: translateY(-1px);
    outline: none;
}

.m33-post-button__open{
    color: #765f72;
    font-size: 11px;
}

.m33-post-modal{
    width: min(980px, calc(100vw - 28px));
    max-width: none;
    max-height: min(880px, calc(100dvh - 28px));
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: #17151d;
    box-shadow: 0 26px 90px rgba(26, 20, 46, .35);
}

.m33-post-modal::backdrop{
    background: rgba(18, 14, 28, .72);
    backdrop-filter: blur(4px);
}

.m33-post-modal__bar{
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
}

.m33-post-modal__close{
    appearance: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(20,17,26,.72);
    color: #fff;
    font: inherit;
    font-size: 24px;
    cursor: pointer;
}

.m33-post-modal__body{
    max-height: min(880px, calc(100dvh - 28px));
    overflow: auto;
}

.m33-post-modal__article{
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    min-height: 560px;
}

.m33-post-modal__article--text{
    display: block;
    min-height: 0;
}

.m33-post-modal__article--text .m33-post-modal__copy{
    max-width: 720px;
    margin: 0 auto;
}

.m33-post-modal__media{
    min-width: 0;
    background: #15131a;
}

.m33-post-modal__copy{
    align-self: stretch;
    padding: 38px 32px 34px;
    overflow-wrap: anywhere;
}

.m33-post-modal__copy h2{
    margin: 6px 0 18px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.08;
}

.m33-post-modal__label{
    margin: 0;
    color: #765f72;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.m33-post-modal__text{
    color: #4b4754;
    line-height: 1.62;
}

.m33-post-modal__source{
    display: inline-flex;
    margin-top: 22px;
    color: #6f596d;
    font-weight: 750;
}

.m33-post-gallery,
.m33-post-gallery__track,
.m33-post-gallery__slide{
    height: 100%;
    min-height: 560px;
}

.m33-post-gallery{
    position: relative;
}

.m33-post-gallery__track{
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #15131a;
}

.m33-post-gallery__slide{
    position: absolute;
    z-index: 0;
    inset: 0;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    background: #15131a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.m33-post-gallery__slide.is-active{
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.m33-post-gallery__slide img,
.m33-post-gallery__slide video{
    display: block;
    width: 100%;
    height: 100%;
    max-height: min(880px, calc(100dvh - 28px));
    object-fit: contain;
    background: #15131a;
}

.m33-post-gallery__nav{
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(20,17,26,.75);
    color: #fff;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
}



.m33-post-gallery__nav span{
    min-width: 44px;
    text-align: center;
    font-size: 12px;
}

.m33-post-section{
    padding: clamp(48px, 7vw, 92px) 0;
    overflow: hidden;
    background: #f7f5fa;
}

.m33-post-section__head{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
    align-items: end;
}

.m33-post-section__head p{
    grid-column: 1;
    margin: 0 0 7px;
    color: #765f72;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.m33-post-section__head h2{
    grid-column: 1;
    margin: 0 0 26px;
}

.m33-post-section__controls{
    display: inline-flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
}

.m33-post-section__controls[hidden]{
    display: none;
}









.m33-post-section__status{
    min-width: 48px;
    color: #68736e;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
}

.m33-post-section__grid{
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(260px, calc((100% - 48px) / 4), 320px);
    gap: 16px;
    padding: 2px 2px 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.m33-post-section__grid::-webkit-scrollbar{
    display: none;
}

.m33-post-section__grid > .m33-post-teaser{
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.m33-post-teaser{
    appearance: none;
    display: flex;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5e0ed;
    border-radius: 18px;
    background: #fff;
    color: #211b29;
    text-align: left;
    cursor: pointer;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.m33-post-teaser:hover,
.m33-post-teaser:focus-visible{
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(61,47,58,.10);
    outline: 2px solid #765f72;
    outline-offset: 2px;
}

.m33-post-teaser__media{
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eae5ef;
}

.m33-post-teaser__media img,
.m33-post-teaser__media video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m33-post-teaser__media--video i{
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(23,18,31,.78);
    color: #fff;
    font-style: normal;
    transform: translate(-50%,-50%);
}

.m33-post-teaser__copy{
    display: flex;
    min-height: 150px;
    padding: 18px;
    flex-direction: column;
}

.m33-post-teaser__copy small{
    color: #765f72;
    font-weight: 800;
}

.m33-post-teaser__copy strong{
    margin-top: 8px;
    line-height: 1.3;
}

.m33-post-teaser__copy > span{
    display: none;
}

/* Align post and detail actions with the clinic UI. */
.m33-post-button{
    border-color: rgba(40,92,77,.28);
    border-radius: 999px;
    background: #f4f8f2;
    color: #285c4d;
}
.m33-post-button:hover,
.m33-post-button:focus-visible{
    border-color: #285c4d;
    background: #285c4d;
    color: #fff;
    outline: none;
}
.m33-post-button__open{ color: currentColor; }
.am26-service-row__heading .m33-post-buttons{ margin-top: 0; }
.am26-service-row__heading .m33-post-button{ min-height: 36px; padding: 7px 11px; }
@media (max-width: 900px){
    .m33-post-modal__article{
        grid-template-columns: 1fr;
    }
    .m33-post-modal__copy{
        padding: 26px 22px 30px;
    }
    .m33-post-gallery,
.m33-post-gallery__track,
.m33-post-gallery__slide{
        min-height: min(68vh, 620px);
        height: min(68vh, 620px);
    }
    .m33-post-section__grid{
        grid-auto-columns: clamp(250px, calc((100% - 16px) / 2), 360px);
    }
}

@media (max-width: 560px){
    .m33-post-modal{
        width: calc(100vw - 12px);
        max-height: calc(100dvh - 12px);
        border-radius: 18px;
    }
    .m33-post-modal__body{
        max-height: calc(100dvh - 12px);
    }
    .m33-post-gallery,
.m33-post-gallery__track,
.m33-post-gallery__slide{
        min-height: 58vh;
        height: 58vh;
    }
    .m33-post-gallery__slide img,
.m33-post-gallery__slide video{
        max-height: 58vh;
    }
    .m33-post-section__head{ column-gap: 10px; }
    .m33-post-section__head h2{ margin-bottom: 20px; }
    .m33-post-section__controls{ gap: 5px; margin-bottom: 20px; }
    
    .m33-post-section__status{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
    .m33-post-section__grid{ grid-auto-columns: clamp(236px, 78vw, 304px); }
}


/* Clear media labels and calmer post accent. */
.m33-post-button__format{
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #765f72;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}
.m33-post-button__label{ min-width: 0; }
.m33-post-teaser{ position: relative; }
.m33-post-teaser__format{
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 7px;
    background: rgba(48,38,46,.78);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    backdrop-filter: blur(7px);
}

/* AM26_STAGE15_MOBILE_POST_CAROUSEL */
@media (max-width: 768px){
    .m33-post-section__grid{
        width: calc(100% + var(--am26-gutter, 20px));
        margin-right: calc(-1 * var(--am26-gutter, 20px));
        padding-right: var(--am26-gutter, 20px);
        gap: 13px;
    }
    .m33-post-section__grid > .m33-post-teaser{ scroll-snap-stop: always; }
    .m33-post-teaser__copy{ min-height: 112px; padding: 15px; }
}

@media (prefers-reduced-motion: reduce){
    .m33-post-section__grid{ scroll-behavior: auto !important; }
    .m33-post-teaser{ transition: none !important; }
}
