/**
 * ============================================================
 * Ars Viva Framework
 * Component : Video Player
 * File      : videos.css
 * Version   : 2.2.0
 *
 * Styles for:
 * - Video gallery
 * - Video cards
 * - Responsive layout
 * - Thumbnails
 * - Custom play button
 * - Video title banner
 *
 * ============================================================
*/


/* ============================================================
   Voice section
   ============================================================ */

.av-video-group {
    margin-bottom: 3rem;
}

.av-video-group h2 {
    margin-bottom: 1rem;
}


/* ============================================================
   Responsive gallery
   ============================================================ */

.av-video-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;

    align-items: start;

}

@media (max-width: 900px) {

    .av-video-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}

@media (max-width: 700px) {

    .av-video-grid {

        grid-template-columns: 1fr;

    }

}


/* ============================================================
   Video card
   ============================================================ */

.av-video-card {

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 5%;

    overflow: hidden;

}


/* ============================================================
   Player area
   ============================================================ */

.av-video-player {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #222;

    overflow: hidden;

}


/* ============================================================
   Thumbnails
   ============================================================ */

.av-video-thumb {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

}


/* ============================================================
   Local thumbnails (generated by JavaScript)
   ============================================================ */

.av-local-placeholder {

    background: linear-gradient(#4a4a4a, #2c2c2c);

    background-position: center;

    background-repeat: no-repeat;

    background-size: contain;

}


/* ============================================================
   Playing media
   ============================================================ */

.av-video-player iframe,
.av-video-player video {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    background: #000;

}


/* ============================================================
   Custom Play Button
   ============================================================ */

.av-play-button {

    position: absolute;

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);

    width: 74px;

    height: 74px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, .90);

    cursor: pointer;

    transition: all .25s ease;

    z-index: 5;

}

.av-play-button::before {

    content: "";

    position: absolute;

    left: 50%;

    top: 50%;

    transform: translate(-40%, -50%);

    width: 0;

    height: 0;

    border-top: 12px solid transparent;

    border-bottom: 12px solid transparent;

    border-left: 18px solid #444;

}

.av-play-button:hover {

    background: #ffffff;

    transform: translate(-50%, -50%) scale(1.08);

}


/* ============================================================
   Title banner
   ============================================================ */

.av-video-title {

    background: #c0bfbd;

    color: #555;

    padding: 6px;

    text-align: center;

    font-size: 1.2rem;

    line-height: 1.1;

    font-weight: 500;

    min-height: 2.2em;

    display: flex;

    justify-content: center;

    align-items: center;

}


/* ============================================================
   Accessibility
   ============================================================ */

.av-play-button:focus {

    outline: 3px solid #4d90fe;

    outline-offset: 3px;

}