/* THEKPS STEP 12X — Professional Historical Gallery */
.kps-gallery-main-hero{position:relative;overflow:hidden;padding:76px 0 64px;background:linear-gradient(135deg,#0d3157 0%,#124d84 55%,#0d6b78 100%);color:#fff}
.kps-gallery-main-hero:before,.kps-gallery-main-hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.07)}
.kps-gallery-main-hero:before{width:420px;height:420px;right:-120px;top:-180px}.kps-gallery-main-hero:after{width:280px;height:280px;left:-100px;bottom:-170px}
.kps-gallery-kicker{font-size:12px;font-weight:900;letter-spacing:.18em;opacity:.78;margin-bottom:10px}.kps-gallery-main-hero h1{font-size:clamp(38px,6vw,68px);line-height:1.06;margin:0 0 14px}.kps-gallery-main-hero p{max-width:720px;font-size:18px;line-height:1.75;margin:0;opacity:.92}
.kps-gallery-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.kps-gallery-stats>div{min-width:125px;padding:13px 16px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.09);backdrop-filter:blur(10px);border-radius:14px}.kps-gallery-stats strong{display:block;font-size:25px}.kps-gallery-stats span{font-size:11px;opacity:.8}
.kps-gallery-filter-section{background:#f6f8fb;border-bottom:1px solid #e7edf4;padding:24px 0}.kps-gallery-filter{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(130px,.65fr)) auto auto;gap:9px;align-items:center}.kps-gallery-filter input,.kps-gallery-filter select{width:100%;min-height:44px;border:1px solid #d7e0ea;border-radius:10px;background:#fff;padding:9px 11px;color:#294158}.kps-gallery-filter button,.kps-gallery-filter>a{min-height:44px;border:0;border-radius:10px;padding:10px 16px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.kps-gallery-filter button{background:#173f6c;color:#fff}.kps-gallery-filter>a{background:#fff;border:1px solid #d7e0ea;color:#52677c}.kps-gallery-search{position:relative}.kps-gallery-search span{position:absolute;left:12px;top:8px;font-size:22px;color:#8292a3}.kps-gallery-search input{padding-left:38px}
.kps-gallery-year-strip{display:flex;gap:12px;align-items:flex-start;margin-top:16px}.kps-gallery-year-strip>span{white-space:nowrap;color:#6b7c8f;font-size:12px;font-weight:800;padding-top:8px}.kps-gallery-year-strip>div{display:flex;gap:6px;overflow:auto;padding-bottom:3px;scrollbar-width:thin}.kps-gallery-year-strip a{flex:0 0 auto;text-decoration:none;border:1px solid #d8e1eb;background:#fff;color:#425a70;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}.kps-gallery-year-strip a.active{background:#173f6c;border-color:#173f6c;color:#fff}
.kps-gallery-featured-section{background:#fff}.kps-gallery-all-section{background:#f8fafc}.kps-gallery-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:22px}.kps-gallery-section-head span{font-size:10px;letter-spacing:.14em;font-weight:900;color:#b76c27}.kps-gallery-section-head h2{font-size:clamp(26px,4vw,38px);margin:3px 0 0;color:#183754}.kps-gallery-section-head>strong{color:#718194;font-size:12px}
.kps-gallery-featured-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.kps-gallery-featured-card,.kps-gallery-album-card{text-decoration:none;color:inherit;background:#fff;border:1px solid #e3eaf2;border-radius:18px;overflow:hidden;box-shadow:0 8px 28px rgba(34,63,91,.06);transition:transform .18s ease,box-shadow .18s ease}.kps-gallery-featured-card:hover,.kps-gallery-album-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(34,63,91,.12)}
.kps-gallery-featured-image{height:240px;position:relative;background:#dfe9f3;overflow:hidden}.kps-gallery-featured-image img,.kps-gallery-album-cover img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.kps-gallery-featured-card:hover img,.kps-gallery-album-card:hover img{transform:scale(1.035)}.kps-gallery-featured-image>div,.kps-gallery-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#e5edf5,#f7f9fb);font-weight:900;color:#173f6c;font-size:30px}.kps-gallery-featured-image>span,.kps-gallery-photo-count{position:absolute;right:10px;bottom:10px;background:rgba(13,37,61,.86);color:#fff;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800}.kps-gallery-featured-copy{padding:15px}.kps-gallery-featured-copy h3{font-size:18px;margin:7px 0 0;color:#183754}
.kps-gallery-album-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.kps-gallery-album-cover{height:225px;position:relative;overflow:hidden;background:#eef3f8}.kps-gallery-star{position:absolute;left:10px;top:10px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#fff6d7;color:#c18100;font-style:normal;box-shadow:0 5px 15px #0001}.kps-gallery-album-copy{padding:16px}.kps-gallery-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.kps-gallery-meta b,.kps-gallery-meta span{font-size:10px;font-weight:800;border-radius:999px;padding:5px 8px}.kps-gallery-meta b{background:#eaf3ff;color:#175a9a}.kps-gallery-meta span{background:#f1f4f7;color:#647589}.kps-gallery-album-copy h3{font-size:18px;line-height:1.35;color:#173754;margin:10px 0 7px}.kps-gallery-album-copy p{font-size:12px;line-height:1.65;color:#718093;margin:0 0 12px}.kps-gallery-view-link{font-size:11px;font-weight:900;color:#1a5f9d}
.kps-gallery-empty{padding:40px 20px;text-align:center;border:1px dashed #ccd9e6;background:#fff;border-radius:16px;color:#718093}
.kps-gallery-album-hero{padding:50px 0 40px;background:linear-gradient(135deg,#112f4c,#194f7e);color:#fff}.kps-gallery-back{display:inline-block;color:#dcecff;text-decoration:none;font-size:12px;font-weight:800;margin-bottom:17px}.kps-gallery-hero-badges{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.kps-gallery-hero-badges span{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.09);border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800}.kps-gallery-album-hero h1{font-size:clamp(30px,5vw,52px);line-height:1.15;margin:0 0 10px}.kps-gallery-album-hero p{max-width:800px;line-height:1.8;opacity:.9}.kps-gallery-album-summary{display:flex;gap:8px;align-items:center;margin-top:17px}.kps-gallery-album-summary strong{font-size:22px}.kps-gallery-album-summary span,.kps-gallery-album-summary time{font-size:11px;opacity:.8}.kps-gallery-album-summary i{width:4px;height:4px;border-radius:50%;background:#fff;opacity:.5}
.kps-gallery-album-section{background:#f7f9fc}.kps-gallery-photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.kps-gallery-photo{position:relative;display:block;width:100%;aspect-ratio:4/3;border:0;border-radius:12px;overflow:hidden;padding:0;background:#e9eef4;cursor:zoom-in}.kps-gallery-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}.kps-gallery-photo:hover img{transform:scale(1.04)}.kps-gallery-photo-hover{position:absolute;inset:auto 9px 9px 9px;padding:7px 8px;border-radius:8px;background:rgba(13,35,56,.78);color:#fff;font-size:9px;font-weight:800;opacity:0;transform:translateY(5px);transition:.2s}.kps-gallery-photo:hover .kps-gallery-photo-hover{opacity:1;transform:none}
.kps-gallery-lightbox[hidden]{display:none!important}.kps-gallery-lightbox{position:fixed;inset:0;z-index:99999}.kps-gallery-lightbox-backdrop{position:absolute;inset:0;background:rgba(5,15,26,.94)}.kps-gallery-lightbox-dialog{position:relative;z-index:2;width:100%;height:100%;display:grid;place-items:center;padding:58px 72px 34px}.kps-gallery-lightbox-dialog figure{margin:0;max-width:min(1200px,100%);max-height:100%;display:flex;flex-direction:column;align-items:center}.kps-gallery-lightbox-dialog figure img{max-width:100%;max-height:calc(100vh - 145px);object-fit:contain;border-radius:5px;box-shadow:0 20px 70px #0008}.kps-gallery-lightbox-dialog figcaption{color:#dce6ef;font-size:12px;line-height:1.6;margin-top:10px;text-align:center;min-height:18px}.kps-gallery-lightbox-top{position:absolute;top:12px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;color:#fff}.kps-gallery-lightbox-top>div{display:flex;gap:7px}.kps-gallery-lightbox-top button,.kps-gallery-lightbox-top a{border:1px solid #ffffff33;background:#ffffff12;color:#fff;text-decoration:none;border-radius:8px;padding:7px 10px;font-size:11px;cursor:pointer}.kps-gallery-lightbox-top button:last-child{font-size:22px;padding:1px 10px}.kps-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:1px solid #ffffff2f;background:#ffffff12;color:#fff;font-size:35px;line-height:1;cursor:pointer}.kps-gallery-nav.prev{left:16px}.kps-gallery-nav.next{right:16px}
.public-urdu .kps-gallery-main-hero,.public-urdu .kps-gallery-album-copy,.public-urdu .kps-gallery-album-hero,.public-urdu .kps-gallery-featured-copy{font-family:"Noto Nastaliq Urdu",serif}.public-urdu .kps-gallery-search span{left:auto;right:12px}.public-urdu .kps-gallery-search input{padding-left:11px;padding-right:38px}
@media(max-width:980px){.kps-gallery-filter{grid-template-columns:1fr 1fr 1fr}.kps-gallery-search{grid-column:1/-1}.kps-gallery-featured-grid,.kps-gallery-album-grid{grid-template-columns:repeat(2,1fr)}.kps-gallery-photo-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.kps-gallery-main-hero{padding:50px 0 42px}.kps-gallery-main-hero p{font-size:15px}.kps-gallery-filter{grid-template-columns:1fr 1fr}.kps-gallery-search{grid-column:1/-1}.kps-gallery-filter select:last-of-type{grid-column:1/-1}.kps-gallery-year-strip{display:block}.kps-gallery-year-strip>span{display:block;margin-bottom:7px}.kps-gallery-featured-grid,.kps-gallery-album-grid{grid-template-columns:1fr}.kps-gallery-featured-image,.kps-gallery-album-cover{height:225px}.kps-gallery-photo-grid{grid-template-columns:repeat(2,1fr);gap:7px}.kps-gallery-photo{border-radius:9px}.kps-gallery-lightbox-dialog{padding:52px 8px 25px}.kps-gallery-nav{width:38px;height:38px;background:#0007}.kps-gallery-nav.prev{left:5px}.kps-gallery-nav.next{right:5px}.kps-gallery-lightbox-dialog figure img{max-height:calc(100vh - 125px)}.kps-gallery-section-head{align-items:flex-start}}


/* STEP 12AB — Gallery social sharing */
.kps-gallery-share-row{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:18px;
}
.kps-share-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:7px 11px;
    border:1px solid rgba(255,255,255,.28);
    border-radius:9px;
    background:rgba(255,255,255,.1);
    color:#fff;
    text-decoration:none;
    font:inherit;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
}
.kps-share-btn:hover{
    background:rgba(255,255,255,.18);
}
.kps-share-btn.whatsapp{
    background:#168b55;
    border-color:#168b55;
}
.kps-share-btn.facebook{
    background:#245d9b;
    border-color:#245d9b;
}
.kps-gallery-lightbox-share{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    justify-content:flex-end;
}
.kps-gallery-lightbox-share>a,
.kps-gallery-lightbox-share>button{
    min-height:31px;
}
@media(max-width:640px){
    .kps-gallery-share-row .kps-share-btn{
        flex:1 1 calc(50% - 7px);
    }
    .kps-gallery-lightbox-top{
        align-items:flex-start;
    }
    .kps-gallery-lightbox-share{
        max-width:85%;
    }
    .kps-gallery-lightbox-share>a,
    .kps-gallery-lightbox-share>button{
        padding:6px 7px;
        font-size:9px;
    }
}
