/* --- Photography Page (Art Gallery) Exclusive Styles - Final Corrected Version --- */

body.photography-page {
    background-color: var(--card-bg-color);
}

[data-theme='dark'] body.photography-page {
    background-color: #111;
}

/* 1. 全屏画廊容器 */
.full-bleed-container {
    width: 100%;
    max-width: none;
    padding: 80px 2vw;
}

/* 2. 悬浮式标题 */
.gallery-hero {
    height: 50vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 22px;
    position: relative;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/gallery-hero-bg.jpg');
    background-size: cover;
    background-position: center;
}
.gallery-hero .headline {
    color: #fff;
    font-size: 48px;
}
.gallery-hero .subheadline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 22px;
}

/* 3. 瀑布流画廊 */
.photo-grid {
    margin-top: 0;
    column-count: 1;
    column-gap: 20px;
}

@media (min-width: 769px) {
    .photo-grid {
        column-count: 2;
    }
}
@media (min-width: 1200px) {
    .photo-grid {
        column-count: 3;
    }
}

.photo-item {
    margin-bottom: 20px;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    line-height: 0;
    
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

.photo-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.photo-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.4s ease;
}
.photo-item:hover img {
    transform: scale(1.03);
}
.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.photo-item:hover .photo-caption {
    opacity: 1;
    transform: translateY(0);
}
.photo-item.align-right img {
    object-position: 80% 50%;
}