/* ===== Video Gallery Shortcode ===== */

.vg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.vg-card {
    overflow: hidden;
}

/* Thumbnail container -- 16:9 aspect ratio */
.vg-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

/* Play button overlay */
.vg-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.vg-play-btn::after {
    content: '';
    display: block;
    margin-left: 5px;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent #fff;
}

.vg-play-btn:hover {
    background: rgba(226, 35, 26, 0.9);
}

/* Duration badge */
.vg-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 2;
}

/* Iframe replaces thumbnail */
.vg-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Title below thumbnail */
.vg-title {
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Tabs ===== */
.vg-tabs ul {
    display: block;
    list-style: none;
    padding: 0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 4px solid #000;
    margin-top: 10px;
}

.vg-tabs li {
    display: inline-block;
    margin-bottom: 8px;
}

.vg-tabs button {
    text-transform: uppercase;
    background-color: gainsboro;
    padding: 5px 11px;
    display: inline-block;
    font-size: 14px;
    line-height: 18px;
    margin-right: 6px;
    color: #000;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.vg-tabs button:hover {
    background-color: #bbb;
}

.vg-tabs button.active {
    background-color: #000;
    color: #fff;
}

/* ===== Show More ===== */
.vg-show-more-wrap {
    text-align: center;
}

.vg-show-more-wrap .btn {
    margin: 20px auto;
}

/* ===== No Videos Message ===== */
.vg-no-videos {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .vg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .vg-grid {
        grid-template-columns: 1fr;
    }

    .vg-play-btn {
        width: 48px;
        height: 48px;
    }

    .vg-play-btn::after {
        margin-left: 4px;
        border-width: 9px 0 9px 16px;
    }
}
