/**
 * 갤러리 뷰 모자이크 타일 (smpark·noir 등에서 로드)
 * — .post-card--gallery-mosaic 는 app.js / app_noir.js 가 갤러리 모드일 때만 부여
 */
#posts-screen #posts-list.posts-list.gallery-style {
    grid-auto-flow: dense;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 3px !important;
}

#posts-screen #posts-list.posts-list.gallery-style .post-card.post-card--gallery-mosaic {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 12px;
}

#posts-screen #posts-list.posts-list.gallery-style .post-card.post-card--gallery-mosaic .post-image {
    margin: 0;
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 4 / 5;
    border-radius: 0;
}

#posts-screen #posts-list.posts-list.gallery-style .post-card.post-card--gallery-mosaic .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

#posts-screen #posts-list.posts-list.gallery-style .post-card.post-card--gallery-mosaic .post-content-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 10px 9px;
    box-sizing: border-box;
    background: linear-gradient(
        to top,
        rgba(6, 4, 8, 0.94) 0%,
        rgba(10, 8, 12, 0.55) 42%,
        transparent 72%
    );
    z-index: 2;
}

#posts-screen #posts-list.posts-list.gallery-style .post-card.post-card--gallery-mosaic .post-content-wrapper h3 {
    margin: 0 0 6px;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f5ebe3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

#posts-screen #posts-list.posts-list.gallery-style .post-card.post-card--gallery-mosaic .post-meta {
    margin: 0;
    padding: 0;
    font-size: 0.68rem;
    line-height: 1.45;
    color: rgba(230, 220, 210, 0.92);
    gap: 5px 8px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

#posts-screen #posts-list.posts-list.gallery-style .post-card.post-card--gallery-mosaic .meeting-info-summary {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    #posts-screen #posts-list.posts-list.gallery-style .post-card.post-card--gallery-mosaic .post-content-wrapper {
        opacity: 0;
        transition: opacity 0.22s ease;
        pointer-events: none;
    }

    #posts-screen #posts-list.posts-list.gallery-style .post-card.post-card--gallery-mosaic:hover .post-content-wrapper {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 767px) {
    #posts-screen #posts-list.posts-list.gallery-style {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 3px !important;
        grid-auto-flow: dense !important;
    }
}

[data-density="compact"] #posts-screen #posts-list.posts-list.gallery-style {
    gap: 3px !important;
}

body.force-mobile-layout #posts-screen #posts-list.posts-list.gallery-style {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    grid-auto-flow: dense !important;
}
