.impact-gallery-section{
    background:#f4f8fb;
}

.campaign-page-header{

    padding: 0px 0 180px !important;
    margin-bottom: 0px !important;

}
.impact-gallery-layout{
    display:grid;
    grid-template-columns:1.2fr .6fr .6fr;
    grid-auto-rows:220px;
    gap:24px;
}

.impact-gallery-card,
.album-card,
.album-show-image{
    position:relative;
    overflow:hidden;
    border-radius:22px;
    display:block;
    text-decoration:none;
    color:#fff;
    box-shadow:0 18px 45px rgba(15,39,68,.08);
}

.impact-gallery-card.large{
    grid-row:span 2;
}

.impact-gallery-card img,
.album-card img,
.album-show-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.35s ease;
}

.impact-gallery-card:hover img,
.album-card:hover img,
.album-show-image:hover img{
    transform:scale(1.06);
}

.impact-gallery-overlay,
.album-card-overlay,
.album-show-caption{
    position:absolute;
    inset:auto 0 0;
    padding:28px 24px;
    background:linear-gradient(to top, rgba(7,26,38,.92), rgba(7,26,38,0));
    color:#fff;
}

.impact-gallery-overlay h3,
.album-card-overlay h3,
.album-show-caption h3{
    font-size:20px;
    font-weight:900;
    margin:0 0 8px;
    color:#fff;
}

.impact-gallery-overlay p,
.album-card-overlay p,
.album-show-caption p{
    margin:0;
    font-weight:700;
    line-height:1.6;
    color:rgba(255,255,255,.92);
}

.album-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

.album-card{
    height:320px;
}

.album-show-header{
    max-width:850px;
    margin-bottom:30px;
}

.album-meta{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
}

.album-meta span{
    background:#e8f3f7;
    color:#0f477d;
    font-weight:800;
    padding:8px 14px;
    border-radius:999px;
}

.album-description{
    background:#fff;
    border-radius:24px;
    padding:34px;
    box-shadow:0 14px 40px rgba(15,39,68,.06);
}

.album-show-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.album-show-image{
    height:290px;
}

@media(max-width:991px){
    .impact-gallery-layout{
        display:flex;
        overflow-x:auto;
        scroll-snap-type:x mandatory;
        gap:14px;
        padding-bottom:8px;
        scrollbar-width:none;
    }

    .impact-gallery-layout::-webkit-scrollbar{
        display:none;
    }

    .impact-gallery-card,
    .impact-gallery-card.large{
        flex:0 0 82%;
        height:250px;
        grid-row:auto;
        scroll-snap-align:start;
    }

    .album-grid,
    .album-show-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .album-card,
    .album-show-image{
        height:260px;
    }

    .album-description{
        padding:22px;
        border-radius:18px;
    }
}



/* =========================================
   Album Meta Pin
========================================= */

.album-meta span{
    display:flex;
    align-items:center;
    gap:8px;
}

.album-meta span:last-child::before{
    content:"📍";
    font-size:14px;
}


/* =========================================
   Desktop Layout
========================================= */

@media(min-width:1200px){

    .more-albums-section{
        display:grid;
        grid-template-columns:280px 1fr;
        gap:30px;
        align-items:start;
    }

    .more-albums-section .main-title-big{
        margin-bottom:0;
    }

    .more-albums-grid{
        margin-top:0 !important;
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

}


/* More Albums: desktop beside title, mobile slider only */

@media(min-width:1200px){
 
    .more-albums-section .main-title-big{
        margin-top:10px;
        margin-bottom:0;
    }

    .more-albums-grid{
        margin-top:0 !important;
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:991px){

    .main-container, .navbar>.container-fluid {
        padding-left: 11px;
        padding-right: 10px;
    }
    /* خلي صور الألبوم الأساسي عادية تحت بعض */
    .album-show-grid{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:14px;
        overflow:visible !important;
    }

    .album-show-image{
        width:100%;
        min-width:0 !important;
        flex:none !important;
        height:260px;
    }

    /* فقط More Albums يكون سلايدر */
    .more-albums-grid{
        display:flex !important;
        flex-wrap:nowrap !important;
        overflow-x:auto !important;
        gap:14px;
        padding-bottom:10px;
        scroll-snap-type:x mandatory;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }

    .more-albums-grid::-webkit-scrollbar{
        display:none;
    }

    .more-albums-grid .album-card{
        flex:0 0 82%;
        min-width:82%;
        height:240px;
        scroll-snap-align:start;
    }
}

@media(min-width:1200px){

    .more-albums-section{
        display:flex;
        align-items:flex-start;
        gap:34px;
    }

    .more-albums-section .main-title-big{
        flex:0 0 230px;
        margin-top:14px;
        margin-bottom:0;
    }

    .more-albums-grid{
        flex:1;
        margin-top:0 !important;
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:22px;
    }

}



/* Album show page layout */

.album-page-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:54px;
    align-items:start;
}

.album-main-content{
    min-width:0;
}

.more-albums-sidebar{
    background:rgba(255,255,255,.35);
    padding:26px 22px;
    border-radius:0;
    position:sticky;
    top:120px;
}

.more-albums-sidebar .main-title-big{
    font-size:30px;
    margin-bottom:34px;
}

.more-albums-sidebar .main-title-big:after{
    width:52px;
    height:3px;
    bottom:-8px;
}

.more-albums-sidebar .more-albums-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:22px;
    margin-top:0 !important;
}

.more-albums-sidebar .album-card{
    height:230px;
    border-radius:18px;
}

.album-meta span{
    display:flex;
    align-items:center;
    gap:8px;
}

