 /* Basic styling for modals */
 .modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* Responsive margin */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Default width for modal */
    max-width: 600px; /* Maximum width for larger screens */
    box-sizing: border-box; /* Ensure padding is included in width */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.highlight {
    cursor: pointer;
    /* border: 1px solid red; */
    /* padding: 3px; */
    color: red;
    font-weight: 700;
    
}

/* Responsive media queries */
@media (max-width: 600px) {
    .modal-content {
        width: 95%; /* Make modal wider for smaller screens */
        margin: 20% auto; /* Adjust margin on smaller screens */
    }

    iframe {
        width: 100%; /* Make YouTube iframe responsive */
        height: auto;
    }

    video {
        width: 100%; /* Make video responsive */
        height: auto;
    }

    img {
        width: 100%; /* Make images responsive */
        height: auto;
    }
}