.vtc-card {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* Use 100% width and let Elementor parent containers dictate column widths without overlap */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.vtc-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.vtc-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.vtc-video-element,
.vtc-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    display: none;
}

.vtc-card.is-playing .vtc-video-element,
.vtc-card.is-playing .vtc-iframe-container iframe {
    display: block;
}

.vtc-card.is-playing .vtc-thumbnail {
    opacity: 0;
    pointer-events: none;
}

.vtc-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--overlay-start, rgba(0,0,0,0)) 30%, var(--overlay-end, rgba(0,0,0,0.95)) 100%);
    z-index: 3;
    pointer-events: none;
}

.vtc-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.vtc-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.vtc-play-btn svg {
    width: 40%;
    height: 40%;
}

.vtc-card-content {
    position: relative;
    z-index: 4;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.vtc-client-name {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.vtc-client-position {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.vtc-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.vtc-rating {
    display: flex;
    align-items: center;
}

.vtc-star {
    display: inline-flex;
}

.vtc-star svg {
    display: block;
}

/* Lightbox elements */
.vtc-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.admin-bar .vtc-lightbox-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .vtc-lightbox-overlay {
        top: 46px;
    }
}

.vtc-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.vtc-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.vtc-lightbox-content {
    width: 100%;
    height: 100%;
}

.vtc-lightbox-content video,\
.vtc-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
