/* ===== 佳丽都图站样式：网格画廊 + 卡片 ===== */

/* 文章列表网格化 */
.wp-block-post-template,
.wp-block-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-block-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.wp-block-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.wp-block-post-featured-image {
    margin: 0;
    line-height: 0;
}

.wp-block-post-featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform .4s ease;
}

.wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.06);
}

.wp-block-post-title {
    font-size: 15px;
    line-height: 1.4;
    padding: 12px 14px 16px;
    margin: 0;
    font-weight: 600;
}

.wp-block-post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.wp-block-post-title a:hover {
    color: #c2185b;
}

/* 让特色图外的链接不触发灯箱时仍可点进文章 */
.wp-block-post-featured-image a {
    display: block;
    line-height: 0;
}

/* 灯箱 */
#jl-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: zoom-out;
    padding: 24px;
}

#jl-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .55);
}

/* 署名行样式 */
.photo-credit {
    font-size: 12px;
    color: #888;
    padding: 0 14px 14px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .wp-block-post-template,
    .wp-block-query .wp-block-post-template {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .wp-block-post-featured-image img {
        height: 200px;
    }
}
