/* index.css */
body {
    background-color: #222222; /* 设置整个页面的背景颜色 */
    color: #999; /* 设置文本颜色 */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.work-area {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* 允许垂直滚动 */
    margin: 0;
    background-color: #222222; /* 确保工作区域背景颜色一致 */
}

.work-center {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background-color: #222222;
    color: #999;
    font-size: 20px;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
}

#gallery {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.image-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.delete-icon {
    cursor: pointer;
}

.image-item {
    width: 24%;
    height: 400px; /* 固定高度 */
    margin-bottom: 20px;
    background-color: #333;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-item img {
    max-width: 100%;
    max-height: 90%;
    display: block;
    margin: auto;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    padding-top: 20px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    max-height: 96%;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    max-height: 96%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px; /* 增大字体大小 */
    font-weight: bold;
    transition: 0.3s;
    padding: 10px; /* 增加填充 */
}

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

/* Navigation buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px; /* 增加填充 */
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px; /* 增大字体大小 */
    transition: 0.6s ease;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}