.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center; /* Center its children */
}

.modal-content {
    background-color: transparent;
    display: inline-block;
    margin-top: 10%;
    padding: 20px;
    border: none;
    width: 80%;
    max-width: 800px;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio for the iframe */
    border: none;
}

/* Update this CSS in your modal.css file */

/* Landscape Styles for Mobile Devices */
@media screen and (max-width: 480px) and (orientation: landscape) {
    body, html {
        height:100%;
        margin:0;
        overflow: hidden; /* Prevent scrolling */
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 50%;
        top: 50%;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.7);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background-color: transparent;
        display: inline-block;
        padding: 20px;
        border: none;
        max-width: 90%;
        width: 100%;
        max-height: 90vh;
        overflow: hidden;
        position: relative;
    }

    .modal-content iframe {
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;
        border: none;
        overflow: hidden;
    }
}
