/* Small interaction layer replacing legacy WordPress/plug-in JavaScript. */
.kkcc-gallery {
    display: block !important;
    margin: 2rem auto;
}

.kkcc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.kkcc-gallery-grid .fg-noscript-item {
    margin: 0;
    aspect-ratio: 1;
    overflow: hidden;
}

.kkcc-gallery-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kkcc-gallery-grid a {
    cursor: default;
}

.kkcc-gallery-more {
    display: block;
    margin: 1.5rem auto 0;
    padding: .7rem 1.15rem;
    border: 1px solid currentColor;
    border-radius: 2px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.kkcc-gallery-more:hover,
.kkcc-gallery-more:focus-visible {
    background: #222;
    border-color: #222;
    color: #fff;
}

#english-tab .kkcc-hin-chang-si-image-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
    margin: 20px auto;
}

#english-tab .kkcc-hin-chang-si-image-row img,
#english-tab .kkcc-hin-chang-si-image-single img {
    display: block;
    width: 100%;
    height: auto;
}

#english-tab .kkcc-hin-chang-si-image-single {
    max-width: 480px;
    margin: 20px auto;
}

#english-tab .kkcc-hin-chang-si-faq h3 {
    margin: 12px 0 26px;
    padding: 8px 0 8px 18px;
    border-left: 5px solid #b48748;
    color: #2f2419;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .01em;
    text-transform: none !important;
}

#english-tab .kkcc-hin-chang-si-faq h4 {
    margin: 30px 0 14px;
    padding: 0 0 8px;
    border-bottom: 2px solid #d5bd93;
    color: #3b2b1e;
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: .025em;
    text-transform: none !important;
}

/* Current online topo guides within the FAQ use the same restrained heading
   hierarchy as the Hin Chang Si section, with a compact responsive image grid. */
#english-tab .kkcc-topo-faq h3 {
    margin: 12px 0 26px;
    padding: 8px 0 8px 18px;
    border-left: 5px solid #b48748;
    color: #2f2419;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .01em;
    text-transform: none !important;
}

#english-tab .kkcc-topo-faq h4 {
    margin: 30px 0 14px;
    padding: 0 0 8px;
    border-bottom: 2px solid #d5bd93;
    color: #3b2b1e;
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: .025em;
    text-transform: none !important;
}

#english-tab .kkcc-topo-faq .kkcc-topo-image-intro,
#english-tab .kkcc-topo-faq .kkcc-topo-image-single {
    max-width: 360px;
    margin: 22px auto;
}

#english-tab .kkcc-topo-faq .kkcc-topo-image-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 640px;
    margin: 22px auto;
}

#english-tab .kkcc-topo-faq figure {
    margin: 0;
}

#english-tab .kkcc-topo-faq img {
    display: block;
    width: 100%;
    height: auto;
}

#english-tab .kkcc-topo-faq figcaption {
    margin-top: 7px;
    color: #5e5041;
    font-size: .9rem;
    text-align: center;
}

/* KKBF 2027 is a document-style festival guide: the layout deliberately
   favours a narrow reading measure, distinct sections and restrained imagery. */
.kkcc-kkbf-2027 {
    max-width: 920px;
    margin: 46px auto 70px;
    padding: 0 24px;
    color: #30271f;
}

.kkcc-kkbf-2027-hero {
    margin: 0 auto 28px;
    max-width: 760px;
    text-align: center;
}

.kkcc-kkbf-2027-eyebrow {
    margin: 0 0 8px;
    color: #98743e;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.kkcc-kkbf-2027 h1 {
    margin: 0;
    color: #2f2419;
    font-size: clamp(2.2rem, 6vw, 3.65rem);
    font-weight: 800;
    line-height: 1.08;
}

.kkcc-kkbf-2027-date {
    margin: 12px 0 0;
    color: #675948;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
}

.kkcc-kkbf-2027 > section {
    margin: 38px 0;
}

.kkcc-kkbf-2027 h2 {
    margin: 0 0 16px;
    padding: 0 0 9px;
    border-bottom: 2px solid #d5bd93;
    color: #3b2b1e;
    font-size: clamp(1.35rem, 3vw, 1.72rem);
    font-weight: 800;
    line-height: 1.25;
}

.kkcc-kkbf-2027 h3 {
    margin: 22px 0 14px;
    padding-left: 13px;
    border-left: 4px solid #b48748;
    color: #3b2b1e;
    font-size: 1.12rem;
    font-weight: 800;
}

.kkcc-kkbf-2027 p,
.kkcc-kkbf-2027 li,
.kkcc-kkbf-2027 dd {
    line-height: 1.72;
}

.kkcc-kkbf-2027-image {
    max-width: 760px;
    margin: 32px auto;
}

.kkcc-kkbf-2027-image-hero {
    max-width: 820px;
}

.kkcc-kkbf-2027-image-closing {
    max-width: 860px;
    margin-top: 42px;
}

.kkcc-kkbf-2027-image img {
    display: block;
    width: 100%;
    height: auto;
}

.kkcc-kkbf-2027-schedule {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.kkcc-kkbf-2027-schedule h3 {
    margin-top: 0;
}

.kkcc-kkbf-2027-schedule dl {
    margin: 0;
}

.kkcc-kkbf-2027-schedule dt {
    float: left;
    clear: left;
    width: 78px;
    color: #876738;
    font-weight: 800;
}

.kkcc-kkbf-2027-schedule dd {
    margin: 0 0 13px 92px;
}

.kkcc-kkbf-2027-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
}

.kkcc-kkbf-2027-details > div {
    min-width: 0;
}

.kkcc-kkbf-2027-details ul:not(.kkcc-kkbf-2027-fees) {
    padding-left: 20px;
}

.kkcc-kkbf-2027-fees {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kkcc-kkbf-2027-fees li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid #e5d6bd;
}

.kkcc-kkbf-2027-fees span {
    white-space: nowrap;
    color: #876738;
    font-weight: 800;
}

.kkcc-kkbf-2027-contact {
    padding: 24px 0 0;
    border-top: 1px solid #e5d6bd;
}

@media (max-width: 620px) {
    #english-tab .kkcc-hin-chang-si-image-row {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    #english-tab .kkcc-topo-faq .kkcc-topo-image-row {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .kkcc-kkbf-2027 {
        margin-top: 30px;
        padding: 0 18px;
    }

    .kkcc-kkbf-2027-schedule,
    .kkcc-kkbf-2027-details {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
