/**
 * Photosuite - 图片美化样式
 * 适配 Pelican 博客，为 Photos 分类文章提供美观的图片显示效果
 */

/* Photosuite 容器 */
.photosuite-item {
    margin: 2em 0;
    position: relative;
}

/* 图片样式 */
.photosuite-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    /* 确保圆角在过渡时保持稳定 */
    will-change: transform;
    backface-visibility: hidden;
}

.photosuite-item img:hover {
    transform: scale(1.005);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    /* 确保悬停时圆角保持不变 */
    border-radius: 8px;
}

/* 灯箱链接样式 */
.photosuite-item .glightbox {
    display: block;
    text-decoration: none;
    color: inherit;
    /* 确保链接也有圆角，避免圆角闪烁 */
    border-radius: 8px;
    overflow: hidden;
}

/* EXIF 信息样式 */
.photosuite-exif {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    margin-bottom: 0.5em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* 图片说明样式 */
.photosuite-caption {
    font-size: 0.9em;
    color: #888;
    text-align: center;
    margin-top: 0.8em;
    font-style: italic;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .photosuite-item {
        margin: 1.5em 0;
    }
    
    .photosuite-exif {
        font-size: 0.8em;
    }
    
    .photosuite-caption {
        font-size: 0.85em;
    }
}

/* 兼容现有图片结构 */
.entry-content > div[style*="margin-bottom"] {
    margin-bottom: 0 !important;
}

.entry-content > div[style*="margin-bottom"] img {
    margin-bottom: 0 !important;
}

/* Glightbox 描述区域 - 已隐藏 */
.gslide-description.description-bottom {
    display: none !important;
}

/* 深色模式支持（如果主题支持） */
@media (prefers-color-scheme: dark) {
    .photosuite-exif {
        color: #aaa;
    }
    
    .photosuite-caption {
        color: #bbb;
    }
    
    .photosuite-item img {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .photosuite-item img:hover {
        transform: scale(1.005);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
}
