.kfg24-gallery{margin-block:24px 0}
.kfg24-gallery figure{margin:0;min-width:0}
.kfg24-photo{display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f3f4f1;cursor:zoom-in;text-decoration:none}
.kfg24-photo img{display:block;max-width:100%;max-height:100%;width:100%!important;height:100%!important;object-fit:cover;object-position:center;animation:none;transform:none}
.kfg24-cover .kfg24-photo{height:clamp(300px,65vw,780px);max-height:80svh;min-height:240px}
.kfg24-gallery figcaption{font-size:14px;line-height:1.6;color:#5c635f;margin:10px 0 0;text-align:left;overflow-wrap:anywhere}
.kfg24-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 28px;margin-top:32px;align-items:start}
.kfg24-grid .kfg24-photo{height:clamp(260px,36vw,520px)}
.kfg24-photo:focus-visible,.kfg24-dialog button:focus-visible{outline:3px solid #799780;outline-offset:4px}
.kf-project-page .kf-related{max-width:1040px;margin-top:80px;padding-top:32px}
.kf-project-page .kf-related>h2{font-size:24px!important;line-height:1.3;font-weight:400;margin-bottom:28px;letter-spacing:-.025em}
.kf-project-page .kf-related .kf-project-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:20px!important}
.kf-project-page .kf-related .kf-project-card>a{display:block;overflow:hidden;aspect-ratio:16/10}
.kf-project-page .kf-related .kf-project-card img{display:block;width:100%!important;height:100%!important;object-fit:cover}
.kf-project-page .kf-related .kf-project-card>a:focus-visible{outline:3px solid #799780;outline-offset:4px}
.kf-project-page .kf-related .kf-project-card h3{font-size:15px!important;line-height:1.45!important;margin-top:12px}
.kf-project-page .kf-related .kf-project-card p{font-size:12px;line-height:1.5}
.kfg24-dialog{border:0;padding:48px 60px;background:#1119;color:#fff;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;overflow:hidden}
.kfg24-dialog::backdrop{background:#111e}
.kfg24-dialog[open]{display:flex;align-items:center;justify-content:center}
.kfg24-dialog figure{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.kfg24-dialog img{display:block;max-width:100%;max-height:calc(100% - 80px);width:auto;height:auto;object-fit:contain}
.kfg24-dialog figcaption{color:#fff;text-align:center;max-width:90ch;margin:0;max-height:64px;overflow:auto;pointer-events:auto}
.kfg24-dialog button{position:absolute;border:1px solid #ffffff60;background:#111b;color:#fff;width:42px;height:42px;font:inherit;font-size:24px;cursor:pointer;z-index:2}
.kfg24-close{top:14px;right:14px}.kfg24-prev{left:10px;top:50%}.kfg24-next{right:10px;top:50%}.kfg24-count{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);font-size:13px}
.kfg24-dialog button[hidden]{display:none}
@media(max-width:900px){.kf-project-page .kf-related .kf-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.kfg24-grid{grid-template-columns:minmax(0,1fr);gap:24px;margin-top:24px}.kfg24-grid .kfg24-photo{height:clamp(280px,100vw,480px)}.kf-project-page .kf-related{margin-top:56px;padding-top:24px}.kfg24-dialog{padding:56px 44px}.kfg24-dialog button{width:34px;height:38px}}
@media(max-width:420px){.kf-project-page .kf-related .kf-project-grid{grid-template-columns:minmax(0,1fr)!important}}
