/*
@page-gallery.php 图片展示页面样式分离
原本内联于page-gallery.php，包含灯箱、图片卡片、动画等样式。
详细注释每一部分，便于维护和定位。
*/

.gallery-full-page {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.gallery-full-page .creative-gallery-item {
    height: 320px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-full-page .creative-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.gallery-full-page .creative-gallery-caption {
    transform: translateY(0);
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    transition: opacity 0.3s ease;
}
.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}
.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}
.lightbox-close:hover {
    color: #ff5555;
    transform: scale(1.2);
}
.lightbox-caption {
    text-align: center;
    padding: 10px;
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    font-size: 16px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 992px) {
    .gallery-full-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .gallery-full-page .creative-gallery-item {
        height: 280px;
    }
}
@media (max-width: 768px) {
    .gallery-full-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-full-page .creative-gallery-item {
        height: 220px;
    }
    .lightbox-caption {
        font-size: 14px;
        padding: 8px;
    }
}
@media (max-width: 480px) {
    .gallery-full-page {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .gallery-full-page .creative-gallery-item {
        height: 240px;
    }
    .lightbox-caption {
        font-size: 12px;
        padding: 5px;
    }
}
