.single-kp_project .post-content .gallery{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0 40px}
.single-kp_project .post-content .gallery figure.gallery-item{width:auto!important;max-width:none!important;margin:0!important;float:none!important;padding:0!important;text-align:left}
.single-kp_project .post-content .gallery .gallery-icon{overflow:hidden;border-radius:12px;background:#f0f3f6;aspect-ratio:4/3}
.single-kp_project .post-content .gallery .gallery-icon a{display:block;height:100%;cursor:zoom-in}
.single-kp_project .post-content .gallery .gallery-icon img{width:100%;height:100%;border:0!important;object-fit:cover;transition:transform .2s}
.single-kp_project .post-content .gallery a:hover img{transform:scale(1.035)}
.single-kp_project .post-content .gallery figcaption.gallery-caption{padding:7px 2px;font-size:.78rem;line-height:1.4;color:#52647a}
.kpgi-overlay{position:fixed;inset:0;z-index:99999;background:rgba(6,18,33,.95);display:none;align-items:center;justify-content:center;padding:24px 58px}
.kpgi-overlay.is-open{display:flex}
.kpgi-overlay img{max-width:min(100%,1500px);max-height:calc(100vh - 108px);width:auto;height:auto;object-fit:contain;border-radius:6px}
.kpgi-overlay button{position:absolute;border:1px solid rgba(255,255,255,.45);background:rgba(16,34,52,.86);color:#fff;cursor:pointer;border-radius:50%;width:44px;height:44px;font-size:27px;display:grid;place-items:center;line-height:1}
.kpgi-close{top:14px;right:20px}.kpgi-prev{left:8px;top:50%;transform:translateY(-50%)}.kpgi-next{right:8px;top:50%;transform:translateY(-50%)}
.kpgi-counter{position:absolute;color:#fff;bottom:15px;font-size:13px}.kpgi-caption{position:absolute;bottom:36px;text-align:center;color:#fff;font-size:13px;max-width:min(800px,88%)}
@media(max-width:800px){.single-kp_project .post-content .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.single-kp_project .post-content .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kpgi-overlay{padding:20px 40px}.kpgi-overlay button{width:36px;height:36px;font-size:24px}.kpgi-overlay img{max-height:calc(100vh - 125px)}}
