.mm-videos,
.mm-videos * {
    box-sizing: border-box;
}

.mm-video-current {
    margin: 0 0 42px;
}

.mm-video-current--vertical {
    display: grid;
    grid-template-columns: minmax(180px, 320px) minmax(240px, 450px);
    justify-content: center;
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}

.mm-video-current--vertical-thumbnail {
    grid-template-columns: minmax(180px, 300px) minmax(250px, 340px);
}

.mm-video-current__heading {
    min-width: 0;
}

.mm-videos__page-title {
    margin: 0 0 clamp(20px, 3vw, 32px);
}

.mm-video-current__month {
    margin: 0 0 8px;
    font-size: 1.05em;
    line-height: 1.35;
    font-weight: 700;
    opacity: .72;
}

.mm-video-current--horizontal .mm-video-current__heading {
    margin-bottom: 16px;
}

.mm-video-current__embed,
.mm-video-lightbox__video,
.mm-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.mm-video-current__embed iframe,
.mm-video-current__embed video,
.mm-video-current__embed embed,
.mm-video-current__embed object,
.mm-video-lightbox__video iframe,
.mm-video-lightbox__video video,
.mm-video-lightbox__video embed,
.mm-video-lightbox__video object {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.mm-video-embed--vertical {
    width: min(45vh, 450px);
    max-width: 100%;
    aspect-ratio: 9 / 16;
    margin-inline: auto;
}

.mm-video-embed--tiktok {
    margin-inline: auto;
}

.mm-video-lightbox__video--tiktok {
    width: min(450px, 100%);
    aspect-ratio: 9 / 16;
    margin-inline: auto;
}

.mm-video-current__title {
    margin: 0;
}

.mm-video-current__featured-card {
    width: 100%;
    min-width: 0;
}

.mm-video-featured__button {
    width: min(100%, 360px);
    margin-inline: auto;
}

.mm-video-card__thumbnail.mm-video-featured__thumbnail--vertical {
    aspect-ratio: auto;
    height: 444px;
    max-height: 444px;
}

.mm-video-featured__thumbnail--vertical .mm-video-card__image {
    object-fit: cover;
}


.mm-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.mm-video-card {
    min-width: 0;
}

.mm-video-card__button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.mm-video-card__button--disabled {
    cursor: default;
}

.mm-video-card__thumbnail {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.mm-video-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease, filter .2s ease;
}

.mm-video-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mm-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 68px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 3px 12px rgba(0,0,0,.45));
    transition: transform .2s ease;
}

.mm-video-card__play svg {
    display: block;
    width: 100%;
    height: 100%;
}

.mm-video-card__play circle {
    fill: rgba(0, 0, 0, .68);
    stroke: #fff;
    stroke-width: 2;
}

.mm-video-card__play path {
    fill: #fff;
}

.mm-video-card__button:hover .mm-video-card__image,
.mm-video-card__button:focus-visible .mm-video-card__image {
    transform: scale(1.025);
    filter: brightness(.82);
}

.mm-video-card__button:hover .mm-video-card__play,
.mm-video-card__button:focus-visible .mm-video-card__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.mm-video-card__button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
}

.mm-video-card__meta {
    display: block;
    padding-top: 10px;
}

.mm-video-card__date {
    display: block;
    margin-bottom: 3px;
    font-size: .83em;
    line-height: 1.3;
    opacity: .68;
}

.mm-video-card__title {
    display: block;
    font-weight: 700;
    line-height: 1.3;
}

.mm-video-lightbox[hidden] {
    display: none !important;
}

.mm-video-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.mm-video-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
}

.mm-video-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1200px, 100%);
}

.mm-video-lightbox__content {
    width: 100%;
    background: #000;
}

.mm-video-lightbox__close {
    position: absolute;
    right: -8px;
    bottom: calc(100% + 8px);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: 300 42px/1 Arial, sans-serif;
    cursor: pointer;
}

.mm-video-lightbox__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

