.single-tribe_events .tribe-events-event-image.teach-haiti-event-image-card {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 460px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(2, 59, 82, 0.14);
    background: #ffffff;
}

.single-tribe_events .tribe-events-event-image.teach-haiti-event-image-card img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
    transition: transform 280ms ease, filter 280ms ease;
}

.single-tribe_events .tribe-events-event-image.teach-haiti-event-image-card::after {
    content: "Click to enlarge";
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 51, 73, 0.86);
    color: #ffffff;
    font-family: "Mr Eaves Mod OT", Helvetica, Arial, Lucida, sans-serif;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 200ms ease, transform 200ms ease;
    pointer-events: none;
}

.single-tribe_events .tribe-events-event-image.teach-haiti-event-image-card:hover img,
.single-tribe_events .tribe-events-event-image.teach-haiti-event-image-card:focus-within img {
    transform: scale(1.015);
    filter: saturate(1.05);
}

.single-tribe_events .tribe-events-event-image.teach-haiti-event-image-card:hover::after,
.single-tribe_events .tribe-events-event-image.teach-haiti-event-image-card:focus-within::after {
    opacity: 1;
    transform: translateY(0);
}

.single-tribe_events .teach-haiti-event-image-link-wrap {
    margin: 14px 0 26px;
}

.single-tribe_events .teach-haiti-event-image-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 2px solid #68bfd0;
    border-radius: 999px;
    color: #003349;
    background: #ffffff;
    font-family: "Mr Eaves Mod OT", Helvetica, Arial, Lucida, sans-serif;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.single-tribe_events .teach-haiti-event-image-link::before {
    content: "\2197";
    font-size: 17px;
    line-height: 1;
}

.single-tribe_events .teach-haiti-event-image-link:hover,
.single-tribe_events .teach-haiti-event-image-link:focus {
    color: #ffffff;
    background: #68bfd0;
    transform: translateY(-1px);
}

.teach-haiti-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 26, 37, 0.78);
    backdrop-filter: blur(3px);
    transition: opacity 220ms ease;
}

.teach-haiti-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.teach-haiti-lightbox-open {
    overflow: hidden;
}

.teach-haiti-lightbox__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: 100%;
    transform: translateY(8px) scale(0.985);
    transition: transform 220ms ease;
}

.teach-haiti-lightbox.is-open .teach-haiti-lightbox__dialog {
    transform: translateY(0) scale(1);
}

.teach-haiti-lightbox__image {
    display: block;
    max-width: min(82vw, 620px);
    max-height: calc(100vh - 120px);
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.teach-haiti-lightbox__caption {
    margin: 12px auto 0;
    padding: 8px 14px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 51, 73, 0.78);
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}

.teach-haiti-lightbox__close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #003349;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

@media (max-width: 767px) {
    .single-tribe_events .tribe-events-event-image.teach-haiti-event-image-card {
        max-width: 100%;
    }

    .single-tribe_events .tribe-events-event-image.teach-haiti-event-image-card::after {
        opacity: 1;
        transform: none;
        font-size: 13px;
        padding: 7px 10px;
    }

    .single-tribe_events .teach-haiti-event-image-link {
        font-size: 16px;
    }

    .teach-haiti-lightbox {
        padding: 12px;
    }

    .teach-haiti-lightbox__image {
        max-width: 92vw;
        max-height: calc(100vh - 88px);
        border-radius: 8px;
    }
}
