/* ── SMOS Event Gallery — Front-end Styles ── */

.smos-gallery-wrap { font-family: Georgia, 'Times New Roman', serif; color: #1a2a5e; }

/* ── Folder grid ── */
.smos-folders-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 1.25rem;
}
@media (max-width: 768px) { .smos-folders-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
@media (max-width: 480px) { .smos-folders-grid { grid-template-columns: 1fr 1fr; gap: .5rem; } }

.smos-folder-card {
    background: #fff;
    border: 1px solid #e0ddd5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
}
.smos-folder-card:hover, .smos-folder-card:focus {
    box-shadow: 0 4px 20px rgba(26,42,94,.14);
    transform: translateY(-3px);
    outline: none;
}
.smos-folder-cover {
    width: 100%; height: 160px;
    object-fit: cover; display: block;
}
.smos-folder-cover-placeholder {
    width: 100%; height: 160px;
    background: linear-gradient(135deg, #1a2a5e 0%, #2a3f8f 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
}
.smos-folder-cover-placeholder svg {
    width: 36px; height: 36px; stroke: rgba(255,255,255,.4);
}
.smos-folder-cover-placeholder span {
    font-size: 11px; color: rgba(255,255,255,.45);
    font-family: Arial, sans-serif;
}
.smos-folder-info { padding: 12px 14px 14px; }
.smos-folder-name { font-size: 14px; font-weight: 700; color: #1a2a5e; }
.smos-folder-meta {
    font-size: 11px; color: #888; margin-top: 3px;
    font-family: Arial, sans-serif;
}
.smos-badge {
    display: inline-block; margin-top: 6px;
    font-size: 10px; font-family: Arial, sans-serif;
    padding: 2px 10px; border-radius: 20px;
    background: #eef1fa; color: #1a2a5e;
    font-weight: 600; letter-spacing: .3px;
}
.smos-badge-cultural   { background: #fdf3dc; color: #7a5a00; }
.smos-badge-sports     { background: #eaf5ee; color: #1a6630; }
.smos-badge-national   { background: #fdeaea; color: #8b1a1a; }
.smos-badge-festival   { background: #fdf3dc; color: #7a5a00; }
.smos-badge-academic   { background: #eef1fa; color: #1a2a5e; }
.smos-badge-ceremony   { background: #f3eefa; color: #5a1a8b; }

/* ── Back button ── */
.smos-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid #c8a84b;
    color: #1a2a5e; font-size: 13px;
    font-family: Arial, sans-serif;
    padding: 6px 14px; border-radius: 4px;
    cursor: pointer; margin-bottom: 1.25rem;
    transition: background .15s;
}
.smos-back-btn:hover { background: #fdf3dc; }

.smos-event-title {
    font-size: 22px; font-weight: 700; color: #1a2a5e;
    border-left: 4px solid #c8a84b;
    padding-left: 12px; margin-bottom: 4px;
}
.smos-event-date {
    font-size: 12px; color: #888;
    font-family: Arial, sans-serif;
    padding-left: 16px; margin-bottom: 1.5rem;
}

/* ── Photos grid ── */
.smos-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
@media (max-width: 480px) { .smos-photos-grid { grid-template-columns: repeat(2,1fr); } }

.smos-photo-item {
    position: relative; overflow: hidden;
    border-radius: 6px; cursor: pointer;
    border: 1px solid #e0ddd5;
}
.smos-photo-item img {
    width: 100%; aspect-ratio: 4/3;
    object-fit: cover; display: block;
    transition: transform .3s;
}
.smos-photo-item:hover img { transform: scale(1.05); }
.smos-photo-overlay {
    position: absolute; inset: 0;
    background: rgba(26,42,94,0);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.smos-photo-item:hover .smos-photo-overlay { background: rgba(26,42,94,.28); }
.smos-photo-overlay svg {
    width: 28px; height: 28px; stroke: #fff;
    opacity: 0; transition: opacity .2s;
}
.smos-photo-item:hover .smos-photo-overlay svg { opacity: 1; }

/* ── Lightbox ── */
#smos-lightbox {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(10,15,40,.93);
    align-items: center; justify-content: center;
    flex-direction: column;
}
#smos-lightbox.smos-lb-active { display: flex; }
.smos-lb-content { display: flex; flex-direction: column; align-items: center; }
#smos-lb-img {
    max-width: 88vw; max-height: 80vh;
    object-fit: contain; border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0,0,0,.5);
}
#smos-lb-caption {
    color: rgba(255,255,255,.6); font-size: 13px;
    font-family: Arial, sans-serif;
    margin-top: 12px; text-align: center;
}
.smos-lb-close {
    position: fixed; top: 20px; right: 24px;
    background: none; border: none;
    color: #fff; font-size: 36px;
    cursor: pointer; opacity: .7; line-height: 1;
    transition: opacity .15s;
}
.smos-lb-close:hover { opacity: 1; }
.smos-lb-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12); border: none;
    color: #fff; font-size: 30px; cursor: pointer;
    padding: 10px 18px; border-radius: 4px;
    transition: background .15s;
}
.smos-lb-nav:hover { background: rgba(255,255,255,.24); }
.smos-lb-prev { left: 16px; }
.smos-lb-next { right: 16px; }

/* No events */
.smos-no-events { color: #888; font-size: 14px; padding: 2rem 0; }
