.kul-temple-single {max-width:1000px;width:calc(100% - 40px);padding:32px 0 72px}
.kul-temple-breadcrumb {display:flex;align-items:center;gap:10px;margin-bottom:34px;color:var(--muted);font-size:12px}
.kul-temple-breadcrumb a:hover {color:var(--wine)}
.kul-temple-header {margin:0;padding:22px 28px;text-align:center;border-bottom:2px solid var(--wine)}
.kul-temple-header h1 {margin:0;color:var(--ink);font:normal clamp(25px,3.4vw,38px)/1.2 Georgia,serif;text-wrap:balance}
.kul-temple-sheet {border:1px solid var(--line);background:var(--wash);box-shadow:0 14px 40px #10182018}
.kul-temple-hero {margin:0;aspect-ratio:16/9;overflow:hidden;background:#1b2530;display:grid;place-items:center}
.kul-temple-hero-image {display:block;width:100%;height:100%;min-height:0;margin:0;object-fit:cover;object-position:50% 15%}
.kul-temple-hero--small {padding:22px;aspect-ratio:auto;height:220px}
.kul-temple-hero--small .kul-temple-hero-image {width:auto;max-width:100%;height:auto}
.kul-temple-body {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
.kul-temple-facts,.kul-temple-history {min-width:0;padding:clamp(22px,3vw,36px)}
.kul-temple-history {border-left:1px solid var(--line)}
.kul-temple-facts dl {margin:0}
.kul-temple-fact+.kul-temple-fact {margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.kul-temple-fact dt {margin-bottom:6px;color:var(--muted);font-size:10px;letter-spacing:.09em;text-transform:uppercase}
.kul-temple-fact dd {margin:0;color:var(--ink);font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.kul-temple-content {font-size:16px;line-height:1.75;overflow-wrap:anywhere}
.kul-temple-content>:first-child {margin-top:0}
.kul-temple-content>:last-child {margin-bottom:0}
.kul-temple-content img {max-width:100%;height:auto}
.kul-temple-gallery {margin-top:42px}
.kul-temple-gallery-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.kul-temple-gallery-grid figure {margin:0;min-width:0}
.kul-temple-photo-placeholder div {display:grid;place-items:center;aspect-ratio:4/3;border:1px solid var(--line);background:var(--wash);color:var(--wine);font:normal 24px/1.2 Georgia,serif}
.kul-temple-gallery-grid a {display:block;overflow:hidden;border:1px solid var(--line)}
.kul-temple-gallery-grid img {display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .3s}
.kul-temple-gallery-grid a:hover img {transform:scale(1.045)}
.kul-temple-gallery-grid a:focus-visible {outline:2px solid var(--wine);outline-offset:4px}
.kul-temple-gallery-grid figcaption {margin-top:8px;font-size:12px;color:var(--muted);line-height:1.5}
.kul-temple-lightbox {width:min(1100px,calc(100vw - 32px));max-width:none;max-height:94vh;box-sizing:border-box;padding:48px 50px 22px;border:1px solid #d7bc8380;background:#1b2530;color:#f2eadd}
.kul-temple-lightbox::backdrop {background:#0e1720e8}
.kul-temple-lightbox figure {margin:0;text-align:center}
.kul-temple-lightbox img {display:block;width:auto;height:auto;max-width:100%;max-height:72vh;margin:auto;object-fit:contain}
.kul-temple-lightbox figcaption {margin-top:12px;font-size:13px}
.kul-temple-lightbox button {position:absolute;background:transparent;border:0;color:#f2eadd;padding:6px;min-width:40px;min-height:40px;cursor:pointer;font-size:28px}
.kul-temple-lightbox button:hover {color:#d7bc83}
.kul-photo-close {right:8px;top:3px}.kul-photo-prev {left:3px;top:45%}.kul-photo-next {right:3px;top:45%}
@media(max-width:700px){.kul-temple-body{grid-template-columns:1fr}.kul-temple-history{border-left:0;border-top:1px solid var(--line)}.kul-temple-hero-image{max-height:none}.kul-temple-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kul-temple-lightbox{padding:48px 38px 20px}}
@media(prefers-reduced-motion:reduce){.kul-temple-gallery-grid img{transition:none}}


/* Compact, consistent photo previews in all news galleries. */
.single-post .entry-content .kul-news-gallery {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 30px 0 !important;
    padding: 0;
    clear: both;
}
.single-post .entry-content .kul-news-gallery > figure,
.single-post .entry-content .kul-news-gallery .gallery-item {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    float: none;
}
.single-post .entry-content .kul-news-gallery a {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1b2530;
    border: 1px solid #586775;
    cursor: zoom-in;
}
.single-post .entry-content .kul-news-gallery img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 !important;
    border: 0;
    transition: transform .2s ease;
}
.single-post .entry-content .kul-news-gallery a:hover { border-color: #d4bd83; }
.single-post .entry-content .kul-news-gallery a:hover img { transform: scale(1.025); }
.single-post .entry-content .kul-news-gallery a:focus-visible { outline: 2px solid #d4bd83; outline-offset: 4px; }
.single-post .entry-content .kul-news-gallery figcaption,
.single-post .entry-content .kul-news-gallery .gallery-caption,
.single-post .entry-content .kul-news-gallery .lightbox-trigger,
.single-post .entry-content .kul-news-gallery > br { display: none !important; }
#kul-news-gallery-dialog {
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    padding: 50px 58px 22px;
    margin: auto;
    border: 1px solid #d4bd8377;
    border-radius: 3px;
    color: #f2eadd;
    background: #1b2530;
    overflow: auto;
    box-shadow: 0 24px 80px #0008;
}
#kul-news-gallery-dialog::backdrop { background: #101820ed; }
#kul-news-gallery-dialog figure { margin: 0; text-align: center; }
#kul-news-gallery-dialog .kul-news-photo-stage { height: min(66vh, 760px); height: min(66dvh, 760px); min-height: 0; display: grid; place-items: center; }
#kul-news-gallery-dialog img { display: block; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
#kul-news-gallery-dialog figcaption { margin: 16px 0 0; color: #e0e5e9; font: 15px/1.5 Arial, sans-serif; }
#kul-news-gallery-dialog .kul-news-photo-count { margin: 10px 0 0; text-align: center; color: #d4bd83; font: 13px/1.5 Arial, sans-serif; }
#kul-news-gallery-dialog button { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #586775; border-radius: 50%; background: #26343f; color: #f2eadd; font: 32px/1 Arial, sans-serif; cursor: pointer; }
#kul-news-gallery-dialog button:hover { border-color: #d4bd83; color: #d4bd83; }
#kul-news-gallery-dialog button:focus-visible { outline: 2px solid #d4bd83; outline-offset: 3px; }
#kul-news-gallery-dialog button[hidden] { display: none; }
#kul-news-gallery-dialog .kul-news-photo-close { top: 8px; right: 8px; width: 34px; height: 34px; font-size: 26px; }
#kul-news-gallery-dialog .kul-news-photo-prev { left: 8px; top: 43%; }
#kul-news-gallery-dialog .kul-news-photo-next { right: 8px; top: 43%; }
@media (max-width: 640px) {
    .single-post .entry-content .kul-news-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    #kul-news-gallery-dialog { width: calc(100vw - 16px); padding: 48px 14px 20px; }
    #kul-news-gallery-dialog .kul-news-photo-stage { height: 57vh; height: 57dvh; }
    #kul-news-gallery-dialog .kul-news-photo-prev,
    #kul-news-gallery-dialog .kul-news-photo-next { top: auto; bottom: 12px; width: 36px; height: 36px; }
    #kul-news-gallery-dialog figcaption { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .single-post .entry-content .kul-news-gallery img { transition: none; }
}