body.mm-video-lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .mm-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .mm-video-current--vertical {
        display: block;
    }

    .mm-video-current--vertical .mm-video-current__heading {
        margin-bottom: 16px;
    }

    .mm-video-featured__button {
        width: min(78vw, 340px);
    }

    .mm-video-embed--vertical {
        width: min(42.1875vh, 100%);
    }
}

@media (max-width: 600px) {
    .mm-video-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .mm-video-lightbox {
        padding: 18px;
    }

    .mm-video-card__play {
        width: 58px;
        height: 58px;
    }
}

.mm-video-lightbox__dialog--tiktok {
    width: min(450px, 100%);
}

/* Mixed image / GIF / gallery support */
.mm-video-current__media {
    width: 100%;
    min-width: 0;
}

.mm-video-current__media--vertical {
    width: min(45vh, 450px);
    max-width: 100%;
    margin-inline: auto;
}

.mm-gallery {
    position: relative;
    width: 100%;
}

.mm-gallery__stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.mm-gallery--featured .mm-gallery__stage {
    aspect-ratio: 16 / 9;
}

.mm-video-current__media--vertical .mm-gallery__stage {
    aspect-ratio: 9 / 16;
    max-height: 80vh;
}

.mm-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
}

.mm-gallery__slide[hidden] {
    display: none !important;
}

.mm-gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mm-gallery__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 46px;
    height: 58px;
    padding: 0 0 5px;
    border: 0;
    border-radius: 4px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font: 300 48px/1 Arial, sans-serif;
    cursor: pointer;
}

.mm-gallery__nav--prev {
    left: 12px;
}

.mm-gallery__nav--next {
    right: 12px;
}

.mm-gallery__nav:hover,
.mm-gallery__nav:focus-visible {
    background: rgba(0, 0, 0, .82);
}

.mm-gallery__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mm-gallery__counter {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.mm-video-card__gallery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.mm-video-card__gallery-icon {
    position: relative;
    display: block;
    width: 15px;
    height: 13px;
}

.mm-video-card__gallery-icon i {
    position: absolute;
    display: block;
    width: 11px;
    height: 9px;
    border: 1.5px solid currentColor;
}

.mm-video-card__gallery-icon i:first-child {
    top: 0;
    right: 0;
}

.mm-video-card__gallery-icon i:last-child {
    left: 0;
    bottom: 0;
}

.mm-video-lightbox__dialog--gallery {
    width: min(1400px, 100%);
}

.mm-gallery--lightbox .mm-gallery__stage {
    height: min(82vh, 900px);
}

.mm-gallery--lightbox .mm-gallery__slide img {
    object-fit: contain;
}

@media (max-width: 800px) {
    .mm-video-current__media--vertical {
        width: min(42.1875vh, 100%);
    }
}

@media (max-width: 600px) {
    .mm-gallery--lightbox .mm-gallery__stage {
        height: 76vh;
    }

    .mm-gallery__nav {
        width: 40px;
        height: 52px;
        font-size: 42px;
    }

    .mm-gallery__nav--prev {
        left: 6px;
    }

    .mm-gallery__nav--next {
        right: 6px;
    }
}


/* Video of the Month sidebar shortcode */
.mm-votm-sidebar {
    width: 100%;
}

.mm-votm-sidebar__title {
    margin: 0 0 14px;
}

.mm-votm-sidebar__thumbnail-link {
    display: block;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    color: inherit;
    text-decoration: none;
}

.mm-votm-sidebar__thumbnail {
    display: block;
    width: 100%;
}

.mm-votm-sidebar__thumbnail--vertical {
    aspect-ratio: 30 / 37;
    max-height: 444px;
}

.mm-votm-sidebar__thumbnail--horizontal {
    aspect-ratio: 16 / 9;
}

.mm-votm-sidebar__thumbnail .mm-video-card__image {
    object-fit: cover;
}

.mm-votm-sidebar__cta {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
}
