/* SLM click-to-play video (video.php). Box keeps the video's real ratio before and after play: no layout shift. */
.slm-video {
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
}

.slm-video__frame {
    position: relative;
    aspect-ratio: var(--slm-video-ratio, 9 / 16);
    overflow: hidden;
    border-radius: 14px;
    background: #3B2A1F;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}

.slm-video__poster,
.slm-video__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slm-video__player {
    background: #000;
}

.slm-video__poster {
    z-index: 1;
    transition: opacity 200ms ease;
}

.slm-video__frame.is-playing .slm-video__poster {
    opacity: 0;
    visibility: hidden;
}

.slm-video__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .25) 100%);
    cursor: pointer;
}

.slm-video__play[hidden] {
    display: none;
}

.slm-video__play svg {
    width: 84px;
    height: 84px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
    transition: transform 160ms ease;
}

.slm-video__play circle {
    fill: #B5522F;
    stroke: #FFFFFF;
    stroke-width: 2;
}

.slm-video__play path {
    fill: #FFFFFF;
}

.slm-video__play-text {
    padding: .35rem .85rem;
    border-radius: 999px;
    background: #3B2A1F;
    color: #FFFFFF;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
}

.slm-video__play:hover svg,
.slm-video__play:focus-visible svg {
    transform: scale(1.06);
}

.slm-video__play:hover circle,
.slm-video__play:focus-visible circle {
    fill: #A82728;
}

.slm-video__play:focus-visible {
    outline: 3px solid #F2B233;
    outline-offset: -6px;
}

.slm-video__player:focus-visible {
    outline: 3px solid #F2B233;
    outline-offset: 2px;
}

/* Caption line and transcript toggle under the video. Both home videos sit on dark bands (cream text). */
.slm-video__caption {
    margin-top: .75rem;
    color: #FBF7F1;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.slm-video__transcript {
    margin-top: .75rem;
    border: 1px solid rgba(251, 247, 241, .25);
    border-radius: 10px;
    color: #FBF7F1;
}

.slm-video__transcript summary {
    padding: .6rem .85rem;
    cursor: pointer;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.slm-video__transcript summary:focus-visible {
    outline: 3px solid #F2B233;
    outline-offset: 2px;
    border-radius: 10px;
}

.slm-video__transcript-text {
    padding: 0 .85rem .75rem;
    font-size: .9rem;
    line-height: 1.6;
}

.slm-video__transcript-text p {
    margin: 0 0 .6rem;
}

.slm-video__transcript-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .slm-video {
        max-width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slm-video__poster,
    .slm-video__play svg {
        transition: none;
    }
}
