/* =========================================================
   CEFC GALLERY PAGE — SAFE SEPARATION
   Loaded after style.css by gallery.php.
   Shared/mixed style.css rules used by other pages are untouched.
   ========================================================= */

.gallery-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.gallery-grid img,
.gallery-item {
    display:block;
    width:100%;
    height:160px;
    object-fit:cover;
    border:1px solid rgba(8,46,130,.10);
    border-radius:18px;
    background:#eef2f8;
    box-shadow:0 10px 26px rgba(7,26,66,.14);
    cursor:pointer;
    transition:transform .35s ease, filter .35s ease;
}

.gallery-grid img:hover,
.gallery-item:hover {
    transform:scale(1.025);
    box-shadow:0 15px 34px rgba(7,26,66,.20);
}

.event-gallery-block .gallery-extra {
    display:none;
}

.gallery-more-btn {
    display:block;
    margin:18px auto 8px;
    padding:12px 24px;
    border:0;
    border-radius:999px;
    background:#082d70;
    color:#fff;
    font:inherit;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(8,45,112,.16);
}

#cefc-lightbox {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    z-index:9999;
    align-items:center;
    justify-content:center;
    gap:20px;
}

#cefc-lightbox img {
    max-width:85vw;
    max-height:85vh;
}

#cefc-lightbox button {
    font-size:28px;
    background:none;
    color:var(--white);
    border:0;
    cursor:pointer;
}

#cefc-lightbox-count {
    position:absolute;
    bottom:30px;
    color:var(--white);
}

#gallery-photo-thanks {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    width:100%;
    margin:30px 0 0;
    padding:18px 24px;
    background:#fff8e8;
    border:1px solid rgba(7,26,66,.08);
    border-top:3px solid #f4a900;
    border-radius:18px;
    box-shadow:0 10px 28px rgba(7,26,66,.08);
    color:#071a42;
}

#gallery-photo-thanks .gallery-thanks-message {
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
    flex:1 1 auto;
}

#gallery-photo-thanks .gallery-thanks-camera {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 52px;
    width:52px;
    height:52px;
    border-radius:50%;
    background:#071a42;
    color:#ffd12b;
    font-size:24px;
}

#gallery-photo-thanks h3 {
    margin:0 0 4px;
    color:#071a42;
    font-size:18px;
    line-height:1.2;
}

#gallery-photo-thanks p {
    margin:0;
    max-width:720px;
    color:#4d5a72;
    line-height:1.4;
}

#gallery-photo-thanks .gallery-thanks-people {
    display:flex;
    align-items:center;
    gap:14px;
    flex:0 0 auto;
}

#gallery-photo-thanks .gallery-thanks-person {
    display:flex;
    align-items:center;
    gap:9px;
    white-space:nowrap;
}

#gallery-photo-thanks .gallery-thanks-person img {
    display:block;
    width:auto;
    height:75px;
    max-width:none;
    object-fit:cover;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(7,26,66,.14);
}

#gallery-photo-thanks .gallery-thanks-person strong {
    color:#071a42;
    font-size:15px;
}

#gallery-photo-thanks .gallery-thanks-amp {
    color:#071a42;
    font-weight:900;
}

@media(max-width:900px) {
    #gallery-photo-thanks {
        flex-direction:column;
        align-items:flex-start;
        gap:16px;
    }

    #gallery-photo-thanks .gallery-thanks-people {
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }
}

@media(max-width:560px) {
    #gallery-photo-thanks { padding:16px; }
    #gallery-photo-thanks .gallery-thanks-message { align-items:flex-start; }
    #gallery-photo-thanks .gallery-thanks-camera {
        flex-basis:44px;
        width:44px;
        height:44px;
        font-size:20px;
    }
    #gallery-photo-thanks .gallery-thanks-people {
        justify-content:flex-start;
        gap:9px;
    }
    #gallery-photo-thanks .gallery-thanks-person { gap:6px; }
    #gallery-photo-thanks .gallery-thanks-person img { height:65px; }
    #gallery-photo-thanks .gallery-thanks-person strong { font-size:14px; }
}

@media(prefers-reduced-motion:reduce) {
    .gallery-grid img,
    .gallery-item {
        transition:none;
    }
    .gallery-grid img:hover,
    .gallery-item:hover {
        transform:none;
    }
}
