/* Shared gallery: blog and single projects. */
/* Parent project article already uses a 30px gap: 30 + 12 = 42px below text. */
.pk-programs.pk-programs-single .pk-post-gallery{margin-top:12px;min-width:0}
.pk-programs.pk-programs-single .pk-post-gallery-title{font-family:var(--pk-font-heading,Barlow Condensed,sans-serif);font-size:42px;line-height:1;font-weight:700;letter-spacing:-.5px;text-transform:uppercase;margin:0 0 20px;color:var(--pk-dark,#313432)}
.pk-programs.pk-programs-single .pk-post-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0}
.pk-programs.pk-programs-single .pk-post-gallery-thumb{position:relative;display:block;width:100%;min-width:0;aspect-ratio:4/3;border:0;border-radius:3px;padding:0;margin:0;overflow:hidden;background:#dfe9e7;cursor:pointer}
.pk-programs.pk-programs-single .pk-post-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.pk-programs.pk-programs-single .pk-post-gallery-thumb:hover img{transform:scale(1.045)}
.pk-programs.pk-programs-single .pk-post-gallery-thumb:focus-visible{outline:2px solid var(--pk-accent,#da6f4d);outline-offset:2px}
.pk-post-gallery-lightbox{position:fixed;inset:0;margin:auto;padding:0;border:0;background:transparent;color:#fff;width:min(96vw,1500px);max-width:none;max-height:96vh;overflow:visible}
.pk-post-gallery-lightbox::backdrop{background:rgba(0,0,0,.92)}
.pk-post-gallery-lightbox-frame{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:min(90vh,960px)}
.pk-post-gallery-full{display:block;max-width:calc(100% - 100px);max-height:calc(100% - 30px);height:auto;width:auto;object-fit:contain}
.pk-post-gallery-close,.pk-post-gallery-prev,.pk-post-gallery-next{position:absolute;z-index:3;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#ffffffea;color:#252525;cursor:pointer;padding:0}
.pk-post-gallery-close{top:8px;right:8px}
.pk-post-gallery-prev{left:8px;top:50%;transform:translateY(-50%)}
.pk-post-gallery-next{right:8px;top:50%;transform:translateY(-50%)}
.pk-post-gallery-close svg,.pk-post-gallery-prev svg,.pk-post-gallery-next svg{width:22px;height:22px;display:block;pointer-events:none}
.pk-post-gallery-prev svg{transform:rotate(180deg)}
.pk-post-gallery-counter{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#fff;font-size:14px;line-height:24px}
.pk-post-gallery-lightbox [hidden]{display:none!important}
.pk-post-gallery-lightbox button:focus-visible{outline:3px solid var(--pk-accent,#da6f4d);outline-offset:3px}
@media(max-width:991px){.pk-programs.pk-programs-single .pk-post-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:479px){.pk-programs.pk-programs-single .pk-post-gallery-grid{gap:9px}.pk-post-gallery-full{max-width:calc(100% - 65px)}.pk-post-gallery-close,.pk-post-gallery-prev,.pk-post-gallery-next{width:34px;height:34px}.pk-post-gallery-close svg,.pk-post-gallery-prev svg,.pk-post-gallery-next svg{width:18px;height:18px}}
@media(prefers-reduced-motion:reduce){.pk-programs.pk-programs-single .pk-post-gallery-thumb img{transition:none}.pk-programs.pk-programs-single .pk-post-gallery-thumb:hover img{transform:none}}


/* v0.9.78 — same gallery heading on blog and project pages. */
.pk-single-post-main .pk-post-gallery-title,
.pk-programs.pk-programs-single .pk-post-gallery-title{font-size:34px;font-weight:600;line-height:1.1}
