    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Popup typography */
.j316-fast-popup h4 {
    margin: 0 0 12px;
    padding: 0;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: normal;
    line-height: 1.3;
    color: #F5F0E6;
}

.j316-fast-popup p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #F5F0E6;
}

.j316-fast-reference {
    margin: 15px 0 9px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.22);
    color: #D6BB83;
    font-size: 15px;
    font-weight: bold;
}

.j316-fast-popup .j316-fast-scripture {
    color: #E1E9E4;
    font-size: 13px;
    margin-bottom: 0;
}

/* First and last popup alignment */
.j316-fast-item:first-child .j316-fast-popup {
    left: 0;
    transform: translateY(-5px);
}

.j316-fast-item:first-child:hover .j316-fast-popup,
.j316-fast-item:first-child:focus-within .j316-fast-popup {
    transform: translateY(0);
}

.j316-fast-item:last-child .j316-fast-popup {
    left: auto;
    right: 0;
    transform: translateY(-5px);
}

.j316-fast-item:last-child:hover .j316-fast-popup,
.j316-fast-item:last-child:focus-within .j316-fast-popup {
    transform: translateY(0);
}

/* Responsive display */
@media (max-width: 760px) {
    .j316-fasting-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .j316-fast-item .j316-fast-popup {
        left: 0;
        right: auto;
        transform: translateY(-5px);
        max-width: min(310px, 82vw);
    }

    .j316-fast-item:nth-child(even) .j316-fast-popup {
        left: auto;
        right: 0;
    }

    .j316-fast-item:hover .j316-fast-popup,
    .j316-fast-item:focus-within .j316-fast-popup {
        transform: translateY(0);
    }
}

@media (max-width: 390px) {
    .j316-fasting-grid {
        grid-template-columns: 1fr;
    }

    .j316-fast-item .j316-fast-popup,
    .j316-fast-item:nth-child(even) .j316-fast-popup {
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
    }
}

/* ==========================================
   FASTING POPUP - CORRECT BACKGROUND AND TEXT
   Overrides Joomla/component color conflicts.
   ========================================== */

.j316-notes .j316-fast-popup {
    background: #193D35 !important;
    background-color: #193D35 !important;
    color: #F5F0E6 !important;
}

.j316-notes .j316-fast-popup h4,
.j316-notes .j316-fast-popup p {
    color: #F5F0E6 !important;
}

.j316-notes .j316-fast-popup .j316-fast-reference {
    color: #D6BB83 !important;
}

.j316-notes .j316-fast-popup .j316-fast-scripture {
    color: #E1E9E4 !important;
}

.j316-notes .j316-fast-popup::after {
    background: #193D35 !important;
}
