/* =====================================================================
   FEATURED DEVOTEE  -  day-card photo block (slideshow + lightbox)
   ---------------------------------------------------------------------
   Matches the existing #day-events card language (.event-item's 11px
   radius / translucent glass fill) rather than inventing a new style.
   Slide box is deliberately compact (not full card width) so 206x206
   source photos are not stretched into visible pixelation.
   ===================================================================== */

.featured-devotee-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    padding: 12px;

    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    border: 1.25px solid rgba(255, 255, 255, 0.12);
}

.featured-devotee-name {
    font-size: 13px;
    font-weight: 600;
    color: #f1f3f5;
    text-align: center;
}

.featured-devotee-slideshow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    max-width: 240px;
}

.featured-devotee-slide-button {
    display: block;
    width: 220px;

    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;

    /* prevents the browser's own scroll/select gesture from fighting the
       swipe handler while still allowing vertical page scroll */
    touch-action: pan-y;
}

.featured-devotee-slide-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.featured-devotee-slide-button:active .featured-devotee-slide-image {
    opacity: 0.88;
}

.featured-devotee-arrow {
    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    color: #f1f3f5;
    font-size: 17px;
    line-height: 1;

    cursor: pointer;
}

.featured-devotee-arrow:active {
    background: rgba(255, 255, 255, 0.16);
}

.featured-devotee-counter {
    font-size: 11.5px;
    color: #9aa3af;
}


/* ---- lightbox (single-instance modal, matches app.js buildModal()) ---- */

.featured-devotee-lightbox-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.featured-devotee-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.featured-devotee-lightbox-close {
    position: absolute;
    top: 18px;
    left: 18px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: none;
    background: rgba(24, 29, 40, 0.65);
    color: #f5f7fa;
    font-size: 18px;

    cursor: pointer;
}


:root[data-theme="light"] .featured-devotee-block {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .featured-devotee-name {
    color: #1b2129;
}

:root[data-theme="light"] .featured-devotee-arrow {
    background: rgba(0, 0, 0, 0.06);
    color: #1b2129;
}

:root[data-theme="light"] .featured-devotee-arrow:active {
    background: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .featured-devotee-counter {
    color: #5b6673;
}

:root[data-theme="light"] .featured-devotee-slide-image,
:root[data-theme="light"] .featured-devotee-lightbox-image {
    background: rgba(0, 0, 0, 0.04);
}
