.heritage-archive {
    --heritage-gold: var(--site-color-bad32ce559, #a66b22);
    --heritage-green: var(--site-color-9ad76de025, #153b24);
    max-width: 1360px;
    margin: 16px auto;
    padding: clamp(14px, 3vw, 36px);
    border: 1px solid var(--site-color-3070ad22eb, #c6a16a);
    border-radius: 18px;
    background: linear-gradient(to bottom, transparent, var(--site-color-c92793168f, #fff6db) 280px),
        url('/media/heritage-plaster.svg') left top / 384px 384px repeat-x,
        var(--site-color-cdb2fd7771, #fff3d1);
    color: var(--heritage-green);
}
.heritage-heading {
    padding: 12px clamp(0px, 12vw, 170px) 22px;
    text-align: center;
    background: url('/media/heritage-chhatri.webp') left top / clamp(105px, 14vw, 200px) auto no-repeat,
                url('/media/heritage-jali.webp') right top / clamp(105px, 14vw, 200px) auto no-repeat;
}
.heritage-heading h1, .heritage-copy h2 {
    font-family: "KCSoni Digits",Georgia, serif;
    line-height: 1.1;
    margin: 0;
}
.heritage-heading h1 { font-size: clamp(30px, 4.6vw, 62px); }
.heritage-heading p { max-width: 56ch; margin: 8px auto; }
.heritage-heading .heritage-subtitle {
    font: italic 700 clamp(20px, 2.6vw, 34px)/1.15 "KCSoni Digits",Georgia, serif;
    color: var(--site-color-179edca5d8, #733b19);
}
.heritage-search { margin: 16px auto 0; max-width: 420px; }
.heritage-search input { width: 100%; border-radius: 999px; }
.heritage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.heritage-location {
    padding: 8px;
    border: 1px solid var(--site-color-3070ad22eb, #c6a16a);
    border-radius: 12px;
    background: var(--site-color-02dca80a77, #fff4d4);
    overflow: hidden;
}
.heritage-location img {
    display: block;
    width: 100%;
    height: clamp(307.5px, 34.5vw, 480px);
    object-fit: cover;
    border-radius: 9px 3px;
}
.heritage-featured { grid-column: 1 / -1; }
.heritage-featured:has(img):not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: center;
}
.heritage-featured img { height: clamp(250px, 28vw, 370px); }
.heritage-copy { padding: clamp(12px, 2vw, 24px); }
.heritage-copy h2 { font-size: clamp(22px, 2.5vw, 34px); }
.heritage-featured h2 { font-size: clamp(26px, 3vw, 42px); }
.heritage-copy p { margin: 10px 0 14px; white-space: pre-line; }
.heritage-copy a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--heritage-gold);
    border-radius: 999px;
    background: var(--heritage-green);
    color: var(--site-color-27cf2069e3, #fff8df);
    text-decoration: none;
}
.heritage-empty { display: none; grid-column: 1 / -1; text-align: center; }
.heritage-grid:not(:has(.heritage-location:not([hidden]))) .heritage-empty { display: block; }
@media (max-width: 700px) {
    .heritage-heading { padding-inline: 0; background: none; }
    .heritage-grid, .heritage-featured:has(img):not([hidden]) { grid-template-columns: 1fr; }
}
.heritage-search {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 650px;
}
.heritage-search input { flex: 1 1 220px; min-width: 0; }
.heritage-search button {
    border: 1px solid var(--heritage-green);
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--heritage-green);
    background: var(--site-color-27cf2069e3, #fff8df);
}
.heritage-search button.active { color: var(--site-color-27cf2069e3, #fff8df); background: var(--heritage-green); }

.heritage-heading .heritage-subtitle::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin: 12px auto;
    background: var(--site-color-101fddffd1, #b78332);
}
.heritage-copy p {
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.heritage-location:not(.heritage-featured) .heritage-copy p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.heritage-copy a {
    background: transparent;
    border-color: var(--heritage-green);
    color: var(--heritage-green);
}
.heritage-copy a:hover,
.heritage-copy a:focus-visible {
    background: var(--heritage-green);
    color: var(--site-color-27cf2069e3, #fff8df);
}

.heritage-location:not(.heritage-featured) img {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 185px;
    object-fit: cover;
}
.heritage-location:not(.heritage-featured) .heritage-copy {
    padding: 10px 8px 8px;
}
.heritage-location:not(.heritage-featured) h2 {
    font-size: clamp(17px, 1.55vw, 23px);
    overflow-wrap: anywhere;
}
.heritage-location:not(.heritage-featured) p {
    font-size: .9rem;
    margin: 6px 0 8px;
    -webkit-line-clamp: 2;
}
.heritage-location:not(.heritage-featured) a {
    font-size: .875rem;
    padding: 5px 10px;
}
@media (min-width: 1100px) {
    .heritage-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
