/* ================================================================
   Video Showcase Grid — Layout
   ================================================================ */

.jsc-video-grid {
    position: relative;
    width: 100%;
}

.jsc-video-grid__items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
    row-gap: 80px;
}

@media (max-width: 768px) {
    .jsc-video-grid__items {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }
}

/* ================================================================
   Grid Item
   ================================================================ */

.jsc-video-grid__item {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* ================================================================
   Media Container (square card)
   ================================================================ */

.jsc-grid-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    display: block;
    text-decoration: none;
}

.jsc-grid-media__inner {
    width: 100%;
    height: 100%;
}

.jsc-grid-video,
.jsc-grid-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

/* Hover: colour + video plays (JS handles play/pause) */
.jsc-grid-media:hover .jsc-grid-video,
.jsc-grid-media:hover .jsc-grid-fallback-img {
    filter: grayscale(0%);
}

.jsc-grid-media:hover {
    cursor: pointer;
}

.jsc-grid-media:hover span.btn {
    background-color: var(--color-neutral-0);
    color: var(--color-neutral-900);
    box-shadow: none;
}

/* ================================================================
   Overlay Header (Name + Duration bar)
   ================================================================ */

.jsc-grid-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    margin: 0 10px;
    z-index: 2;
    border-bottom: 1px solid rgb(255 255 255 / 25%);
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%); */
    background-clip: padding-box;
}

.jsc-grid-overlay-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: "PP Neue Montreal", sans-serif;
}

.jsc-grid-duration {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.78px;
    text-transform: uppercase;
    font-family: "IBM Plex Sans", sans-serif;
}

/* ================================================================
   Play Button (centred yellow box)
   ================================================================ */

a.jsc-grid-media span.btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

a.jsc-grid-media span.btn:before {
    margin: 0;
}

/* ================================================================
   Bottom Content (Title + Description side-by-side)
   ================================================================ */

.jsc-grid-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-right: 12px;
    width: 100%;
}

.jsc-grid-title {
    flex: 0 0 auto;
    width: 215px;
    min-width: 0;
}

.jsc-grid-description {
    flex: 1 1 0%;
    min-width: 0;
}

@media (max-width: 480px) {
    .jsc-grid-content {
        flex-direction: column;
        gap: 0;
    }

    .jsc-grid-title {
        width: auto;
    }
}