/* SLC Church Notices */

#slc-cn-wrap * ,
#slc-cn-wrap *::before,
#slc-cn-wrap *::after { box-sizing: border-box; }

#slc-cn-wrap {
    max-width: 1100px;
    margin: 0 auto;
    font-family: inherit;
}

.slc-cn-loading,
.slc-cn-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 1.05em;
}

.slc-cn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

#slc-cn-wrap[data-columns="2"] .slc-cn-grid { grid-template-columns: repeat(2, 1fr); }
#slc-cn-wrap[data-columns="4"] .slc-cn-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .slc-cn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .slc-cn-grid { grid-template-columns: 1fr; }
}

.slc-cn-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.slc-cn-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

.slc-cn-card-media {
    aspect-ratio: 3 / 4;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slc-cn-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
}

.slc-cn-pdf-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    color: #8b1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
}
.slc-cn-pdf-icon { font-size: 2.5em; }

.slc-cn-card-info {
    padding: 14px 16px 18px;
}

.slc-cn-card-title {
    margin: 0 0 8px;
    font-size: 1.05em;
    font-weight: 700;
    color: #1a1a1a;
}

.slc-cn-card-meta {
    margin: 0;
    font-size: 0.85em;
    color: #555;
    line-height: 1.6;
}
.slc-cn-card-meta span {
    display: block;
}
.slc-cn-meta-date {
    color: #8b1a1a;
    font-weight: 600;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.slc-cn-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.slc-cn-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.slc-cn-lightbox-close {
    position: absolute;
    top: 18px;
    right: 28px;
    color: #fff;
    font-size: 2.2em;
    line-height: 1;
    cursor: pointer;
    font-weight: 300;
}
