/* Kanmalai Trust gallery page */
.kt-gallery-page{background:#fff;color:#173c5b;font-family:Arial,Helvetica,sans-serif}
.kt-gallery-page *{box-sizing:border-box}
.kt-gallery-wrap{width:min(1160px,calc(100% - 48px));margin-inline:auto}
.kt-gallery-hero{position:relative;min-height:250px;display:flex;align-items:center;overflow:hidden;background:#073e70;background-image:linear-gradient(90deg,rgba(0,54,96,.97) 0%,rgba(0,65,112,.88) 34%,rgba(0,57,98,.28) 68%,rgba(0,38,68,.12) 100%),var(--gallery-hero);background-size:cover;background-position:center 43%;color:#fff}
.kt-gallery-hero-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,37,72,.12),transparent)}
.kt-gallery-hero-copy{position:relative;z-index:1;padding-top:36px;padding-bottom:36px}
.kt-gallery-kicker{display:block;color:#e3ed55;font-size:12px;font-weight:800;letter-spacing:2px;margin-bottom:8px}
.kt-gallery-hero h1{margin:0;color:#fff;font-size:clamp(42px,5.3vw,64px);line-height:1.03;font-weight:800;letter-spacing:-1.5px}
.kt-gallery-rule{width:182px;height:3px;margin:15px 0 10px;background:#c3df40;border-radius:2px}
.kt-gallery-hero p{margin:0;color:#fff;font-size:17px;line-height:1.55}
.kt-gallery-content{padding-top:28px;padding-bottom:36px}
.kt-gallery-filters{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 22px}
.kt-gallery-filters button{appearance:none;border:1px solid #dbe5ef;background:#fff;color:#164b78;border-radius:999px;padding:9px 19px;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer;transition:background .18s,color .18s,border-color .18s}
.kt-gallery-filters button:hover,.kt-gallery-filters button:focus-visible{border-color:#0b70b8;outline:none}
.kt-gallery-filters button.is-active{background:#086bb2;border-color:#086bb2;color:#fff;box-shadow:0 4px 10px rgba(0,95,163,.15)}
.kt-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 24px}
.kt-gallery-item{display:block;min-width:0;padding:0;border:0;background:transparent;text-align:left;color:#124b79;cursor:pointer}
.kt-gallery-item img{display:block;width:100%;height:178px;object-fit:cover;object-position:center;border-radius:8px;box-shadow:0 2px 8px rgba(13,45,70,.12);transition:transform .22s,box-shadow .22s}
.kt-gallery-item:hover img,.kt-gallery-item:focus-visible img{transform:translateY(-2px);box-shadow:0 8px 20px rgba(13,45,70,.2)}
.kt-gallery-item:focus-visible{outline:3px solid #6fae2e;outline-offset:4px;border-radius:8px}
.kt-gallery-item span{display:block;margin-top:8px;font-size:13px;line-height:1.4;font-weight:700}
.kt-gallery-cta{position:relative;overflow:hidden;background:linear-gradient(90deg,rgba(246,248,225,.95),rgba(239,247,251,.97)),url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=1400&q=75') center/cover}
.kt-gallery-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-top:31px;padding-bottom:31px}
.kt-gallery-cta small{color:#609f22;font-size:10px;font-weight:800;letter-spacing:1.5px}
.kt-gallery-cta h2{margin:5px 0 5px;color:#12395e;font-size:clamp(21px,2.7vw,30px);line-height:1.25}
.kt-gallery-cta p{margin:0;color:#244f70;font-size:14px;line-height:1.5}
.kt-gallery-cta-inner>a{flex:none;display:inline-flex;align-items:center;gap:18px;padding:14px 24px;background:#083c69;color:#fff;text-decoration:none;border-radius:999px;font-size:13px;font-weight:700;box-shadow:0 4px 12px rgba(0,43,82,.15)}
.kt-gallery-cta-inner>a:hover{background:#07528d}
.kt-gallery-lightbox{position:fixed;z-index:99999;inset:0;display:none;align-items:center;justify-content:center;padding:32px;background:rgba(5,17,27,.88);backdrop-filter:blur(5px)}
.kt-gallery-lightbox.is-open{display:flex}
body.kt-gallery-lock{overflow:hidden}
.kt-gallery-lightbox-card{position:relative;width:min(820px,calc(100vw - 120px));max-height:calc(100vh - 80px);padding:12px;background:#fff;border-radius:12px;box-shadow:0 22px 70px rgba(0,0,0,.4);overflow:auto}
.kt-gallery-lightbox-image{display:block;width:100%;height:min(54vh,520px);object-fit:contain;background:#f1f4f6;border-radius:6px}
.kt-gallery-lightbox-caption{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:11px 3px 8px;color:#133f64;font-size:13px}
.kt-gallery-lightbox-caption strong{font-size:14px}
.kt-gallery-lightbox-caption span{white-space:nowrap;font-weight:700}
.kt-gallery-thumbs{display:flex;justify-content:center;gap:8px;overflow-x:auto;padding:2px 0 3px}
.kt-gallery-thumb{flex:0 0 76px;width:76px;height:54px;padding:2px;border:2px solid transparent;border-radius:7px;background:#fff;cursor:pointer}
.kt-gallery-thumb.is-active{border-color:#0873bd}
.kt-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
.kt-gallery-close,.kt-gallery-prev,.kt-gallery-next{position:absolute;z-index:2;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#063c68;color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.25);line-height:1}
.kt-gallery-close{top:calc(50% - min(39vh,390px) - 15px);left:calc(50% + min(410px,42vw) - 13px);width:42px;height:42px;font-size:30px}
.kt-gallery-prev,.kt-gallery-next{top:50%;width:42px;height:42px;font-size:34px;transform:translateY(-50%)}
.kt-gallery-prev{left:max(18px,calc(50% - 470px))}
.kt-gallery-next{right:max(18px,calc(50% - 470px))}
.kt-gallery-close:hover,.kt-gallery-prev:hover,.kt-gallery-next:hover{background:#0873bd}
@media(max-width:900px){
 .kt-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .kt-gallery-item img{height:190px}
 .kt-gallery-hero{min-height:230px}
 .kt-gallery-lightbox-card{width:calc(100vw - 100px)}
 .kt-gallery-close{top:18px;right:18px;left:auto}
 .kt-gallery-prev{left:12px}.kt-gallery-next{right:12px}
}
@media(max-width:600px){
 .kt-gallery-wrap{width:calc(100% - 30px)}
 .kt-gallery-hero{min-height:240px;background-position:62% center}
 .kt-gallery-hero-copy{padding-top:32px;padding-bottom:32px}
 .kt-gallery-hero h1{font-size:44px}
 .kt-gallery-hero p{font-size:15px}
 .kt-gallery-desktop-break{display:none}
 .kt-gallery-content{padding-top:20px;padding-bottom:28px}
 .kt-gallery-filters{justify-content:flex-start;gap:7px;margin-bottom:18px}
 .kt-gallery-filters button{padding:8px 13px;font-size:11px}
 .kt-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
 .kt-gallery-item img{height:128px;border-radius:7px}
 .kt-gallery-item span{font-size:12px;margin-top:7px}
 .kt-gallery-cta-inner{align-items:flex-start;flex-direction:column;gap:16px;padding-top:25px;padding-bottom:25px}
 .kt-gallery-lightbox{padding:12px}
 .kt-gallery-lightbox-card{width:100%;max-height:calc(100vh - 80px);padding:8px}
 .kt-gallery-lightbox-image{height:48vh}
 .kt-gallery-close{top:12px;right:12px;width:38px;height:38px}
 .kt-gallery-prev,.kt-gallery-next{top:43%;width:36px;height:36px}
 .kt-gallery-prev{left:5px}.kt-gallery-next{right:5px}
 .kt-gallery-thumb{flex-basis:58px;width:58px;height:44px}
}
