.icon-with-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-with-image-modal-active {
    opacity: 1;
}

.icon-with-image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.icon-with-image-modal-dialog {
    position: relative;
    width: 80%;
    max-width: 900px;
    background-color: #000;
    z-index: 1;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.icon-with-image-modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}

.icon-with-image-modal-iframe-container {
    position: relative;
    width: 100%;
    /* Default 16:9 aspect ratio */
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: inherit;
}

.icon-with-image-modal-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* For responsive close button */
@media (max-width: 768px) {
    .icon-with-image-modal-close {
        top: -35px;
        right: 0;
    }
}
