/* =============================================
 * Volunteer Photo Gallery (v2)
 * ============================================= */

.volunteer-photo-gallery {
    margin-top: 2rem;
}

.volunteer-photo-gallery h3 {
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.volunteer-photo-gallery .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.photo-item {
    margin: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-item .photo-thumb {
    width: 100%;
    height: auto;
    display: block;
}

.photo-item .photo-caption {
    padding: 0.5rem 0.6rem 0.2rem;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

.photo-item .photo-citation {
    padding: 0 0.6rem 0.6rem;
    margin: 0;
    font-size: 0.75em;
    color: #777;
    line-height: 1.3;
}

/* =============================================
 * Historical Events Timeline (v2)
 * ============================================= */

.volunteer-events-timeline {
    margin-top: 2rem;
}

.volunteer-events-timeline h3 {
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5em;
    margin-bottom: 0.75em;
}

.volunteer-events-timeline .events-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.volunteer-events-timeline .event-item {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}

.volunteer-events-timeline .event-date {
    font-weight: 600;
    color: #555;
}

.volunteer-events-timeline .event-role,
.event-participants .participant-role {
    color: #888;
    font-size: 0.9em;
}

/* =============================================
 * Event Participants (v2)
 * ============================================= */

.event-participants {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.event-participants h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.event-participants .participants-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    column-count: 2;
}

@media (max-width: 600px) {
    .event-participants .participants-list {
        column-count: 1;
    }
}

.event-participants .participants-list li {
    margin-bottom: 0.3em;
}

/* ── Gallery additions: count line + click-to-full link ───────────── */
.volunteer-photo-gallery .photo-gallery-count {
    margin: 0 0 1rem;
    font-size: 0.9em;
    color: #666;
}

.photo-item > a {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.photo-item > a .photo-thumb {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.photo-item > a:hover .photo-thumb {
    transform: scale(1.03);
    opacity: 0.92;
}


/* =============================================
 * Dark-mode awareness (2026-10-01) — photo gallery + events timeline
 * ============================================= */
[data-theme="dark"] .volunteer-photo-gallery h3,
[data-theme="dark"] .volunteer-events-timeline h3,
[data-theme="dark"] .event-participants h3 {
    color: var(--fg) !important;
    border-bottom-color: var(--line) !important;
}
[data-theme="dark"] .photo-item {
    background: var(--surface) !important;
    border-color: var(--line) !important;
}
[data-theme="dark"] .photo-item .photo-caption {
    color: var(--fg) !important;
}
[data-theme="dark"] .photo-item .photo-citation,
[data-theme="dark"] .volunteer-photo-gallery .photo-gallery-count,
[data-theme="dark"] .volunteer-events-timeline .event-date,
[data-theme="dark"] .event-participants .participant-role {
    color: var(--muted) !important;
}
[data-theme="dark"] .volunteer-events-timeline .event-item {
    border-bottom-color: var(--line) !important;
}
[data-theme="dark"] .event-participants {
    background: var(--surface) !important;
    border-color: var(--line) !important;
}
