/* Base styles for the modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
}

/* Modal Content */
.modal-content {
    margin: 5% auto; /* Centered with some margin */
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    background-color:  #1a1a1a;
    max-width: 90%; /* Responsive width */
    max-height: 90%; /* Responsive height */
    overflow: auto; /* Scroll if content overflows */
    position: relative; /* For positioning the close button */
}

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

.close:hover,
.close:focus {
    color: rgb(138, 12, 12);
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Images and Videos */
.modal-media {
    max-width: 100%; /* Ensure media fits within the modal */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center the media */
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .modal-content {
        width: 95%; /* Wider on small screens */
        padding: 15px; /* Adjust padding */
    }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
    .modal-content {
        width: 80%; /* Adjust width for medium screens */
        padding: 20px; /* Default padding */
    }
}

@media screen and (min-width: 901px) {
    .modal-content {
        width: 60%; /* Adjust width for larger screens */
        padding: 25px; /* Larger padding */
    }
}
