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

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    /* Adjust this value based on your content size */
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Space between sections */
}

.modal-content .sections-container {
    display: flex;
    justify-content: space-between;
    /* Space out the sections */
    gap: 20px;
    /* Space between images */
}

.modal-content .section {
    flex: 1;
    /* Ensure sections take up equal space */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content .section img {
    width: 100%;
    height: auto;
    max-width: 100%;
    /* Ensure the image scales properly */
}

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

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