/* Explain: Styles for the project video clip cards and grid. */
/* ============================================================
   Project video clip cards
   ============================================================ */

.video-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem;
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.video-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.35s ease;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}

.video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.2rem 1.35rem 1.4rem;
}

.video-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 74, 28, 0.1);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.video-title {
    margin-top: 0.7rem;
    font-size: 1.18rem;
    color: var(--ink);
    transition: color 0.25s ease;
}

.video-desc {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}

@media (hover: hover) {
    .video-card:hover,
    .video-card:focus-within {
        transform: translateY(-6px);
        border-color: var(--primary-color);
        box-shadow: 0 28px 48px -26px rgba(255, 74, 28, 0.55);
    }

    .video-card:hover .video-title,
    .video-card:focus-within .video-title {
        color: var(--primary-color);
    }
}

@media (hover: none) {
    .video-card:active {
        border-color: var(--primary-color);
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-card {
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .video-card:hover,
    .video-card:focus-within {
        transform: none;
    }
}