.album-meta span:last-child::before{
    content:"📍";
    font-size:14px;
}

/* Mobile */
@media(max-width:991.98px){

    .album-page-layout{
        display:block;
    }

    .more-albums-sidebar{
        margin-top:38px;
        padding:0;
        background:transparent;
        position:static;
    }

    .more-albums-sidebar .more-albums-grid{
        display:flex !important;
        flex-wrap:nowrap !important;
        overflow-x:auto !important;
        gap:14px;
        padding-bottom:12px;
        scroll-snap-type:x mandatory;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }

    .more-albums-sidebar .more-albums-grid::-webkit-scrollbar{
        display:none;
    }

    .more-albums-sidebar .album-card{
        flex:0 0 82%;
        min-width:82%;
        height:240px;
        scroll-snap-align:start;
    }

    .album-show-grid{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:14px;
        overflow:visible !important;
    }

    .album-show-image{
        width:100%;
        min-width:0 !important;
        flex:none !important;
        height:260px;
    }
}




.gallery-index-page{
    background:linear-gradient(180deg,#f4f8fb 0%,#ffffff 100%);
    padding:70px 0 90px;
}

.gallery-hero-box{
    max-width:920px;
    margin-bottom:38px;
}

.gallery-kicker{
    display:inline-flex;
    align-items:center;
    gap:9px;
    background:#e8f3f7;
    color:#0f477d;
    padding:9px 16px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
    margin-bottom:18px;
}

.gallery-hero-box h1{
    color:#0f477d;
    font-size:clamp(2rem,4vw,4.2rem);
    line-height:1.15;
    font-weight:950;
    max-width:850px;
    margin-bottom:18px;
}

.gallery-hero-box p{
    color:#436991;
    font-size:17px;
    line-height:2;
    max-width:760px;
}

.gallery-albums-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:310px;
    gap:22px;
}

.gallery-album-card{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:26px;
    color:#fff;
    text-decoration:none;
    background:#0f477d;
    min-height:310px;
}

.gallery-album-card.featured{
    grid-column:span 2;
    grid-row:span 2;
}

.gallery-album-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.45s ease;
}

.gallery-album-card:hover img{
    transform:scale(1.07);
}

.gallery-album-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:28px;
    background:
        linear-gradient(to top, rgba(7,26,38,.92), rgba(7,26,38,.18) 58%, rgba(7,26,38,.04));
}

.gallery-location{
    display:inline-flex;
    align-items:center;
    gap:7px;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.22);
    color:#fff;
    padding:7px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    margin-bottom:12px;
    backdrop-filter:blur(6px);
}

.gallery-album-overlay h3{
    color:#fff;
    font-size:24px;
    line-height:1.25;
    font-weight:950;
    margin:0 0 8px;
}

.gallery-album-overlay p{
    color:rgba(255,255,255,.9);
    line-height:1.7;
    margin:0;
    max-width:520px;
}

.gallery-open-btn{
    position:absolute;
    inset-inline-end:22px;
    top:22px;
    width:44px;
    height:44px;
    border-radius:50%;
    background:#fff;
    color:#0f477d;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transform:translateY(-8px);
    transition:.25s ease;
}

.gallery-album-card:hover .gallery-open-btn{
    opacity:1;
    transform:translateY(0);
}

.gallery-pagination-wrap{
    margin-top:45px;
}

.gallery-empty-box{
    background:#fff;
    border-radius:28px;
    padding:70px 30px;
    text-align:center;
    color:#0f477d;
}

.gallery-empty-box i{
    font-size:46px;
    margin-bottom:18px;
}

.gallery-empty-box h3{
    font-weight:900;
}

/* Tablet */
@media(max-width:1199.98px){
    .gallery-albums-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        grid-auto-rows:280px;
    }

    .gallery-album-card.featured{
        grid-column:span 2;
        grid-row:span 1;
    }
}

/* Mobile */
@media(max-width:767.98px){
    .gallery-index-page{
        padding:42px 0 65px;
    }

    .gallery-hero-box{
        margin-bottom:24px;
    }

    .gallery-hero-box h1{
        font-size:30px;
    }

    .gallery-hero-box p{
        font-size:15px;
        line-height:1.8;
    }

    .gallery-albums-grid{
        display:flex;
        overflow-x:auto;
        gap:16px;
        padding:6px 42px 16px 0;
        scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .gallery-albums-grid::-webkit-scrollbar{
        display:none;
    }

    .gallery-album-card,
    .gallery-album-card.featured{
        flex:0 0 84vw;
        min-width:84vw;
        height:360px;
        min-height:360px;
        grid-column:auto;
        grid-row:auto;
        scroll-snap-align:start;
        border-radius:22px;
    }

    .gallery-album-overlay{
        padding:22px;
    }

    .gallery-album-overlay h3{
        font-size:21px;
    }

    .gallery-album-overlay p{
        font-size:14px;
    }

    .gallery-open-btn{
        opacity:1;
        transform:none;
        width:40px;
        height:40px;
    }

    .gallery-index-page .main-container{
        position:relative;
    }

    .gallery-index-page .main-container::after{
        content:"→";
        position:absolute;
        right:4px;
        top:56%;
        width:34px;
        height:34px;
        border-radius:50%;
        background:#fff;
        color:#0f477d;
        display:flex;
        align-items:center;
        justify-content:center;
        font-weight:900;
        box-shadow:0 8px 20px rgba(0,0,0,.15);
        z-index:4;
        pointer-events:none;
    }

    html[dir="rtl"] .gallery-index-page .main-container::after{
        content:"←";
        right:auto;
        left:4px;
    }
}
