/* ============================================================
   Pride Donations — single event page extras
   - Past-event banner (top of the_content)
   - Photo gallery grid (bottom of the_content)
   ============================================================ */

/* ---- Past banner --------------------------------------------------- */

.pdon-past-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 0 0 24px 0;
    background: linear-gradient(135deg, rgba(115, 41, 130, 0.10) 0%, rgba(115, 41, 130, 0.04) 100%);
    border-left: 4px solid #732982;
    border-radius: 8px;
    color: #1f0a29;
    font-family: inherit;
}

.pdon-past-banner__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(115, 41, 130, 0.15);
    color: #732982;
}

.pdon-past-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.pdon-past-banner__text strong {
    font-size: 15px;
    color: #1f0a29 !important;
    font-weight: 700;
}

.pdon-past-banner__text span {
    font-size: 13px;
    color: #555 !important;
}

/* ---- Gallery ------------------------------------------------------- */

.pdon-event-gallery {
    margin: 36px 0 8px 0;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.pdon-event-gallery__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1f0a29 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.pdon-event-gallery__heading svg {
    color: #732982;
    flex: 0 0 auto;
}

/*
 * Single-row horizontal carousel.
 *
 * Switched from auto-fill grid because grids with N % cols != 0 leave an
 * orphaned last row (one lonely image). Flex + scroll-snap handles any
 * count cleanly: few photos sit flush left with no scrollbar; many photos
 * scroll horizontally with snap-to-photo behavior.
 *
 * Touch swipe works natively; the thin aubergine scrollbar is the visual
 * "there's more to the right" affordance on desktop.
 */
.pdon-event-gallery__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(115, 41, 130, 0.5) transparent;
}

.pdon-event-gallery__grid::-webkit-scrollbar {
    height: 6px;
}
.pdon-event-gallery__grid::-webkit-scrollbar-track {
    background: transparent;
}
.pdon-event-gallery__grid::-webkit-scrollbar-thumb {
    background: rgba(115, 41, 130, 0.4);
    border-radius: 3px;
}
.pdon-event-gallery__grid::-webkit-scrollbar-thumb:hover {
    background: rgba(115, 41, 130, 0.7);
}

.pdon-event-gallery__item {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 180px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, filter 0.2s ease;
    scroll-snap-align: start;
}

.pdon-event-gallery__item:hover,
.pdon-event-gallery__item:focus-visible {
    box-shadow: 0 4px 14px rgba(115, 41, 130, 0.25);
    filter: brightness(1.05);
    outline: none;
}

.pdon-event-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

@media (max-width: 600px) {
    .pdon-event-gallery__item {
        width: 150px;
    }
    .pdon-event-gallery__grid {
        gap: 6px;
    }

    .pdon-past-banner {
        padding: 12px 14px;
        gap: 10px;
    }

    .pdon-past-banner__icon {
        width: 30px;
        height: 30px;
    }
}
