/* styles.css */
/* body {
    font-family: Arial, sans-serif;
} */

#image-gallery {
    text-align: center;
    margin-top: 20px;
}

.gallery-container {
    display: inline-block;
    width: 100%;
    margin: 0 auto;
}

.image-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image-list img {
    /* width: 23%; */
    height: 200px;
    object-fit: cover;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-list img:hover {
    transform: scale(1.05);
}

.spe_pagination {
    margin-top: 20px;
    bottom: 0; /* 固定在父容器的底部 */
    width: 100%;
    background-color: #f1f1f1; 
    text-align: center; 
    padding: 10px 0; 
    box-shadow: 0 -1px 5px rgba(0,0,0,0.1); 
    z-index: 1000; /* 确保分页层在其他内容之上 */
}

.spe_pagination button {
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
}

.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;
    width: 60%;
    max-height: 700px;
    margin-top: 5%;
    /* max-width: 700px; */
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
/* styles.css (updates) */
.modal-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-buttons {
    margin-top: 10px;
}

.nav-buttons button {
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 5px;
}

.nav-buttons button:disabled {
    background-color: rgba(200, 200, 200, 0.7);
    cursor: not-allowed;
}