/* Custom Styles */



/* Ensure container hides overflow so scaling doesn't cause scrollbars */
.elementor-background-video-container {
    overflow: hidden;
}

/* TP Video Player Widget */
.tp-video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.tp-video-embed, .tp-video-embed iframe, .tp-video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tp-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-video-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.tp-video-play-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tp-video-overlay:hover .tp-video-play-icon,
.tp-video-popup-trigger:hover .tp-video-play-icon {
    transform: scale(1.1);
}

/* Strict Cleaning Mode */
.tp-strict-cleaning iframe {
    transform: scale(1.35);
    pointer-events: none;
}

/* Aspect Ratios */
.elementor-aspect-ratio-169 .tp-video-container { aspect-ratio: 16/9; }
.elementor-aspect-ratio-219 .tp-video-container { aspect-ratio: 21/9; }
.elementor-aspect-ratio-43 .tp-video-container { aspect-ratio: 4/3; }
.elementor-aspect-ratio-11 .tp-video-container { aspect-ratio: 1/1; }
.elementor-aspect-ratio-916 .tp-video-container { aspect-ratio: 9/16; }

/* Popup Trigger Styles */
.tp-video-popup-container {
    position: relative;
    width: 100%;
    display: inline-block;
}

.tp-video-popup-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px; /* fallback */
    background: #000;
}

.tp-video-popup-trigger img {
    width: 100%;
    height: auto;
    display: block;
}

.tp-video-popup-trigger .tp-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tp-video-popup-trigger:hover .tp-video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}
