/* ==============================
   Gallery – Video tiles
================================ */



.tz-gallery a[data-gallery] {
    position: relative;
    display: block;
    border-radius: 0px;
    overflow: hidden;
    background: #f2f2f2;
    text-decoration: none;
}

/* Thumbnail sizing + layout stability */
.so-video-thumb {
    width: 100%;
    height: auto;
    display: block;
}

/* ==============================
   Play badge overlay
================================ */

.play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

    .play-badge::before {
        content: "";
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(0,0,0,0.55);
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    }

    .play-badge::after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border-left: 16px solid #fff;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        margin-left: 4px;
    }


/* Card look like your image tiles */
.so-tile {
    display: block;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    overflow: hidden;
    text-decoration: none;
}

/* Media area (thumb/video) */
.so-media {
    position: relative;
    background: #f2f2f2;
}

/* Stable sizing + nice crop */
.so-video-thumb {
    width: 100%;
    height: auto;
    display: block;
}

/* Inline play button overlay */
.so-video-inline-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

    .so-video-inline-play::before {
        content: "";
        width: 56px;
        height: 56px;
        border-radius: 999px;
        background: rgba(0,0,0,0.55);
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    }

    .so-video-inline-play::after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border-left: 16px solid #fff;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        margin-left: 4px;
    }

/* When playing inline, hide the play badge */
.so-video-tile.is-playing .so-video-inline-play {
    display: none;
}
.so-tile,
.so-media,
.so-video-thumb {
    border-radius: 0 !important;
}


.so-video-small .so-media {
    max-width: 70%; /* tweak: 60–80% */
    margin: 0 auto; /* center it */
}

    .so-video-small .so-media img {
        width: 100%;
        height: auto;
    }
.so-video-tile:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}
.so-video-small .so-video-inline-play {
    inset: 0;
}
.so-video-fallback {
    height: 260px;
    display: grid;
    place-items: center;
    background: #eee;
    font-weight: 600;
}
/* Video grid spacing (Bootstrap-friendly) */
.so-video-grid > [class*="col-"] {
    padding-bottom: 24px;
}

/* If you also want a little top spacing between rows */
.so-video-grid {
    margin-top: 8px;
}