.img-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 20px;
    max-width: unset;
    justify-content: space-evenly;
}
.img-container h1 {
    width: 100%;
}
.img-card {
    max-width: 800px;
}
.img-card img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
}
.img-card p {
    margin-bottom: 20px;
    margin-top: 0;
    text-align: center;
}

@media only screen and (max-width: 1100px) {
    .img-card {
        max-width: 95%;
    
    }
}


.progress-container {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    text-align: center;
    /* font-family: Arial, sans-serif; */
}

.progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar-fill {
    height: 20px;
    width: 0%;
    background-color: #4caf50;
    text-align: center;
    line-height: 20px;
    color: white;
    border-radius: 5px;
}

.progress-text {
    font-size: 16px;
    color: #333;
}


/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%; /* Adjusted to leave space for caption */
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
}
.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 40px; /* Increased font size */
    transition: 0.6s ease;
    user-select: none;
    z-index: 10;
}
.prev {
    left: 20px; /* Add some space from the edge */
}
.next {
    right: 20px; /* Add some space from the edge */
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8); /* Darker on hover for more contrast */
}
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: auto;
    padding-top: 20px; /* Add padding at the top */
}



/* Back Button */
#back-outer {
    padding: 5px 40px;
}
#back-inner {
    border-radius: 10px;
    border: 2px solid var(--cBorder);
    /* width: 30%; */
    min-width: 300px;
    text-align: center;
    font-size: 1.2em;
    color: #3a4b35;
    font-weight: bold;
    background-color: var(--cLightBackground);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
#back-inner a {
    display: block;
    padding: 8px 10px;
    font-style: oblique;
}
#back-inner:hover {
    background-color: #d9d9d2;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4);
}

#btn-inner {
    display: inline-block;
    border-radius: 10px;
    border: 2px solid var(--cBorder);
    width: 30%;
    min-width: 300px;
    text-align: center;
    font-size: 1.2em;
    color: #3a4b35;
    font-weight: bold;
    background-color: var(--cLightBackground);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
#btn-inner a {
    display: block;
    padding: 8px 10px;
    font-style: oblique;
}
#btn-inner:hover {
    background-color: #d9d9d2;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4);
}