
.vimeo-popup-open {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease-in-out}

.vimeo-popup-open:hover {
    transform: translateY(-6px)}

.vimeo-popup-open svg {
    display: block}

.vimeo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1}

.vimeo-popup-overlay.is-active {
	z-index: 99999;
    opacity: 1;
    pointer-events: auto}

.vimeo-popup-content {
    position: relative;
    width: 90%;
    /* max-width is now handled dynamically by Elementor */
    background: #000;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.8)}

.vimeo-popup-content iframe {
	display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Close button layout and transitions */
.vimeo-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.vimeo-popup-close svg {
    width: 24px;
    height: 24px;
    /* fill is now handled dynamically by Elementor */
    transition: fill 0.2s ease;
}
.vimeo-popup-close:hover {
    transform: scale(1.05);
    background: transparent;
}

@media (max-width: 768px) {
    .vimeo-popup-close { 
        top: -35px; 
        right: 5px; 
    }
    .vimeo-popup-close svg {
        width: 20px;
        height: 20px;
    }
}