.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

.modal-container.visible {
    visibility: visible;
    opacity: 1;
}

.modal-content-wrapper {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 98%; 
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.modal-left {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: all 0.3s ease;
}

.modal-left img,
.modal-left video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-right {
    flex: 1;
    background-color: #2a2a2a;
    color: white;
    overflow-y: scroll;
    padding: 20px;
    transition: all 0.3s ease;
}

.modal-right h3,
.modal-right p {
    word-break: break-word;
}

.modal-right::-webkit-scrollbar {
    width: 8px;
}
.modal-right::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}
.modal-right::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
.modal-right::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s ease;
}

.close-button:hover {
    transform: scale(1.1);
}

.modal-content-wrapper.no-description .modal-right {
    display: none;
}

.modal-content-wrapper.no-description .modal-left {
    flex: 1;
}

@media (max-width: 768px) {
    .modal-content-wrapper {
        flex-direction: column;
        width: 80%;
        height: 90vh;
        overflow-y: auto;
        margin: 0 5vw;
    }

    .modal-left,
    .modal-right {
        flex: 1;
        width: 100%;
    }

    .modal-right {
        padding: 5px 30px 5px 10px;
        word-break: break-word;
    }
}


@media screen and (max-width: 1081px) {
.close-button {
    font-size: 100px;
    }

    .modal-content-wrapper {
        /* width: 80%; */
        height: 70vh;
    }

}