.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 101dvw;
    height: 101dvh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4), 
        rgba(0, 0, 0, 0.4)
    ) ;
    backdrop-filter: blur(19.3px);
    z-index: 1;
    display: none;

    justify-content: center;
    align-items: center;
}

.modal-container {
    overflow: hidden;
    display: flex;
    justify-content: left;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0px 30px;
}

#iframe-image {
    display: none;
    height: auto;
    z-index: 2;
    border-radius: 2dvw;
    position: relative;
    img {
        width: 100%;
        height: auto;
        max-height: 80dvh;
        max-width: 70dvw;
        object-fit: cover;
        border-radius: 2dvw;
    }
}

#iframe-text {
    display: none;
    border: 2px solid #B8BEC733;
    border-radius: 2dvw;
    backdrop-filter: blur(30px);
    background-color: rgba(34, 42, 61, 0.2);
    height: 80dvh;
    width: 48dvh;
    margin-left: 6dvw;
    color: white;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;

    .text-container {
        box-sizing: border-box;
        padding-left: 30px;
        padding-right: 10px;
        padding-top: 30px;
        padding-bottom: 5px;
        height: 80%;
        line-height: 21.78px;
        overflow-y: hidden;
        h1 {
            font-weight: 500;
            font-size: 1.8rem;
            margin: 0px;
            line-height: 36.31px;
        }
        h2 {
            font-weight: 500;
            font-size: 1rem;
            margin: 6px 0px 0px 0px;
            line-height: 24px;
        }
        p {
            font-weight: 400;
        }

        .inner-text-container {
            width: 100%;
            height: 100%;
            padding-right: 20px;
            overflow-y: auto;
            box-sizing: border-box;

        }
        .inner-text-container::-webkit-scrollbar {
        width: 10px;
        }

        .inner-text-container::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .inner-text-container::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.4); /* Light-colored scrollbar thumb with transparency */
            border-radius: 4px; /* Rounded edges for the thumb */
        }

        .inner-text-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.7); /* Slightly less transparent on hover */
        }
    }

    .button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 20%;
        background-color: rgba(27, 33, 47, 0.2);
        padding: 0px 30px;
        backdrop-filter: blur(30px);
        border-bottom-left-radius: 2dvw;
        border-bottom-right-radius: 2dvw;
        gap: 1rem;
        color: white;
        font-size: 0.8rem;
        line-height: 19.36px;

        a {
            background-color: #FFFFFF33;
            color: white;
            border-radius: 2dvw;
            width: 8rem;
            padding: 13px 0px;
            border: none;
            cursor: pointer;
            text-align: center;
            text-decoration: none;
        }
        a:hover {
            background-color: #FFFFFF55;
        }
    }
}

#iframe-video {
    display: none;
    position: relative;
    min-height: 65dvh;
    max-height: 90dvh;
    width: 65dvw;
    border-radius: 2dvw;
    overflow: hidden;
    video {
        border-radius: 2dvw;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

#iframe-riasec {
    display: none;
    height: 75vh;
    width: auto;
    aspect-ratio: 16 / 9;
    background-color: white;
    border-radius: 1dvw;
    position: relative;

    iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 1dvw;
    }
}

#closeModalButton {
    position: absolute;
    top: 2%;
    right: 1%;
    border-radius: 50%;
    color: white;
    font-size: larger;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    height: 3dvw;
    width: 3dvw;
    font-size: 1.5dvw;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    z-index: 3;
}
