/* images.css - 图片页面专用样式 */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    cursor: pointer;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    max-width: 80%;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.modal-image-container {
    max-width: 100%;
    max-height: 70vh;
}

.modal-close {
    position: absolute;
    top: 20px; 
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.modal-video-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
}

#prevImage { 
    left: 10px; 
}

#nextImage { 
    right: 10px; 
}

.modal-image-info {
    margin-top: 12px;
}