.uffizio-video-popup-wrapper {
    position: relative;
    display: block;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
}

.uffizio-video-popup-image {
    width: 100%;
    height: auto;
    display: block;
}

.uffizio-video-popup-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uffizio-video-popup-play-icon i {
    font-size: 60px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.uffizio-video-popup-play-icon svg {
    width: 60px;
    height: 60px;
    fill: #fff;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.uffizio-video-popup-wrapper:hover .uffizio-video-popup-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Simple Modal for Iframe */
.uffizio-video-popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.uffizio-video-popup-modal.show {
    display: flex;
}

.uffizio-video-popup-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background-color: #000;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.uffizio-video-popup-modal-content-body {
    width: 100%;
}

.uffizio-video-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.uffizio-video-popup-modal-content iframe {
    width: 100%;
    height: 500px;
    /* Default height, can be responsive */
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .uffizio-video-popup-modal-content iframe {
        height: 300px;
    }
}