﻿/* Ensure the modal covers 50% of the viewport width and height on larger devices */
.modal-dialog-centered {
    max-width: none;
    width: 50vw;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make the modal content fit the modal dimensions */
.modal-content {
/*    width: 100%;
    height: 100%;*/
    display: flex;
    flex-direction: column;
}

.modal-body {
    padding: 0;
    flex: 1;
    display: flex;
}

.main-content {
    width: 100%;
    height: 100%;
}

.img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #b2fcff;
}

/* Adjust modal dimensions and centering for smaller devices */
@media (max-width: 768px) {
    .modal-dialog-centered {
        width: auto;
        /*height: 60vh;*/
    }
}

@media (max-width: 576px) {
    .modal-dialog-centered {
        width: auto;
     /*   height: 70vh;*/
    }
}
