:root {
    --gallery-ivory: #f6f2e8;
    --gallery-paper: #fcfaf4;
    --gallery-sage: #e5eadf;
    --gallery-forest: #163c30;
    --gallery-moss: #56705d;
    --gallery-brass: #9b7b4e;
    --gallery-brown: #685640;
    --gallery-line: #d8d5c8
}

/* Focus Groups: faithful creative-agency service grid. */
@media (min-width: 701px) {
    .focus-groups {
        padding: 120px 0 126px;
        background: #fff;
        overflow: hidden
    }

    .focus-groups__curve {
        display: none
    }

    .focus-groups .gallery-container {
        display: block;
        width: min(1416px, calc(100% - 96px));
        background: transparent
    }

    .focus-groups .section-intro {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        min-height: 0;
        margin: 0 0 38px;
        padding: 0;
        background: transparent
    }

    .focus-groups .gallery-kicker {
        margin: 0 0 11px;
        color: #8a7651
    }

    .focus-groups .section-intro h2 {
        padding: 0;
        color: var(--gallery-forest);
        font: 600 clamp(46px, 4.4vw, 68px)/.95 'Cormorant Garamond', Georgia, serif
    }

    .focus-groups .focus-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(2, 220px);
        gap: 0;
        min-height: 440px;
        overflow: hidden
    }

    .focus-groups .focus-tile,
    .focus-groups .focus-tile--wide,
    .focus-groups .focus-tile:nth-child(n) {
        position: relative;
        inset: auto;
        display: grid;
        grid-template: 1fr / 1fr;
        grid-column: auto;
        grid-row: auto;
        width: auto;
        height: auto;
        min-height: 220px;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
        aspect-ratio: auto;
        overflow: hidden;
        transform: none
    }

    .focus-groups .focus-tile:nth-child(1),
    .focus-groups .focus-tile:nth-child(3),
    .focus-groups .focus-tile:nth-child(6),
    .focus-groups .focus-tile:nth-child(8) {
        background: #f4f4f4
    }

    .focus-groups .focus-tile::after {
        content: '';
        z-index: 1;
        grid-area: 1 / 1;
        background: rgb(18 25 20 / .72);
        opacity: 0;
        transition: opacity .3s ease
    }

    .focus-groups .focus-tile img,
    .focus-groups .focus-tile--wide img,
    .focus-groups .focus-tile:nth-child(n) img {
        grid-area: 1 / 1;
        width: 100%;
        height: 100%;
        min-height: 220px;
        padding: 0;
        object-fit: cover;
        opacity: 0;
        filter: none;
        transform: scale(.75);
        transition: opacity .3s ease, transform 2s ease
    }

    .focus-groups .focus-tile span {
        position: relative;
        z-index: 2;
        align-self: center;
        grid-area: 1 / 1;
        padding: 28px 24px;
        background: transparent;
        color: #171b18;
        transition: color .3s ease
    }

    .focus-groups .focus-tile span::before {
        content: '';
        display: block;
        width: 50px;
        margin-bottom: 14px;
        border-top: 6px solid #e9e9e9
    }

    .focus-groups .focus-tile strong {
        display: block;
        max-width: 230px;
        overflow-wrap: anywhere;
        font: 600 clamp(22px, 1.7vw, 27px)/1.15 Arial, Helvetica, sans-serif;
        letter-spacing: -.045em
    }

    .focus-groups .focus-tile small {
        display: block;
        margin-top: 9px;
        color: #697169;
        font-size: 10px;
        letter-spacing: .07em;
        text-transform: uppercase;
        transition: color .3s ease
    }

    .focus-groups .focus-tile:hover {
        box-shadow: none;
        transform: none
    }

    .focus-groups .focus-tile:hover img {
        opacity: 1;
        transform: scale(1)
    }

    .focus-groups .focus-tile:hover::after {
        opacity: 1
    }

    .focus-groups .focus-tile:hover span,
    .focus-groups .focus-tile:hover small {
        color: #fff
    }

    .focus-groups__more {
        display: flex;
        width: max-content;
        margin: 34px 0 0 auto;
        border-radius: 999px
    }
}

@media (min-width: 701px) and (max-width: 1050px) {
    .focus-groups .focus-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(4, 200px)
    }

    .focus-groups .focus-tile,
    .focus-groups .focus-tile--wide,
    .focus-groups .focus-tile:nth-child(n),
    .focus-groups .focus-tile img,
    .focus-groups .focus-tile--wide img,
    .focus-groups .focus-tile:nth-child(n) img {
        min-height: 200px
    }
}

.gallery-page {
    background: var(--gallery-paper);
    color: #26342d
}

.gallery-page main {
    overflow: hidden
}

.gallery-container {
    width: min(1480px, calc(100% - 96px));
    margin-inline: auto
}

.gallery-kicker {
    margin: 0 0 13px;
    color: var(--gallery-brass);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase
}

.gallery-section h2 {
    margin: 0;
    color: var(--gallery-forest);
    font: 600 clamp(42px, 4.4vw, 68px)/.95 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -.035em
}

.gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 5px;
    border-bottom: 1px solid #7a806f;
    color: var(--gallery-forest);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em
}

.gallery-link span {
    transition: transform .2s ease
}

.gallery-link:hover span {
    transform: translate(3px, -3px)
}

.gallery-hero {
    position: relative;
    min-height: 470px;
    background: linear-gradient(105deg, #f0eee4 0%, #f8f5ed 64%, #e1e7db 100%);
    border-bottom: 1px solid var(--gallery-line)
}

.gallery-hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#173c3008 1px, transparent 1px), linear-gradient(90deg, #173c3008 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 72%)
}

.gallery-hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    align-items: center;
    min-height: 470px
}

.gallery-hero-copy {
    position: relative;
    z-index: 2;
    padding: 48px 0 54px;
    max-width: 760px
}

.gallery-hero h1 {
    margin: 0;
    color: var(--gallery-forest);
    font: 600 clamp(58px, 6.5vw, 104px)/.8 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -.055em
}

.gallery-hero-intro {
    max-width: 620px;
    margin: 24px 0 6px;
    font-size: 17px;
    line-height: 1.7;
    color: #405047
}

.gallery-count {
    margin: 0 0 24px;
    color: #788077;
    font-size: 12px;
    letter-spacing: .05em
}

.gallery-count strong {
    color: var(--gallery-brass);
    font-size: 14px
}

.gallery-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    max-width: 700px;
    min-height: 62px;
    background: #fff;
    border: 1px solid #b7b6a9;
    box-shadow: 0 12px 28px #21372b12
}

.gallery-search i {
    padding-left: 21px;
    color: #6c7e70
}

.gallery-search input {
    min-width: 0;
    height: 60px;
    border: 0;
    padding: 0 18px;
    background: transparent;
    outline: 0;
    font-size: 14px;
    color: #243a30
}

.gallery-search button {
    align-self: stretch;
    border: 0;
    background: var(--gallery-forest);
    padding: 0 28px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em
}

.gallery-hero-art {
    position: relative;
    align-self: stretch;
    min-height: 470px
}

.hero-sheet {
    position: absolute;
    width: 218px;
    height: 308px;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 16px 28px #2e382c25;
    border: 7px solid #f4f0e4
}

.hero-sheet-back {
    right: 9%;
    top: 45px;
    transform: rotate(7deg);
    opacity: .75
}

.hero-sheet-front {
    right: 34%;
    bottom: -26px;
    transform: rotate(-5deg);
    z-index: 1
}

.hero-branch {
    position: absolute;
    right: -5%;
    bottom: -52px;
    width: 400px;
    height: 300px;
    object-fit: contain;
    opacity: .18;
    transform: rotate(7deg)
}

.hero-catalogue-mark {
    position: absolute;
    right: 4%;
    bottom: 46px;
    color: var(--gallery-brown);
    font: italic 20px/1.05 'Cormorant Garamond', serif;
    letter-spacing: .08em
}

.hero-catalogue-mark b {
    font-size: 10px;
    letter-spacing: .24em
}

.gallery-section {
    padding: 105px 0
}

.threatened {
    background: var(--gallery-paper)
}

.threatened-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 76px;
    align-items: center
}

.section-intro>p:not(.gallery-kicker) {
    margin: 24px 0 25px;
    color: #68736b;
    font-size: 14px;
    line-height: 1.8
}

.threatened-strip {
    display: grid;
    grid-template-columns: 1.18fr repeat(4, .82fr);
    align-items: center;
    gap: 12px
}

.threatened-item {
    position: relative;
    display: block;
    height: 330px;
    overflow: hidden;
    background: #dfe4da
}

.threatened-item--lead {
    height: 405px
}

.threatened-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease, filter .3s ease
}

.threatened-item:not(.threatened-item--lead) img {
    filter: saturate(.72)
}

.threatened-item:hover img {
    transform: scale(1.025);
    filter: saturate(1)
}

.threatened-item>span {
    position: absolute;
    inset: auto 0 0;
    padding: 46px 15px 15px;
    background: linear-gradient(transparent, #102a23df);
    color: #fff;
    font: 500 19px/1.2 'Cormorant Garamond', serif
}

.threatened-item small {
    display: block;
    margin-top: 4px;
    font: 10px 'Anuphan', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .78
}

.focus-groups {
    background: var(--gallery-sage)
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 39px
}

.section-heading-row>p {
    max-width: 350px;
    margin: 0 0 7px;
    color: #657068;
    font-size: 14px
}

.focus-strip {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, 1fr);
    gap: 16px
}

.focus-tile {
    position: relative;
    height: 305px;
    overflow: hidden;
    background: #bfc9b9
}

.focus-tile--wide {
    height: 355px;
    margin-top: -25px
}

.focus-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75);
    transition: transform .45s ease, filter .3s ease
}

.focus-tile:hover img {
    transform: scale(1.03);
    filter: saturate(1)
}

.focus-tile:after {
    content: '';
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, #11291fcc)
}

.focus-tile span {
    position: absolute;
    z-index: 1;
    left: 19px;
    right: 14px;
    bottom: 16px;
    color: #fff
}

.focus-tile strong {
    display: block;
    font: 600 clamp(20px, 1.7vw, 28px)/1 'Cormorant Garamond', serif
}

.focus-tile small {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .78
}

.by-location {
    background:none;
}

.location-layout {
    display: grid;
    grid-template-columns: minmax(330px, .8fr) minmax(540px, 1.2fr);
    gap: 9vw;
    align-items: center
}

.location-map {
    position: relative;
    min-height: 570px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #dde3d5 0 1px, transparent 2px) 0 0/18px 18px
}

.location-map:before {
    content: '';
    position: absolute;
    inset: 8% 9%;
    border: 1px solid #9baa974f;
    border-radius: 50%
}

.location-map svg {
    position: relative;
    width: 210px;
    height: 440px;
    overflow: visible;
    fill: #8c9f83;
    filter: drop-shadow(16px 18px 0 #cbd4c4)
}

.location-map .map-line {
    fill: none;
    stroke: #f2ede1;
    stroke-width: 3;
    opacity: .8
}

.location-map p {
    position: absolute;
    left: 6%;
    bottom: 7%;
    margin: 0;
    color: #687967;
    font: 500 18px/1.2 'Cormorant Garamond', serif;
    letter-spacing: .05em;
    text-transform: uppercase
}

.location-map p em {
    font-size: 25px;
    text-transform: none
}

.map-orbit {
    position: absolute;
    border: 1px solid #a69a7b70;
    border-radius: 50%
}

.map-orbit--one {
    width: 18px;
    height: 18px;
    top: 17%;
    right: 17%
}

.map-orbit--two {
    width: 9px;
    height: 9px;
    bottom: 28%;
    left: 15%;
    background: var(--gallery-brass)
}

.location-copy>h2 {
    font-size: clamp(46px, 5vw, 74px)
}

.location-intro {
    max-width: 630px;
    margin: 23px 0 31px;
    color: #68736b;
    font-size: 14px
}

.region-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    width: 100%;
    font-size: inherit
}

.region-list a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-areas: 'num title arrow''num thai arrow';
    align-items: center;
    padding: 15px 3px;
    border-top: 1px solid #bdbbad;
    color: var(--gallery-forest);
    transition: padding .2s ease, background .2s ease
}

.region-list a:hover {
    padding-left: 10px;
    background: #fff7
}

.region-list a > span {
    grid-area: num;
    color: var(--gallery-brass);
    font: 12px 'Cormorant Garamond', serif
}

.region-list strong {
    grid-area: title;
    font: 600 22px/1 'Cormorant Garamond', serif
}

.region-list small {
    grid-area: thai;
    margin-top: 5px;
    color: #7a8179;
    font-size: 11px
}

.region-list b {
    grid-area: arrow;
    font-weight: 400
}

.recently {
    padding-bottom: 125px;
    background: #fbfaf5
}

.recent-heading {
    align-items: center
}

.recent-heading .gallery-link {
    margin-bottom: 8px
}

.recent-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: end
}

.recent-strip a {
    position: relative;
    display: block
}

.recent-strip a:nth-child(even) {
    margin-bottom: 20px
}

.recent-strip img {
    display: block;
    width: 100%;
    aspect-ratio: .72;
    object-fit: cover;
    object-position: top;
    border: 1px solid #d4d0c5;
    background: #eee8dc;
    filter: saturate(.76);
    transition: transform .3s ease, filter .3s ease
}

.recent-strip a:hover img {
    transform: translateY(-6px);
    filter: saturate(1)
}

.recent-strip span {
    display: block;
    margin-top: 9px;
    color: #6c716b;
    font-size: 9px;
    letter-spacing: .13em
}

@media(max-width:1180px) {
    .gallery-container {
        width: calc(100% - 56px)
    }

    .gallery-hero-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr)
    }

    .hero-sheet {
        width: 180px;
        height: 260px
    }

    .hero-sheet-front {
        right: 31%
    }

    .threatened-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 38px
    }

    .threatened-strip {
        grid-template-columns: 1.15fr repeat(4, .8fr)
    }

    .threatened-item {
        height: 285px
    }

    .threatened-item--lead {
        height: 350px
    }

    .focus-strip {
        grid-template-columns: 1.15fr repeat(4, 1fr)
    }

    .focus-tile {
        height: 270px
    }

    .focus-tile--wide {
        height: 315px
    }

    .location-layout {
        gap: 6vw
    }
}

@media(max-width:900px) {
    .gallery-container {
        width: calc(100% - 44px)
    }

    .gallery-hero {
        min-height: 430px
    }

    .gallery-hero-layout {
        min-height: 430px;
        grid-template-columns: minmax(0, 1fr) 260px
    }

    .gallery-hero-art {
        min-height: 430px
    }

    .hero-sheet {
        width: 150px;
        height: 220px
    }

    .hero-sheet-back {
        right: 0
    }

    .hero-sheet-front {
        right: 30%;
        bottom: 12px
    }

    .hero-branch {
        width: 280px
    }

    .gallery-section {
        padding: 78px 0
    }

    .threatened-layout {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .section-intro {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 30px;
        align-items: end
    }

    .section-intro .gallery-kicker,
    .section-intro h2 {
        grid-column: 1
    }

    .section-intro>p:not(.gallery-kicker),
    .section-intro .gallery-link {
        grid-column: 2
    }

    .section-intro>p:not(.gallery-kicker) {
        grid-row: 1/3;
        margin: 0
    }

    .threatened-strip,
    .focus-strip,
    .recent-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 0 15px;
        scrollbar-width: thin
    }

    .threatened-item,
    .focus-tile,
    .recent-strip a {
        flex: 0 0 235px;
        scroll-snap-align: start
    }

    .threatened-item--lead {
        flex-basis: 280px
    }

    .focus-tile--wide {
        margin-top: 0
    }

    .location-layout {
        grid-template-columns: 310px 1fr;
        gap: 42px
    }

    .location-map {
        min-height: 500px
    }

    .region-list {
        grid-template-columns: 1fr
    }

    .recent-strip a {
        flex-basis: 145px
    }

    .recent-strip a:nth-child(even) {
        margin-bottom: 0
    }
}

@media(max-width:680px) {
    .gallery-container {
        width: calc(100% - 32px)
    }

    .gallery-hero {
        min-height: 0
    }

    .gallery-hero-layout {
        display: block;
        min-height: 0
    }

    .gallery-hero-copy {
        padding: 38px 0 198px
    }

    .gallery-hero h1 {
        font-size: 56px
    }

    .gallery-hero-intro {
        font-size: 14px;
        margin-top: 18px
    }

    .gallery-search {
        min-height: 56px
    }

    .gallery-search input {
        height: 54px;
        font-size: 12px
    }

    .gallery-search button {
        padding: 0 18px;
        font-size: 0
    }

    .gallery-search button span {
        font-size: 18px
    }

    .gallery-hero-art {
        position: absolute;
        inset: auto 0 0;
        height: 185px;
        min-height: 0;
        overflow: hidden
    }

    .hero-sheet {
        width: 112px;
        height: 160px;
        border-width: 4px
    }

    .hero-sheet-back {
        top: 26px;
        right: 8%
    }

    .hero-sheet-front {
        bottom: -17px;
        right: 42%
    }

    .hero-branch {
        right: auto;
        left: -6%;
        bottom: -70px;
        width: 260px
    }

    .hero-catalogue-mark {
        right: 4%;
        bottom: 18px;
        font-size: 15px
    }

    .gallery-section {
        padding: 64px 0
    }

    .gallery-section h2 {
        font-size: 46px
    }

    .section-intro {
        display: block
    }

    .section-intro>p:not(.gallery-kicker) {
        margin: 20px 0
    }

    .threatened-strip {
        margin-right: -16px
    }

    .threatened-item {
        height: 310px;
        flex-basis: 210px
    }

    .threatened-item--lead {
        height: 355px;
        flex-basis: 245px
    }

    .section-heading-row {
        display: block;
        margin-bottom: 28px
    }

    .section-heading-row>p {
        margin-top: 14px
    }

    .focus-strip {
        margin-right: -16px
    }

    .focus-tile {
        height: 290px;
        flex-basis: 225px
    }

    .focus-tile--wide {
        height: 290px
    }

    .location-layout {
        display: flex;
        flex-direction: column;
        gap: 38px
    }

    .location-copy {
        order: 1
    }

    .location-map {
        order: 2;
        width: 100%;
        min-height: 420px
    }

    .location-map svg {
        height: 340px
    }

    .region-list {
        margin-top: 28px
    }

    .recent-heading .gallery-link {
        margin-top: 20px
    }

    .recent-strip {
        margin-right: -16px
    }

    .recent-strip a {
        flex-basis: 135px
    }

    .recently {
        padding-bottom: 80px
    }
}

@media(prefers-reduced-motion:reduce) {
    .gallery-page * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

/* Compact editorial landing composition, following the approved gallery reference. */
.gallery-page {
    background: #f7f4eb
}

.gallery-hero {
    min-height: 390px;
    background: #f4f0e5
}

.gallery-hero:after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/footer-mountain-landscape.png') left 70%/48% auto no-repeat;
    opacity: .18;
    mix-blend-mode: multiply;
    pointer-events: none
}

.gallery-hero-layout {
    display: block;
    min-height: 390px;
    text-align: center
}

.gallery-hero-copy {
    max-width: 830px;
    margin: auto;
    padding: 54px 0 42px
}

.gallery-hero h1 {
    font-size: clamp(57px, 5.2vw, 82px);
    line-height: .9;
    letter-spacing: .015em
}

.gallery-hero-intro {
    margin: 17px auto 14px;
    font: 400 15px/1.65 'Anuphan', Tahoma, sans-serif;
    color: #534d40
}

.gallery-count {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 3;
    margin: 0;
    padding: 0 42px;
    background: #f4f0e5;
    color: #705d42;
    white-space: nowrap
}

.gallery-count:before,
.gallery-count:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 105px;
    border-top: 1px solid #b7aa9166
}

.gallery-count:before {
    right: 100%
}

.gallery-count:after {
    left: 100%
}

.gallery-search {
    position: relative;
    z-index: 4;
    margin: 20px auto 0;
    border-radius: 999px;
    overflow: hidden;
    min-height: 58px
}

.gallery-search input {
    height: 56px
}

.gallery-search button {
    align-self: center;
    width: 42px;
    height: 42px;
    margin-right: 8px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    background: #795a32
}

.gallery-search button span {
    font-size: 18px
}

.gallery-hero-art {
    position: absolute;
    inset: 0;
    min-height: 0;
    pointer-events: none
}

.hero-sheet {
    width: 172px;
    height: 245px
}

.hero-sheet-back {
    right: 2%;
    top: 15px;
    transform: rotate(9deg)
}

.hero-sheet-front {
    right: 10%;
    bottom: -12px;
    transform: rotate(4deg)
}

.hero-branch {
    right: auto;
    left: -5%;
    bottom: -65px;
    width: 330px;
    opacity: .25
}

.hero-catalogue-mark {
    display: none
}

.gallery-section {
    padding: 30px 0;
    border-bottom: 1px solid #d9d3c5;
    background: #f8f5ed
}

.gallery-row-layout,
.threatened-layout {
    display: grid;
    grid-template-columns: 305px minmax(0, 1fr);
    gap: 38px;
    align-items: center
}

.section-intro,
.section-intro--compact {
    display: block
}

.section-intro .gallery-kicker {
    display: none
}

.section-intro h2 {
    position: relative;
    padding-left: 23px;
    font-size: clamp(35px, 3vw, 48px);
    line-height: 1
}

.section-intro h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 3px;
    width: 6px;
    border-radius: 2px;
    background: #985039
}

.focus-groups .section-intro h2:before {
    background: #627839
}

.by-location .section-intro h2:before {
    background: #2e6c8c
}

.recently .section-intro h2:before {
    background: #a77a39
}

.section-intro>p:not(.gallery-kicker) {
    margin: 15px 0 17px;
    padding-left: 23px;
    color: #46473f;
    font: 400 14px/1.65 'Anuphan', Tahoma, sans-serif
}

.gallery-button {
    margin-left: 20px;
    padding: 9px 19px;
    border: 0;
    border-radius: 999px;
    background: #75522c;
    color: white;
    font: 500 13px var(--herbarium-font-body)
}

.gallery-button--green {
    background: #5e7139
}

.gallery-button--blue {
    background: #2e6c8c
}

.threatened-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px
}

.threatened-item,
.threatened-item--lead {
    height: 220px;
    border: 1px solid #d3cbbd;
    border-radius: 4px;
    background: #eee8dc;
    box-shadow: 0 4px 12px #4b403317
}

.threatened-item img {
    object-position: top
}

.threatened-item>span {
    padding: 35px 11px 9px;
    font-size: 15px
}

.focus-groups {
    background: #f4f2e9
}

.focus-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px
}

.focus-tile,
.focus-tile--wide {
    height: 174px;
    margin: 0;
    border-radius: 7px;
    background: #fff;
    overflow: hidden
}

.focus-tile img {
    height: 114px
}

.focus-tile:after {
    display: none
}

.focus-tile span {
    left: 0;
    right: 0;
    bottom: 0;
    height: 61px;
    padding: 8px 11px;
    background: #fff;
    color: #292f29
}

.focus-tile strong {
    font-size: 17px
}

.focus-tile small {
    margin-top: 3px;
    color: #72776e;
    font-size: 9px
}

.location-layout {
    grid-template-columns: 305px minmax(0, 1fr);
    gap: 38px
}

.location-visuals {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0
}

.location-map {
    min-height: 188px;
    background: none
}

.location-map:before,
.map-orbit,
.location-map p {
    display: none
}

.location-map svg {
    width: 95px;
    height: 185px;
    filter: drop-shadow(8px 9px 0 #cbd4c4)
}

.region-list {
    display: flex !important;
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    font-size: inherit;
    scroll-snap-type: x mandatory;
    padding-bottom: 3px
}

.region-list a {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: 'image image''title arrow''meta arrow';
    flex: 1 0 126px;
    min-width: 0;
    padding: 0 0 8px;
    border: 1px solid #d6d1c6;
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
    scroll-snap-align: start
}

.region-list a:hover {
    padding-left: 0;
    background: #fff
}

.region-list img {
    grid-area: image;
    width: 100%;
    height: 102px;
    object-fit: cover
}

.region-list strong {
    grid-area: title;
    padding: 8px 8px 0;
    font: 600 14px/1.05 'Cormorant Garamond', serif
}

.region-list small {
    grid-area: meta;
    padding-left: 8px;
    margin: 2px 0 0;
    color: #817c72;
    font-size: 8px
}

.region-list b {
    grid-area: arrow;
    align-self: end;
    margin: 0 7px 2px;
    font-size: 11px
}

.recently {
    padding-bottom: 42px
}

.recent-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px
}

.recent-strip a:nth-child(even) {
    margin-bottom: 0
}

.recent-strip img {
    aspect-ratio: .72;
    max-height: 190px
}

.recent-strip span {
    margin-top: 4px;
    font-size: 8px
}

@media(max-width:1050px) {

    .gallery-row-layout,
    .threatened-layout,
    .location-layout {
        grid-template-columns: 245px minmax(0, 1fr);
        gap: 28px
    }

    .hero-sheet {
        opacity: .6
    }

    .location-visuals {
        grid-template-columns: 125px minmax(0, 1fr)
    }

    .threatened-item,
    .threatened-item--lead {
        height: 200px
    }
}

@media(max-width:800px) {
    .gallery-hero-copy {
        max-width: 620px
    }

    .gallery-hero-art {
        opacity: .45
    }

    .gallery-row-layout,
    .threatened-layout,
    .location-layout {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .section-intro,
    .section-intro--compact {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end
    }

    .section-intro h2 {
        grid-column: 1
    }

    .section-intro>p:not(.gallery-kicker) {
        grid-column: 1;
        margin-bottom: 0
    }

    .section-intro .gallery-button {
        grid-column: 2;
        grid-row: 1/3;
        align-self: end;
        margin-bottom: 2px
    }

    .threatened-strip,
    .focus-strip,
    .recent-strip {
        display: flex
    }

    .threatened-item,
    .threatened-item--lead {
        flex: 0 0 175px;
        height: 225px
    }

    .focus-tile,
    .focus-tile--wide {
        flex: 0 0 180px;
        height: 174px
    }

    .location-visuals {
        grid-template-columns: 130px minmax(0, 1fr)
    }

    .region-list a {
        flex-basis: 135px
    }

    .recent-strip a {
        flex: 0 0 118px
    }
}

@media(max-width:680px) {
    .gallery-hero {
        min-height: 390px
    }

    .gallery-hero-layout {
        min-height: 390px
    }

    .gallery-hero-copy {
        padding: 38px 0 130px
    }

    .gallery-hero h1 {
        font-size: 48px
    }

    .gallery-hero-intro {
        font-size: 14px
    }

    .gallery-count {
        bottom: 18px;
        padding: 0 18px;
        font-size: 10px
    }

    .gallery-count:before,
    .gallery-count:after {
        width: 40px
    }

    .gallery-hero-art {
        height: auto;
        overflow: hidden
    }

    .hero-sheet {
        width: 90px;
        height: 130px
    }

    .hero-sheet-back {
        top: auto;
        bottom: 0;
        right: 1%
    }

    .hero-sheet-front {
        bottom: -15px;
        right: 22%
    }

    .gallery-section {
        padding: 38px 0
    }

    .section-intro,
    .section-intro--compact {
        display: block
    }

    .section-intro h2 {
        font-size: 38px
    }

    .section-intro>p:not(.gallery-kicker) {
        margin: 13px 0 16px
    }

    .section-intro .gallery-button {
        margin-left: 20px
    }

    .location-visuals {
        display: block
    }

    .location-map {
        display: none
    }

    .region-list {
        margin-top: 0
    }

    .recent-strip a {
        flex-basis: 122px
    }
}

/* Threatened Species: calm editorial feature, intentionally distinct from the hero collage. */
.threatened {
    padding-block: 64px;
    background: #faf8f1
}

.threatened-layout {
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: clamp(45px, 6vw, 95px);
    align-items: center
}

.threatened .section-intro .gallery-kicker {
    display: block;
    margin: 0 0 14px;
    padding-left: 23px;
    color: var(--gallery-brass);
    font: 600 12px/1 'Cormorant Garamond', Georgia, serif;
    letter-spacing: .12em
}

.threatened .section-intro .gallery-kicker:after {
    content: '';
    display: block;
    width: 26px;
    margin-top: 10px;
    border-top: 1px solid currentColor
}

.threatened .section-intro h2 {
    font-size: clamp(48px, 4.2vw, 66px);
    letter-spacing: -.04em
}

.threatened .section-intro h2:before {
    display: none
}

.threatened .section-intro>p:not(.gallery-kicker) {
    max-width: 285px;
    margin: 22px 0 25px;
    padding-left: 23px;
    color: #59635c;
    line-height: 1.75
}

.threatened .section-intro .gallery-link {
    margin-left: 23px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: #76552f;
    color: #fff;
    box-shadow: 0 9px 20px #3b2c1e17;
    font: 500 14px/1 var(--herbarium-font-body);
    transition: transform .25s ease, box-shadow .25s ease
}

.threatened .section-intro .gallery-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 25px #3b2c1e24
}

.threatened-strip {
    display: grid;
    grid-template-columns: minmax(230px, 1.25fr) minmax(175px, .88fr) minmax(145px, .72fr);
    gap: clamp(16px, 2vw, 30px);
    align-items: end;
    min-width: 0
}

.threatened-item,
.threatened-item--lead {
    position: relative;
    display: block;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible
}

.threatened-item>.threatened-picture {
    position: relative;
    inset: auto;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d5d0c4;
    border-radius: 8px;
    background: #e5e8de;
    box-shadow: 0 8px 20px #28382e12;
    color: inherit
}

.threatened-item--lead .threatened-picture {
    height: 340px;
    background: #dfe6d8
}

.threatened-item--sheet {
    padding-bottom: 8px
}

.threatened-item--sheet .threatened-picture {
    height: 292px;
    background: #eee9df
}

.threatened-item--detail {
    padding-bottom: 38px
}

.threatened-item--detail .threatened-picture {
    height: 190px;
    background: #e8ebdf
}

.threatened-item .threatened-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.84);
    transition: transform .45s ease, filter .3s ease
}

.threatened-item--lead .threatened-picture img {
    object-fit: contain;
    padding: 10px 0 0;
    background: linear-gradient(145deg, #d8e0d2, #eef0e8)
}

.threatened-item--sheet .threatened-picture img {
    object-position: top
}

.threatened-item--detail .threatened-picture img {
    object-fit: cover;
    object-position: center 42%;
    padding: 0;
    background: #e7ebdf
}

.threatened-item:hover .threatened-picture img {
    transform: scale(1.018);
    filter: saturate(1)
}

.threatened-item .threatened-meta {
    position: static;
    display: block;
    padding: 10px 6px 0;
    background: none;
    color: #334039;
    font: 500 17px/1.15 'Cormorant Garamond', Georgia, serif
}

.threatened-item .threatened-meta small {
    display: block;
    margin-top: 4px;
    color: #777d76;
    font: 9px/1.2 'Anuphan', sans-serif;
    letter-spacing: .11em;
    text-transform: uppercase;
    opacity: 1
}

.status-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #765531;
    color: #fff;
    font: 600 9px/1 'Anuphan', sans-serif;
    letter-spacing: .04em;
    box-shadow: 0 2px 8px #15281c1f
}

.threatened-item--lead .status-badge {
    background: #8b4432
}

.threatened-item--sheet .status-badge {
    background: #a26035
}

.threatened-item--detail .status-badge {
    background: #8a7640
}

@media(max-width:1050px) {
    .threatened-layout {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 38px
    }

    .threatened-strip {
        grid-template-columns: 1.15fr .9fr .72fr;
        gap: 16px
    }

    .threatened-item--lead .threatened-picture {
        height: 300px
    }

    .threatened-item--sheet .threatened-picture {
        height: 260px
    }

    .threatened-item--detail .threatened-picture {
        height: 175px
    }
}

@media(max-width:800px) {
    .threatened {
        padding-block: 52px
    }

    .threatened-layout {
        grid-template-columns: 1fr;
        gap: 34px
    }

    .threatened .section-intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end
    }

    .threatened .section-intro .gallery-kicker,
    .threatened .section-intro h2,
    .threatened .section-intro>p:not(.gallery-kicker) {
        grid-column: 1
    }

    .threatened .section-intro .gallery-link {
        grid-column: 2;
        grid-row: 2/4;
        align-self: end;
        margin: 0 0 2px
    }

    .threatened .section-intro>p:not(.gallery-kicker) {
        max-width: 420px
    }

    .threatened-strip {
        display: grid;
        grid-template-columns: 1.12fr .9fr .72fr;
        overflow: visible;
        padding: 0
    }

    .threatened-item,
    .threatened-item--lead {
        flex: none
    }

    .threatened-item--lead .threatened-picture {
        height: 285px
    }

    .threatened-item--sheet .threatened-picture {
        height: 245px
    }

    .threatened-item--detail .threatened-picture {
        height: 165px
    }
}

@media(max-width:580px) {
    .threatened .section-intro {
        display: block
    }

    .threatened .section-intro .gallery-link {
        margin-left: 23px
    }

    .threatened-strip {
        grid-template-columns: 1.12fr .88fr;
        align-items: start;
        gap: 14px
    }

    .threatened-item--lead {
        grid-row: span 2
    }

    .threatened-item--lead .threatened-picture {
        height: 300px
    }

    .threatened-item--sheet {
        padding: 0
    }

    .threatened-item--sheet .threatened-picture {
        height: 205px
    }

    .threatened-item--detail {
        padding: 0
    }

    .threatened-item--detail .threatened-picture {
        height: 135px
    }

    .threatened-item .threatened-meta {
        font-size: 14px
    }

    .status-badge {
        top: 7px;
        right: 7px;
        width: 26px;
        height: 26px;
        font-size: 8px
    }
}

/* Focus Groups: quiet editorial tiles with a shared baseline and subtle rhythm. */
.focus-groups {
    padding-block: 62px;
    background: #eef0e7
}

.focus-groups .gallery-row-layout {
    display: block
}

.focus-groups .section-intro {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(280px, 1fr) auto;
    align-items: end;
    gap: 42px;
    margin-bottom: 38px
}

.focus-groups .section-intro h2 {
    font-size: clamp(43px, 4vw, 58px)
}

.focus-groups .section-intro>p:not(.gallery-kicker) {
    max-width: 420px;
    margin: 0;
    padding: 0 0 2px;
    color: #59635c;
    line-height: 1.7
}

.focus-groups .section-intro .gallery-button {
    margin: 0 0 2px;
    white-space: nowrap
}

.focus-strip {
    display: grid;
    grid-template-columns: 1.14fr 1fr .94fr 1fr 1.1fr;
    align-items: end;
    gap: clamp(15px, 1.7vw, 26px);
    overflow: visible;
    padding: 0
}

.focus-tile,
.focus-tile--wide {
    position: relative;
    display: grid;
    grid-template-rows: auto auto;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none
}

.focus-tile img,
.focus-tile--wide img {
    display: block;
    width: 100%;
    height: 238px;
    border: 1px solid #cfd5c9;
    border-radius: 7px;
    object-fit: cover;
    filter: saturate(.76) contrast(.96);
    transition: transform .35s ease, filter .3s ease, border-color .3s ease
}

.focus-tile:nth-child(1) img {
    height: 278px;
    object-position: center 42%
}

.focus-tile:nth-child(2) img {
    height: 238px;
    object-position: center 42%
}

.focus-tile:nth-child(3) img {
    height: 254px;
    object-fit: contain;
    padding: 12px;
    background: #e5e9dd
}

.focus-tile:nth-child(4) img {
    height: 226px;
    object-position: 55% 8%
}

.focus-tile:nth-child(5) img {
    height: 266px;
    object-position: center
}

.focus-tile:after {
    display: none
}

.focus-tile span {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 13px 2px 0;
    background: transparent;
    color: #2c3932
}

.focus-tile strong {
    font: 600 clamp(17px, 1.45vw, 23px)/1.05 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -.015em
}

.focus-tile small {
    margin: 0;
    color: #788078;
    font: 10px/1.3 'Anuphan', sans-serif;
    letter-spacing: .07em;
    text-transform: uppercase
}

.focus-tile:hover img {
    transform: translateY(-4px);
    filter: saturate(.94) contrast(1);
    border-color: #aab6a6
}

.focus-tile:focus-visible {
    outline-offset: 7px
}

@media(max-width:1050px) {
    .focus-groups .section-intro {
        grid-template-columns: minmax(220px, .75fr) 1fr auto;
        gap: 26px
    }

    .focus-strip {
        gap: 14px
    }

    .focus-tile img,
    .focus-tile--wide img {
        height: 210px
    }

    .focus-tile:nth-child(1) img {
        height: 246px
    }

    .focus-tile:nth-child(2) img {
        height: 210px
    }

    .focus-tile:nth-child(3) img {
        height: 226px
    }

    .focus-tile:nth-child(4) img {
        height: 200px
    }

    .focus-tile:nth-child(5) img {
        height: 236px
    }

    .focus-tile strong {
        font-size: 17px
    }
}

@media(max-width:800px) {
    .focus-groups {
        padding-block: 52px
    }

    .focus-groups .section-intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 24px
    }

    .focus-groups .section-intro h2 {
        grid-column: 1
    }

    .focus-groups .section-intro>p:not(.gallery-kicker) {
        grid-column: 1;
        margin: 0
    }

    .focus-groups .section-intro .gallery-button {
        grid-column: 2;
        grid-row: 1/3;
        align-self: end
    }

    .focus-strip {
        display: flex;
        align-items: flex-end;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 6px 0 17px
    }

    .focus-tile,
    .focus-tile--wide {
        flex: 0 0 210px;
        scroll-snap-align: start
    }

    .focus-tile img,
    .focus-tile--wide img,
    .focus-tile:nth-child(n) img {
        height: 245px
    }

    .focus-tile:nth-child(2),
    .focus-tile:nth-child(4) {
        flex-basis: 190px
    }

    .focus-tile:nth-child(2) img,
    .focus-tile:nth-child(4) img {
        height: 220px
    }
}

@media(max-width:580px) {
    .focus-groups .section-intro {
        display: block;
        margin-bottom: 30px
    }

    .focus-groups .section-intro>p:not(.gallery-kicker) {
        margin: 14px 0 18px
    }

    .focus-groups .section-intro .gallery-button {
        margin-left: 20px
    }

    .focus-strip {
        margin-right: -16px
    }

    .focus-tile,
    .focus-tile--wide {
        flex-basis: 205px
    }

    .focus-tile:nth-child(2),
    .focus-tile:nth-child(4) {
        flex-basis: 185px
    }
}

/* By Location: map-led composition with quiet regional wayfinding. */
.by-location {
    position: relative;
    padding-block: 68px;
    background: #f8f3e9
}

.by-location:after {
    content: '';
    position: absolute;
    right: -75px;
    bottom: -85px;
    width: 250px;
    height: 250px;
    background: url('../img/botanical-branch-line-art.svg') center/contain no-repeat;
    opacity: .06;
    pointer-events: none
}

.location-layout {
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 105px);
    align-items: center
}

.by-location .section-intro h2 {
    font-size: clamp(48px, 4.4vw, 66px)
}

.by-location .section-intro>p:not(.gallery-kicker) {
    max-width: 290px;
    margin-block: 21px 25px;
    line-height: 1.75
}

.location-visuals {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 430px
}

.location-map {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    display: grid;
    width: 255px;
    min-height: 390px;
    place-items: center;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, #e2e8dc 0 1px, transparent 1.5px) 0 0/19px 19px
}

.location-map:before {
    display: block;
    inset: 4% -8%;
    border-color: #a8b39f55
}

.location-map svg {
    width: 150px;
    height: 345px;
    fill: #829878;
    filter: drop-shadow(11px 12px 0 #d1d9cb)
}

.location-map .map-line {
    stroke: #f8f3e9;
    stroke-width: 2.5
}

.location-map p,
.location-map .map-orbit {
    display: none
}

.region-list {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block !important;
    width: auto;
    overflow: visible;
    padding: 0
}

.region-list a {
    position: absolute;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'image image''title arrow''meta arrow';
    width: 154px;
    padding: 0 0 9px;
    border: 1px solid #d5d2c8;
    border-radius: 7px;
    background: #fbfaf5;
    overflow: hidden;
    box-shadow: 0 7px 18px #2333280e;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease
}

.region-list a:nth-child(1) {
    left: 0;
    top: 10px;
    width: 174px
}

.region-list a:nth-child(2) {
    right: 1%;
    top: 25px;
    width: 166px
}

.region-list a:nth-child(3) {
    right: 0;
    top: 190px;
    width: 150px
}

.region-list a:nth-child(4) {
    right: 12%;
    bottom: 0;
    width: 162px
}

.region-list a:nth-child(5) {
    left: 3%;
    bottom: 18px;
    width: 180px
}

.region-list a:hover {
    padding-left: 0;
    background: #fff;
    transform: translateY(-4px);
    border-color: #adb8a8;
    box-shadow: 0 10px 24px #23332817
}

.region-list img {
    grid-area: image;
    display: block;
    width: 100%;
    height: 82px;
    object-fit: cover;
    filter: saturate(.72) contrast(.95);
    transition: filter .28s ease, transform .35s ease
}

.region-list a:nth-child(1) img,
.region-list a:nth-child(5) img {
    height: 92px
}

.region-list a:hover img {
    filter: saturate(.9) contrast(1);
    transform: scale(1.018)
}

.region-list strong {
    grid-area: title;
    padding: 8px 9px 0;
    color: #304138;
    font: 600 16px/1.05 'Cormorant Garamond', Georgia, serif
}

.region-list small {
    grid-area: meta;
    margin: 3px 0 0;
    padding-left: 9px;
    color: #7d827c;
    font: 9px/1.2 'Anuphan', sans-serif;
    letter-spacing: .04em
}

.region-list b {
    grid-area: arrow;
    align-self: end;
    margin: 0 9px 2px;
    color: #71806f;
    font-size: 11px;
    font-weight: 400
}

@media(max-width:1120px) {
    .location-layout {
        grid-template-columns: 245px minmax(0, 1fr);
        gap: 40px
    }

    .location-visuals {
        min-height: 405px
    }

    .location-map {
        width: 225px;
        min-height: 365px
    }

    .location-map svg {
        width: 132px;
        height: 318px
    }

    .region-list a:nth-child(1) {
        width: 150px
    }

    .region-list a:nth-child(2) {
        width: 148px
    }

    .region-list a:nth-child(3) {
        width: 140px
    }

    .region-list a:nth-child(4) {
        width: 145px
    }

    .region-list a:nth-child(5) {
        width: 155px
    }
}

@media(max-width:900px) {
    .by-location {
        padding-block: 58px
    }

    .location-layout {
        grid-template-columns: 225px minmax(0, 1fr);
        gap: 30px
    }

    .location-visuals {
        min-height: 390px
    }

    .location-map {
        left: 47%
    }

    .region-list a:nth-child(4),
    .region-list a:nth-child(5) {
        display: none
    }

    .region-list a:nth-child(1) {
        left: 0;
        top: 28px
    }

    .region-list a:nth-child(2) {
        right: 0;
        top: 35px
    }

    .region-list a:nth-child(3) {
        right: 1%;
        top: auto;
        bottom: 34px
    }
}

@media(max-width:700px) {
    .location-layout {
        display: block
    }

    .by-location .section-intro {
        display: block;
        margin-bottom: 36px
    }

    .by-location .section-intro>p:not(.gallery-kicker) {
        max-width: 430px;
        margin-block: 15px 19px
    }

    .by-location .section-intro .gallery-button {
        margin-left: 20px
    }

    .location-visuals {
        display: grid;
        grid-template-rows: 330px auto;
        gap: 22px;
        min-height: 0
    }

    .location-map {
        position: relative;
        left: auto;
        top: auto;
        grid-row: 1;
        width: min(310px, 86vw);
        min-height: 330px;
        margin: auto;
        transform: none
    }

    .location-map:before {
        inset: 3% 0
    }

    .location-map svg {
        width: 138px;
        height: 290px
    }

    .region-list {
        position: relative;
        inset: auto;
        display: flex !important;
        grid-row: 2;
        flex-wrap: nowrap !important;
        align-items: stretch;
        gap: 13px;
        width: calc(100% + 16px);
        margin: 0 -16px 0 0;
        padding: 3px 16px 16px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory
    }

    .region-list a,
    .region-list a:nth-child(n) {
        position: relative;
        inset: auto;
        display: grid;
        flex: 0 0 156px;
        width: 156px;
        scroll-snap-align: start
    }

    .region-list a:nth-child(4),
    .region-list a:nth-child(5) {
        display: grid
    }

    .region-list a:nth-child(1) {
        margin-left: 0
    }

    .region-list img,
    .region-list a:nth-child(1) img,
    .region-list a:nth-child(5) img {
        height: 88px
    }
}

/* Recently Digitized: an ordered, quiet archive wall to close the page. */
.recently {
    position: relative;
    padding-block: 62px 78px;
    background: #fbf8ef
}

.recently:after {
    content: '';
    position: absolute;
    left: -65px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    background: url('../img/botanical-branch-line-art.svg') center/contain no-repeat;
    opacity: .035;
    transform: rotate(18deg);
    pointer-events: none
}

.recently .gallery-row-layout {
    display: block
}

.recently .recent-heading {
    display: grid;
    grid-template-columns: minmax(390px, .95fr) minmax(260px, 1fr) auto;
    align-items: end;
    gap: 38px;
    margin-bottom: 36px
}

.recently .recent-heading h2 {
    font-size: clamp(43px, 4vw, 58px)
}

.recently .recent-heading>p:not(.gallery-kicker) {
    max-width: 380px;
    margin: 0;
    padding: 0 0 2px;
    color: #59635c;
    line-height: 1.7
}

.recently .recent-heading .gallery-button {
    margin: 0 0 2px;
    white-space: nowrap
}

.recent-strip {
    display: grid;
    grid-template-columns: 1.06fr .92fr 1fr 1.08fr .9fr .94fr 1.02fr;
    align-items: end;
    gap: clamp(13px, 1.5vw, 23px);
    overflow: visible;
    padding: 0
}

.recent-strip a,
.recent-strip a:nth-child(even) {
    position: relative;
    display: block;
    margin: 0;
    min-width: 0
}

.recent-image {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid #d4d0c5;
    border-radius: 2px;
    background: #f0ece2;
    box-shadow: 0 4px 12px #25352b0a;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease
}

.recent-strip img {
    display: block;
    width: 100%;
    height: 245px;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: top;
    background: #eee8dc;
    border: 0;
    filter: saturate(.76) contrast(.98);
    transition: filter .3s ease
}

.recent-strip a:nth-child(1) img {
    height: 286px
}

.recent-strip a:nth-child(2) img {
    height: 250px
}

.recent-strip a:nth-child(3) img {
    height: 270px
}

.recent-strip a:nth-child(4) img {
    height: 292px
}

.recent-strip a:nth-child(5) img {
    height: 258px;
    object-fit: contain
}

.recent-strip a:nth-child(6) img {
    height: 244px
}

.recent-strip a:nth-child(7) img {
    height: 276px
}

.recent-image i {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f9f6edec;
    color: #405146;
    font: 500 8px/1 'Anuphan', sans-serif;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease
}

.recent-meta {
    display: block;
    margin: 0;
    padding: 11px 2px 0;
    color: #324039
}

.recent-meta em {
    display: block;
    overflow: hidden;
    font: italic 500 15px/1.15 'Cormorant Garamond', Georgia, serif;
    text-overflow: ellipsis;
    white-space: nowrap
}

.recent-meta small {
    display: block;
    margin-top: 5px;
    color: #777e77;
    font: 9px/1.2 'Anuphan', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase
}

.recent-strip a:hover .recent-image {
    transform: translateY(-5px);
    border-color: #b9b9ae;
    box-shadow: 0 10px 22px #25352b16
}

.recent-strip a:hover img {
    transform: none;
    filter: saturate(.9) contrast(1)
}

.recent-strip a:hover .recent-image i,
.recent-strip a:focus-visible .recent-image i {
    opacity: 1;
    transform: translateY(0)
}

@media(max-width:1080px) {
    .recently .recent-heading {
        grid-template-columns: minmax(250px, .8fr) 1fr auto;
        gap: 25px
    }

    .recent-strip {
        gap: 13px
    }

    .recent-strip img,
    .recent-strip a:nth-child(n) img {
        height: 235px
    }

    .recent-strip a:nth-child(1) img,
    .recent-strip a:nth-child(4) img {
        height: 265px
    }

    .recent-meta em {
        font-size: 13px
    }
}

@media(max-width:800px) {
    .recently {
        padding-block: 54px 68px
    }

    .recently .recent-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 24px
    }

    .recently .recent-heading h2 {
        grid-column: 1
    }

    .recently .recent-heading>p:not(.gallery-kicker) {
        grid-column: 1;
        margin: 0
    }

    .recently .recent-heading .gallery-button {
        grid-column: 2;
        grid-row: 1/3;
        align-self: end
    }

    .recent-strip {
        display: flex;
        align-items: flex-end;
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 6px 0 18px
    }

    .recent-strip a,
    .recent-strip a:nth-child(even) {
        flex: 0 0 142px;
        scroll-snap-align: start
    }

    .recent-strip a:nth-child(1),
    .recent-strip a:nth-child(4) {
        flex-basis: 158px
    }

    .recent-strip img,
    .recent-strip a:nth-child(n) img {
        height: 225px
    }

    .recent-strip a:nth-child(1) img,
    .recent-strip a:nth-child(4) img {
        height: 254px
    }

    .recent-image i {
        display: none
    }

    .recent-meta em {
        font-size: 14px
    }

    .recent-meta small {
        font-size: 9px
    }
}

@media(max-width:580px) {
    .recently .recent-heading {
        display: block;
        margin-bottom: 30px
    }

    .recently .recent-heading>p:not(.gallery-kicker) {
        margin: 14px 0 18px
    }

    .recently .recent-heading .gallery-button {
        margin-left: 20px
    }

    .recent-strip {
        margin-right: -16px
    }

    .recent-strip a,
    .recent-strip a:nth-child(even) {
        flex-basis: 138px
    }

    .recent-strip a:nth-child(1),
    .recent-strip a:nth-child(4) {
        flex-basis: 150px
    }

    .recent-strip img,
    .recent-strip a:nth-child(n) img {
        height: 218px
    }

    .recent-strip a:nth-child(1) img,
    .recent-strip a:nth-child(4) img {
        height: 242px
    }
}

/* Premium botanical editorial pass — same information architecture, richer visual language. */
.gallery-page {
    background: #fcfbf7;
    color: #29372f
}

.gallery-page main {
    background: transparent
}

.gallery-container {
    width: min(1420px, calc(100% - 112px))
}

.gallery-section {
    border: 0
}

.gallery-section h2 {
    color: #173c30;
    font-size: clamp(54px, 5vw, 78px);
    font-weight: 500;
    line-height: .9;
    letter-spacing: -.045em
}

.gallery-button {
    padding: 12px 23px;
    box-shadow: 0 8px 18px #2b3e3115;
    font-size: 14px;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease
}

.gallery-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px #2b3e3120
}

.section-intro>p:not(.gallery-kicker) {
    font-size: 15px;
    line-height: 1.8
}

.gallery-hero {
    min-height: 520px;
    background: radial-gradient(circle at 72% 25%, #fffaf0 0, transparent 34%), linear-gradient(120deg, #eee8db, #f8f4e9 62%, #e1e7da)
}

.gallery-hero:before {
    background-size: 88px 88px;
    opacity: .7
}

.gallery-hero:after {
    background-size: 52% auto;
    opacity: .22
}

.gallery-hero-layout {
    min-height: 520px
}

.gallery-hero-copy {
    max-width: 920px;
    padding: 70px 0 58px
}

.gallery-hero h1 {
    font-size: clamp(72px, 7vw, 112px);
    font-weight: 500;
    letter-spacing: .005em;
    text-shadow: 0 10px 28px #2540340b
}

.gallery-hero-intro {
    max-width: 680px;
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.75
}

.gallery-search {
    max-width: 760px;
    min-height: 66px;
    margin-top: 25px;
    border-color: #aaa999;
    border-radius: 999px;
    box-shadow: 0 18px 38px #263b2e18
}

.gallery-search input {
    height: 64px;
    font-size: 15px
}

.gallery-search button {
    width: 48px;
    height: 48px;
    background: #73552f
}

.gallery-count {
    bottom: 29px;
    background: #f4efe4;
    font-size: 12px
}

.hero-sheet {
    border-width: 6px;
    border-radius: 3px;
    box-shadow: 0 22px 45px #2d392d2b
}

.hero-sheet-back {
    width: 190px;
    height: 274px
}

.hero-sheet-front {
    width: 205px;
    height: 292px
}

.threatened {
    padding: 92px 0;
    background: linear-gradient(135deg, #fbf7ee 0%, #f4ede0 100%)
}

.threatened .gallery-container {
    position: relative;
    padding: 68px clamp(42px, 5vw, 78px);
    border: 1px solid #d8d0c1;
    border-radius: 24px;
    background: #fcf9f1;
    box-shadow: 0 24px 60px #4036280c
}

.threatened-layout {
    grid-template-columns: minmax(275px, 330px) minmax(0, 1fr);
    gap: clamp(60px, 7vw, 115px)
}

.threatened .section-intro .gallery-kicker {
    font-size: 13px
}

.threatened .section-intro h2 {
    font-size: clamp(62px, 5.6vw, 88px);
    line-height: .86
}

.threatened .section-intro>p:not(.gallery-kicker) {
    max-width: 310px;
    margin-top: 28px;
    font-size: 15px
}

.threatened-strip {
    grid-template-columns: minmax(280px, 1.3fr) minmax(210px, .9fr) minmax(170px, .72fr);
    gap: clamp(22px, 2.5vw, 38px)
}

.threatened-item>.threatened-picture {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 38px #25372c1d
}

.threatened-item--lead .threatened-picture {
    height: 455px
}

.threatened-item--sheet .threatened-picture {
    height: 375px
}

.threatened-item--detail .threatened-picture {
    height: 255px
}

.threatened-item .threatened-meta {
    padding-top: 14px;
    font-size: 20px
}

.threatened-item .threatened-meta small {
    font-size: 10px
}

.status-badge {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    box-shadow: 0 5px 13px #18271f28
}

.focus-groups {
    padding: 96px 0 106px;
    background: linear-gradient(150deg, #e5eadf 0%, #eef1e8 55%, #dfe7dc 100%)
}

.focus-groups .section-intro {
    margin-bottom: 52px
}

.focus-groups .section-intro h2 {
    font-size: clamp(58px, 5vw, 76px)
}

.focus-strip {
    grid-template-columns: 1.18fr 1fr .96fr 1fr 1.12fr;
    gap: clamp(18px, 2vw, 30px)
}

.focus-tile img,
.focus-tile--wide img {
    height: 310px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 16px 34px #21352a18;
    filter: saturate(.82) contrast(.98)
}

.focus-tile:nth-child(1) img {
    height: 372px
}

.focus-tile:nth-child(2) img {
    height: 320px
}

.focus-tile:nth-child(3) img {
    height: 342px;
    padding: 18px
}

.focus-tile:nth-child(4) img {
    height: 300px
}

.focus-tile:nth-child(5) img {
    height: 354px
}

.focus-tile span {
    padding: 17px 5px 0
}

.focus-tile strong {
    font-size: clamp(21px, 1.65vw, 27px)
}

.focus-tile small {
    margin-top: 3px;
    font-size: 10px
}

.focus-tile:hover img {
    transform: translateY(-7px);
    box-shadow: 0 24px 42px #21352a22
}

.by-location {
    padding: 96px 0;
    background: linear-gradient(135deg, #f5ecdc, #fbf6eb 55%, #eee5d6)
}

.by-location:after {
    width: 340px;
    height: 340px;
    opacity: .08
}

.by-location .gallery-container {
    padding: 62px clamp(38px, 5vw, 72px);
    border-radius: 26px;
    background: #f9f5ebcc;
    box-shadow: 0 24px 60px #4036280c;
    backdrop-filter: blur(4px)
}

.location-layout {
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
    gap: clamp(55px, 7vw, 105px)
}

.by-location .section-intro h2 {
    font-size: clamp(62px, 5.4vw, 84px)
}

.location-visuals {
    min-height: 540px
}

.location-map {
    width: 330px;
    min-height: 485px;
    background: radial-gradient(circle at center, #dfe6d9 0 1.2px, transparent 1.8px) 0 0/21px 21px
}

.location-map:before {
    inset: 2% -5%;
    border-color: #9fab9859;
    box-shadow: inset 0 0 60px #9eae9814
}

.location-map svg {
    width: 190px;
    height: 425px;
    fill: #718b6c;
    filter: drop-shadow(15px 17px 0 #cbd5c6)
}

.region-list a {
    width: 180px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 14px 30px #26372c18
}

.region-list a:nth-child(1) {
    left: 0;
    top: 5px;
    width: 205px
}

.region-list a:nth-child(2) {
    right: 0;
    top: 15px;
    width: 194px
}

.region-list a:nth-child(3) {
    right: -1%;
    top: 218px;
    width: 176px
}

.region-list a:nth-child(4) {
    right: 12%;
    bottom: -5px;
    width: 190px
}

.region-list a:nth-child(5) {
    left: 1%;
    bottom: 12px;
    width: 210px
}

.region-list img {
    height: 112px
}

.region-list a:nth-child(1) img,
.region-list a:nth-child(5) img {
    height: 125px
}

.region-list strong {
    padding: 11px 12px 0;
    font-size: 19px
}

.region-list small {
    padding-left: 12px;
    font-size: 10px
}

.region-list b {
    margin-right: 12px
}

.region-list a:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px #26372c22
}

.recently {
    padding: 94px 0 116px;
    background: linear-gradient(180deg, #f8f4e9, #eee8dc)
}

.recently .recent-heading {
    margin-bottom: 52px
}

.recently .recent-heading h2 {
    font-size: clamp(58px, 5vw, 76px)
}

.recent-strip {
    gap: clamp(17px, 1.8vw, 28px)
}

.recent-image {
    border: 0;
    border-radius: 10px;
    background: #f2ede3;
    box-shadow: 0 14px 30px #29382e14
}

.recent-strip img {
    height: 320px
}

.recent-strip a:nth-child(1) img {
    height: 382px
}

.recent-strip a:nth-child(2) img {
    height: 336px
}

.recent-strip a:nth-child(3) img {
    height: 360px
}

.recent-strip a:nth-child(4) img {
    height: 390px
}

.recent-strip a:nth-child(5) img {
    height: 345px
}

.recent-strip a:nth-child(6) img {
    height: 328px
}

.recent-strip a:nth-child(7) img {
    height: 368px
}

.recent-meta {
    padding: 15px 4px 0
}

.recent-meta em {
    font-size: 18px
}

.recent-meta small {
    margin-top: 7px;
    font-size: 10px
}

.recent-image i {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    font-size: 9px
}

.recent-strip a:hover .recent-image {
    transform: translateY(-7px);
    box-shadow: 0 22px 40px #25352b20
}

@media(max-width:1180px) {
    .gallery-container {
        width: calc(100% - 64px)
    }

    .threatened .gallery-container,
    .by-location .gallery-container {
        padding-inline: 42px
    }

    .threatened-strip {
        gap: 20px
    }

    .threatened-item--lead .threatened-picture {
        height: 390px
    }

    .threatened-item--sheet .threatened-picture {
        height: 335px
    }

    .threatened-item--detail .threatened-picture {
        height: 220px
    }

    .focus-tile img,
    .focus-tile--wide img,
    .focus-tile:nth-child(n) img {
        height: 290px
    }

    .focus-tile:nth-child(1) img,
    .focus-tile:nth-child(5) img {
        height: 325px
    }

    .location-visuals {
        min-height: 470px
    }

    .location-map {
        width: 270px;
        min-height: 430px
    }

    .location-map svg {
        width: 160px;
        height: 375px
    }

    .region-list a:nth-child(1) {
        width: 170px
    }

    .region-list a:nth-child(2) {
        width: 165px
    }

    .region-list a:nth-child(3) {
        width: 155px
    }

    .region-list a:nth-child(4) {
        width: 165px
    }

    .region-list a:nth-child(5) {
        width: 175px
    }

    .recent-strip img,
    .recent-strip a:nth-child(n) img {
        height: 290px
    }

    .recent-strip a:nth-child(1) img,
    .recent-strip a:nth-child(4) img {
        height: 330px
    }
}

@media(max-width:800px) {
    .gallery-container {
        width: calc(100% - 44px)
    }

    .gallery-hero {
        min-height: 470px
    }

    .gallery-hero-layout {
        min-height: 470px
    }

    .gallery-hero-copy {
        padding-top: 58px
    }

    .threatened,
    .focus-groups,
    .by-location,
    .recently {
        padding-block: 72px
    }

    .threatened .gallery-container,
    .by-location .gallery-container {
        padding: 48px 34px
    }

    .threatened-layout {
        gap: 45px
    }

    .threatened-item--lead .threatened-picture {
        height: 340px
    }

    .threatened-item--sheet .threatened-picture {
        height: 285px
    }

    .threatened-item--detail .threatened-picture {
        height: 195px
    }

    .focus-tile img,
    .focus-tile--wide img,
    .focus-tile:nth-child(n) img {
        height: 285px
    }

    .focus-tile:nth-child(2) img,
    .focus-tile:nth-child(4) img {
        height: 250px
    }

    .location-visuals {
        min-height: 430px
    }

    .recent-strip img,
    .recent-strip a:nth-child(n) img {
        height: 265px
    }

    .recent-strip a:nth-child(1) img,
    .recent-strip a:nth-child(4) img {
        height: 300px
    }
}

@media(max-width:580px) {
    .gallery-container {
        width: calc(100% - 32px)
    }

    .gallery-section h2 {
        font-size: 48px
    }

    .gallery-hero {
        min-height: 430px
    }

    .gallery-hero-layout {
        min-height: 430px
    }

    .gallery-hero-copy {
        padding-top: 44px
    }

    .gallery-hero h1 {
        font-size: 54px
    }

    .threatened,
    .focus-groups,
    .by-location,
    .recently {
        padding-block: 58px
    }

    .threatened .gallery-container,
    .by-location .gallery-container {
        width: calc(100% - 24px);
        padding: 42px 20px;
        border-radius: 18px
    }

    .threatened .section-intro h2,
    .by-location .section-intro h2 {
        font-size: 52px
    }

    .threatened-item--lead .threatened-picture {
        height: 330px
    }

    .threatened-item--sheet .threatened-picture {
        height: 225px
    }

    .threatened-item--detail .threatened-picture {
        height: 155px
    }

    .focus-tile,
    .focus-tile--wide {
        flex-basis: 232px
    }

    .focus-tile:nth-child(2),
    .focus-tile:nth-child(4) {
        flex-basis: 210px
    }

    .focus-tile img,
    .focus-tile--wide img,
    .focus-tile:nth-child(n) img {
        height: 300px
    }

    .focus-tile:nth-child(2) img,
    .focus-tile:nth-child(4) img {
        height: 270px
    }

    .location-visuals {
        grid-template-rows: 375px auto
    }

    .location-map {
        width: min(340px, 92vw);
        min-height: 375px
    }

    .location-map svg {
        width: 162px;
        height: 330px
    }

    .region-list a,
    .region-list a:nth-child(n) {
        flex-basis: 178px;
        width: 178px
    }

    .region-list img,
    .region-list a:nth-child(1) img,
    .region-list a:nth-child(5) img {
        height: 108px
    }

    .recent-strip a,
    .recent-strip a:nth-child(even) {
        flex-basis: 165px
    }

    .recent-strip a:nth-child(1),
    .recent-strip a:nth-child(4) {
        flex-basis: 182px
    }

    .recent-strip img,
    .recent-strip a:nth-child(n) img {
        height: 270px
    }

    .recent-strip a:nth-child(1) img,
    .recent-strip a:nth-child(4) img {
        height: 308px
    }

    .recent-meta em {
        font-size: 16px
    }

    .recent-meta small {
        font-size: 10px
    }
}

/* By Location — quiet herbarium infographic composition. */
.by-location {
    position: relative;
    overflow: hidden;
    padding: 28px 0 78px;
    background: transparent
}

.by-location:before,
.by-location:after {
    content: '';
    position: absolute;
    z-index: 0;
    width: 230px;
    height: 230px;
    background: url('../img/botanical-branch-line-art.svg') center/contain no-repeat;
    opacity: .085;
    pointer-events: none
}

.by-location:before {
    left: -72px;
    bottom: -35px;
    transform: rotate(-22deg)
}

.by-location:after {
    right: -34px;
    top: -34px;
    transform: rotate(130deg)
}

.by-location .gallery-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: clamp(44px, 7vw, 110px);
    align-items: center;
    width: min(1420px, calc(100% - 92px));
    padding: 10px 0 40px;
    background: transparent;
    box-shadow: none
}

.location-copy .gallery-kicker {
    position: relative;
    margin: 0 0 8px;
    padding-bottom: 13px;
    font: 500 13px/1 'Cormorant Garamond', Georgia, serif;
    letter-spacing: .02em;
    color: #806740
}

.location-copy .gallery-kicker:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 26px;
    border-bottom: 1px solid #806740
}

.location-copy .gallery-kicker span {
    font-size: 16px
}

.by-location .section-intro h2 {
    padding-left: 0;
    font-size: clamp(54px, 5vw, 74px);
    color: #152d24
}

.by-location .section-intro h2:before {
    display: none
}

.location-copy>p:not(.gallery-kicker) {
    max-width: 255px;
    margin: 19px 0 22px;
    padding-left: 0;
    color: #59635b;
    font-size: 13px;
    line-height: 1.6
}

.location-copy .gallery-button {
    margin-left: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: #76582d;
    color: #fff;
    box-shadow: none;
    font-size: 11px
}

.location-copy .gallery-button:hover {
    background: #614821;
    transform: translateY(-1px)
}

.location-visuals {
    position: relative;
    min-height: 860px
}

.by-location__connectors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible
}

.by-location__connectors path {
    fill: none;
    stroke: #899683;
    stroke-width: 1.2;
    stroke-dasharray: 2 5;
    opacity: .75
}

.by-location__botanical-collage {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    display: block;
    width: 150%;
    height: auto;
    max-width: none !important;
    max-height: none;
    object-fit: contain;
    opacity: .14;
    pointer-events: none;
    transform: translate(-50%, -50%)
}

.location-map {
    position: absolute;
    z-index: 1;
    left: 49%;
    top: 50%;
    display: grid;
    width: 520px;
    min-height: 830px;
    place-items: center;
    background: none;
    transform: translate(-50%, -50%)
}

.location-map:before {
    display: none
}

.location-map svg {
    width: 160px;
    height: 340px;
    fill: #95a985;
    filter: none;
    transform: scale(3);
    transform-origin: center
}

.gallery-thailand-map-paths path {
    stroke: #f5f0e5;
    stroke-width: .45;
    vector-effect: non-scaling-stroke
}

.location-map .map-line {
    fill: none;
    stroke: #cbd7c6;
    stroke-width: 2;
    opacity: .9
}

.map-markers circle {
    fill: #6d835f;
    stroke: #faf8f0;
    stroke-width: 2
}

.region-list {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block !important;
    width: auto;
    font-size: inherit
}

.region-list a {
    position: absolute;
    display: grid;
    grid-template-columns: 96px minmax(92px, 1fr);
    align-items: stretch;
    gap: 0;
    width: 186px;
    min-height: 64px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #eee9dd;
    border-radius: 7px;
    background: #fffdf8;
    color: #24342c;
    box-shadow: 0 7px 16px #3a40320e;
    transition: transform .22s ease, box-shadow .22s ease
}

.region-list a:hover {
    padding: 0;
    background: #fffdf8;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px #3a40321b
}

.region-list img,
.region-list a:nth-child(n) img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 64px;
    object-fit: cover;
    filter: saturate(.82) contrast(.98)
}

.region-list a > span {
    display: block;
    padding: 12px 10px
}

.region-list strong {
    display: block;
    padding: 0;
    font: 600 15px/1 'Cormorant Garamond', Georgia, serif
}

.region-list small {
    display: block;
    padding: 4px 0 0;
    color: #677067;
    font: 12px/1.4 var(--herbarium-font-body);
    white-space: nowrap
}

.region-list .region-digitized-count {
    display: block;
    margin-bottom: 3px;
    color: inherit;
    font: 600 22px/1.2 var(--herbarium-font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.region-list b {
    display: none
}

.region-list a:nth-child(1) {
    left: 0;
    top: 26px;
    width: 194px
}

.region-list a:nth-child(2) {
    right: 0;
    top: 29px;
    width: 198px
}

.region-list a:nth-child(3) {
    left: 2%;
    top: 168px;
    width: 184px
}

.region-list a:nth-child(4) {
    right: 4%;
    top: 198px;
    width: 190px
}

.region-list a:nth-child(5) {
    left: 7%;
    bottom: 21px;
    width: 195px
}

@media(max-width:980px) {
    .by-location .gallery-container {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 38px;
        width: calc(100% - 56px)
    }

    .location-visuals {
        min-height: 620px
    }

    .location-map {
        width: 260px;
        min-height: 580px
    }

    .location-map svg {
        width: 137px;
        height: 300px;
        transform: scale(1.7)
    }

    .by-location__botanical-collage {
        width: 315%;
        opacity: .1
    }

    .region-list a {
        grid-template-columns: 80px minmax(82px, 1fr);
        width: 165px
    }

    .region-list a:nth-child(1) {
        width: 172px
    }

    .region-list a:nth-child(2) {
        width: 175px
    }

    .region-list a:nth-child(3) {
        width: 160px
    }

    .region-list a:nth-child(4) {
        width: 165px
    }

    .region-list a:nth-child(5) {
        width: 175px
    }
}

@media(max-width:700px) {
    .by-location {
        padding-block: 58px
    }

    .by-location .gallery-container {
        display: block;
        width: calc(100% - 40px);
        padding: 0
    }

    .location-copy {
        margin-bottom: 33px
    }

    .location-visuals {
        min-height: 355px
    }

    .location-map {
        width: 170px;
        min-height: 315px
    }

    .location-map svg {
        width: 132px;
        height: 292px;
        transform: scale(1.15)
    }

    .by-location__botanical-collage {
        width: 300%;
        opacity: .08
    }

    .region-list a {
        grid-template-columns: 72px minmax(75px, 1fr);
        min-height: 57px;
        width: 150px
    }

    .region-list img,
    .region-list a:nth-child(n) img {
        min-height: 57px
    }

    .region-list a > span {
        padding: 10px 8px
    }

    .region-list strong {
        font-size: 14px
    }

    .region-list small {
        font-size: 12px
    }

    .region-list a:nth-child(1) {
        left: 0;
        top: 5px;
        width: 158px
    }

    .region-list a:nth-child(2) {
        right: 0;
        top: 15px;
        width: 160px
    }

    .region-list a:nth-child(3) {
        left: 0;
        top: 124px;
        width: 148px
    }

    .region-list a:nth-child(4) {
        right: 0;
        top: 154px;
        width: 154px
    }

    .region-list a:nth-child(5) {
        left: 4%;
        bottom: 4px;
        width: 160px
    }
}

@media(max-width:430px) {
    .by-location .gallery-container {
        width: calc(100% - 30px)
    }

    .location-visuals {
        min-height: 650px
    }

    .location-map {
        top: 40%;
        width: 158px;
        min-height: 285px
    }

    .location-map svg {
        width: 121px;
        height: 268px
    }

    .by-location__connectors {
        display: none
    }

    .region-list a {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        min-height: 62px;
        margin-bottom: 9px;
        grid-template-columns: 92px 1fr
    }

    .region-list img,
    .region-list a:nth-child(n) img {
        min-height: 62px
    }

    .region-list {
        position: absolute;
        top: 285px;
        display: grid !important;
        gap: 0
    }

    .region-list a:nth-child(5) {
        margin-bottom: 0
    }
}

/* Gallery map follows the specimen-page regional split: labels left and right, map centered. */
@media(min-width:1051px) {
    .by-location .gallery-container {
        grid-template-columns: 280px minmax(0, 1fr);
        align-items: center
    }

    .location-visuals {
        display: grid;
        grid-template-columns: minmax(165px, 1fr) minmax(485px, 1.65fr) minmax(165px, 1fr);
        grid-template-rows: repeat(3, minmax(240px, 1fr));
        align-items: center;
        min-height: 1040px
    }

    .location-map {
        position: relative;
        left: auto;
        top: auto;
        grid-column: 2;
        grid-row: 1 / -1;
        width: 485px;
        min-height: 975px;
        justify-self: center;
        transform: none
    }

    .location-map svg {
        transform: scale(2.75)
    }

    .region-list {
        position: static;
        z-index: 2;
        display: contents !important
    }

    .region-list a,
    .region-list a:nth-child(n) {
        position: relative;
        inset: auto;
        display: grid;
        grid-template: 1fr / 1fr;
        align-self: center;
        justify-self: start;
        width: min(100%, 204px);
        height: 115px;
        min-height: 0;
        margin: 0;
        border-radius: 8px;
        border-color: #fffdf8;
        box-shadow: 0 10px 22px #26372c1c
    }

    .region-list img,
    .region-list a:nth-child(n) img {
        grid-area: 1 / 1;
        width: 100%;
        height: 100%;
        min-height: 0;
        filter: saturate(.82) contrast(.98)
    }

    .region-list a > span {
        z-index: 1;
        align-self: end;
        grid-area: 1 / 1;
        padding: 19px 10px 8px;
        background: linear-gradient(transparent, rgb(20 34 26 / .78));
        color: #fff
    }

    .region-list strong {
        color: #fff;
        font-size: 17px;
        text-shadow: 0 1px 4px #14221aaa
    }

    .region-list small {
        padding-top: 3px;
        color: #f7f4eb;
        font-size: 12px;
        text-shadow: 0 1px 4px #14221aaa
    }

    .region-list a:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        transform: translate(49px, 51px) rotate(-1.2deg)
    }

    .region-list a:nth-child(2) {
        grid-column: 3;
        grid-row: 1;
        justify-self: start;
        transform: translate(-107px, 6px) rotate(.8deg)
    }

    .region-list a:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        transform: translate(66px, -29px) rotate(.7deg)
    }

    .region-list a:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
        transform: translate(-90px, 25px) rotate(-1deg)
    }

    .region-list a:nth-child(5) {
        grid-column: 1;
        grid-row: 3;
        justify-self: end;
        transform: translate(89px, -146px) rotate(-.6deg)
    }

    .by-location__connectors {
        z-index: 0
    }

    .location-map {
        z-index: 1
    }

    .region-list a {
        z-index: 2
    }
}

/* By Location follows the Specimens page: three image labels on each side of the map. */
@media(min-width:1051px) {
    .by-location .gallery-container {
        grid-template-columns: 255px minmax(0, 1fr);
        grid-template-rows: 1fr;
        gap: clamp(34px, 3vw, 54px);
        align-items: center
    }

    .location-copy {
        grid-column: 1;
        grid-row: 1;
        align-self: center
    }

    .location-visuals {
        grid-column: 2;
        grid-row: 1;
        display: grid;
        grid-template-columns: minmax(150px, 205px) minmax(300px, 390px) minmax(150px, 205px);
        grid-template-rows: 1fr;
        gap: clamp(28px, 2.7vw, 48px);
        align-items: center;
        justify-content: center;
        min-height: 720px
    }

    .location-map {
        position: relative;
        inset: auto;
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        min-height: 680px;
        justify-self: center;
        transform: none
    }

    .location-map svg {
        width: 170px;
        height: 390px;
        transform: scale(2)
    }

    .region-list,
    .region-list--left,
    .region-list--right {
        position: relative;
        inset: auto;
        z-index: 2;
        display: grid !important;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 42px;
        width: 100%;
        height: 620px;
        overflow: visible
    }

    .region-list--left {
        grid-column: 1;
        grid-row: 1
    }

    .region-list--right {
        grid-column: 3;
        grid-row: 1
    }

    .region-list a,
    .region-list a:nth-child(n) {
        position: relative;
        inset: auto;
        grid-column: auto;
        grid-row: auto;
        display: grid;
        grid-template: 1fr / 1fr;
        align-self: center;
        justify-self: stretch;
        width: 100%;
        height: 142px;
        min-height: 0;
        margin: 0;
        overflow: hidden;
        border: 5px solid #fffdf8;
        border-radius: 5px;
        background: #fffdf8;
        box-shadow: 0 12px 28px rgb(27 43 34 / 14%);
        transform: none
    }

    .region-list a:hover,
    .region-list a:nth-child(n):hover {
        transform: translateY(-4px);
        box-shadow: 0 17px 34px rgb(27 43 34 / 20%)
    }

    .region-list img,
    .region-list a:nth-child(n) img {
        grid-area: 1 / 1;
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        filter: saturate(.82) contrast(.98)
    }

    .region-list a > span {
        z-index: 1;
        align-self: end;
        grid-area: 1 / 1;
        padding: 28px 12px 10px;
        background: linear-gradient(transparent, rgb(19 34 25 / 82%));
        color: #fff
    }

    .region-list strong {
        color: #fff;
        font-size: 18px;
        text-shadow: 0 1px 4px #14221aaa
    }

    .region-list small {
        padding-top: 4px;
        color: #f7f4eb;
        font-size: 12px;
        text-shadow: 0 1px 4px #14221aaa
    }

    .by-location__connectors {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: block;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: none
    }

    .by-location__connector-underlay {
        fill: none;
        stroke: rgb(250 248 240 / 94%);
        stroke-width: 5;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    .by-location__connector-line {
        fill: none;
        stroke: #879c80;
        stroke-width: 1.4;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 3 5
    }

    .by-location__connector-dot {
        fill: #6f8669;
        stroke: #fbf9f2;
        stroke-width: 2
    }
}

@media(max-width:1050px) {
    .by-location__connectors {
        display: none
    }

    .region-list--left,
    .region-list--right {
        display: contents !important
    }
}

/* Reference-aligned split hero: editorial story left, botanical collection right. */
.gallery-hero {
    min-height: 570px;
    background: linear-gradient(100deg, #f8f3e8 0%, #f5f0e5 48%, #263b2e 48%, #172a21 100%)
}

.gallery-hero:before {
    z-index: 0;
    background-size: 82px 82px;
    opacity: .45;
    mask-image: linear-gradient(90deg, #000 0 48%, transparent 70%)
}

.gallery-hero:after {
    z-index: 0;
    background-position: left bottom;
    background-size: 48% auto;
    opacity: .25
}

.gallery-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(480px, 1.07fr);
    min-height: 570px;
    text-align: left
}

.gallery-hero-copy {
    z-index: 3;
    max-width: 680px;
    margin: 0;
    padding: 72px 58px 62px 0
}

.gallery-hero h1 {
    font-size: clamp(70px, 6.4vw, 102px);
    line-height: .82;
    letter-spacing: -.03em
}

.gallery-hero-intro {
    max-width: 570px;
    margin: 25px 0 18px;
    font-size: 16px
}

.gallery-search {
    max-width: 650px;
    margin: 24px 0 0
}

.gallery-count {
    position: relative;
    left: auto;
    bottom: auto;
    display: inline-block;
    margin: 17px 0 0 22px;
    padding: 0;
    background: transparent;
    transform: none;
    color: #755f42
}

.gallery-count:before {
    right: auto;
    left: calc(100% + 18px);
    width: 70px
}

.gallery-count:after {
    display: none
}

.gallery-hero-art {
    position: relative;
    inset: auto;
    align-self: stretch;
    min-height: 570px;
    overflow: visible
}

.gallery-hero-art:before {
    content: '';
    position: absolute;
    inset: 0 -20vw 0 -3vw;
    background: radial-gradient(circle at 34% 42%, #657657 0%, #33482f 38%, #17291f 75%);
    opacity: .92
}

.hero-flower {
    position: absolute;
    z-index: 2;
    left: -12%;
    top: 50%;
    width: 63%;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 25px 34px #101b1640);
    transform: translateY(-50%)
}

.hero-sheet {
    z-index: 3;
    border-color: #eee6d7;
    box-shadow: 0 24px 46px #0d171149
}

.hero-sheet-back {
    right: 3%;
    top: 40px;
    width: 205px;
    height: 305px;
    transform: rotate(5deg);
    opacity: .92
}

.hero-sheet-front {
    right: 15%;
    bottom: 24px;
    width: 180px;
    height: 255px;
    transform: rotate(4deg)
}

.hero-branch {
    z-index: 1;
    right: -6%;
    left: auto;
    bottom: -35px;
    width: 370px;
    opacity: .16;
    filter: invert(1)
}

@media(max-width:1050px) {
    .gallery-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(380px, .85fr)
    }

    .gallery-hero-copy {
        padding-right: 35px
    }

    .gallery-hero h1 {
        font-size: 72px
    }

    .hero-flower {
        left: -10%;
        width: 68%
    }

    .hero-sheet-back {
        right: -2%;
        width: 175px;
        height: 265px
    }

    .hero-sheet-front {
        right: 10%;
        width: 160px;
        height: 230px
    }
}

@media(max-width:800px) {
    .gallery-hero {
        min-height: 720px;
        background: linear-gradient(180deg, #f8f3e8 0%, #f5f0e5 58%, #24382b 58%, #172a21 100%)
    }

    .gallery-hero-layout {
        display: block;
        min-height: 720px
    }

    .gallery-hero-copy {
        max-width: 680px;
        padding: 54px 0 300px
    }

    .gallery-hero h1 {
        font-size: 68px
    }

    .gallery-hero-art {
        position: absolute;
        inset: auto 0 0;
        height: 300px;
        min-height: 0
    }

    .gallery-hero-art:before {
        inset: 0 -30px
    }

    .hero-flower {
        left: 4%;
        top: 51%;
        width: 43%;
        max-height: 285px
    }

    .hero-sheet-back {
        right: 7%;
        top: 18px;
        width: 135px;
        height: 200px
    }

    .hero-sheet-front {
        right: 25%;
        bottom: -12px;
        width: 120px;
        height: 175px
    }

    .hero-branch {
        width: 250px
    }

    .gallery-count {
        color: #745f43
    }
}

@media(max-width:580px) {
    .gallery-hero {
        min-height: 675px
    }

    .gallery-hero-layout {
        min-height: 675px
    }

    .gallery-hero-copy {
        padding: 42px 0 280px
    }

    .gallery-hero h1 {
        font-size: 54px
    }

    .gallery-hero-intro {
        font-size: 14px
    }

    .gallery-search {
        margin-top: 19px
    }

    .gallery-count {
        margin-left: 12px;
        font-size: 10px
    }

    .gallery-hero-art {
        height: 270px
    }

    .hero-flower {
        left: -7%;
        width: 58%;
        max-height: 250px
    }

    .hero-sheet-back {
        right: 1%;
        width: 105px;
        height: 158px
    }

    .hero-sheet-front {
        right: 24%;
        width: 96px;
        height: 143px
    }
}

/* Target-matched Threatened Species strip: no panel, no card background, compact horizontal rhythm. */
.threatened {
    position: relative;
    padding: 58px 0 72px;
    background: transparent;
    overflow: hidden
}

.threatened:before {
    content: '';
    position: absolute;
    left: -85px;
    bottom: -105px;
    width: 270px;
    height: 270px;
    background: url('../img/botanical-branch-line-art.svg') center/contain no-repeat;
    opacity: .055;
    transform: rotate(-12deg);
    pointer-events: none
}

.threatened .gallery-container {
    width: calc(100% - 160px);
    max-width: 1600px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none
}

.threatened-layout {
    display: grid;
    grid-template-columns: minmax(260px, 28%) minmax(0, 1fr) 118px;
    grid-template-areas: 'heading heading heading' 'copy strip note' 'actions actions actions';
    column-gap: clamp(32px, 4.5vw, 72px);
    row-gap: 38px;
    align-items: end
}

.threatened .threatened-heading {
    display: block;
    grid-area: heading;
    text-align: center
}

.threatened .threatened-heading .gallery-kicker {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    color: #8d6b3d;
    font-size: 10px;
    letter-spacing: .22em
}

.threatened .threatened-heading .gallery-kicker:after {
    display: none
}

.threatened .threatened-heading h2 {
    padding: 0;
    font-size: clamp(52px, 4.7vw, 74px);
    font-weight: 500;
    line-height: .88;
    letter-spacing: -.045em;
    white-space: nowrap
}

.threatened-marker {
    --marker-blue: #6f9fc9;
    --target-x: 84%;
    position: relative;
    display: block;
    width: 190px;
    height: 34px;
    margin: 8px auto -5px;
    background: linear-gradient(var(--marker-blue), var(--marker-blue)) var(--target-x) 0/1px 50% no-repeat, repeating-linear-gradient(to right, var(--marker-blue) 0 3px, transparent 3px 6px) 0 50%/var(--target-x) 1px no-repeat;
    opacity: .9
}

.threatened-marker:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--marker-blue);
    box-shadow: 0 0 0 4px rgb(111 159 201 / .13);
    transform: translate(-50%, -50%)
}

.threatened-marker:after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--target-x);
    width: 16px;
    height: 16px;
    border: 3px solid #3f83bd;
    border-radius: 50%;
    background: radial-gradient(circle, #3f83bd 0 3px, #f9f8ef 3.5px 6px, transparent 6.5px);
    box-shadow: 0 0 0 4px rgb(111 159 201 / .28);
    transform: translate(-50%, -50%)
}

.threatened .threatened-heading .gallery-kicker,
.threatened .threatened-heading h2,
.threatened .threatened-heading .threatened-tagline,
.threatened .threatened-heading .threatened-marker {
    grid-column: auto;
    grid-row: auto
}

.threatened .threatened-heading p.threatened-tagline {
    display: block;
    width: 100%;
    max-width: none;
    margin: 17px 0 0;
    padding: 0;
    text-align: center;
    color: #68736b;
    font: 500 12px/1.4 'Anuphan', sans-serif;
    letter-spacing: .08em
}

.threatened-copy {
    grid-area: copy;
    align-self: start;
    padding-bottom: 0
}

.threatened-copy h3 {
    margin: 0 0 16px;
    color: #183c30;
    font: 600 clamp(30px, 2.35vw, 38px)/.95 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -.025em
}

.threatened-copy>p {
    max-width: 340px;
    margin: 0 0 22px;
    color: #48544d;
    font-size: 16px;
    line-height: 1.7
}

.threatened-actions {
    grid-area: actions;
    justify-self: end;
}

.threatened-actions .gallery-link {
    display: inline-flex;
    margin: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: #183c30;
    color: #fff;
    box-shadow: 0 7px 16px #233a2d14;
    font: 500 14px/1 var(--herbarium-font-body)
}

.threatened-strip {
    grid-area: strip;
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(170px, 205px) minmax(150px, 185px);
    gap: clamp(40px, 3.4vw, 64px);
    align-items: start;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 455px;
    padding-top: 0
}

.threatened-item,
.threatened-item--lead {
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transition: transform .28s ease
}

.threatened-item>.threatened-picture {
    position: relative;
    inset: auto;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    box-shadow: 0 14px 30px rgb(31 45 36 / .18);
    transition: box-shadow .28s ease
}

.threatened-item--lead {
    transform: translateY(0)
}

.threatened-item--sheet {
    transform: translateY(82px)
}

.threatened-item--detail {
    transform: translateY(42px)
}

.threatened-item--lead:hover {
    transform: translateY(-14px)
}

.threatened-item--sheet:hover {
    transform: translateY(68px)
}

.threatened-item--detail:hover {
    transform: translateY(28px)
}

.threatened-item--lead .threatened-picture {
    height: 400px;
    background: transparent
}

.threatened-item--sheet .threatened-picture {
    height: 320px;
    background: transparent
}

.threatened-item--detail .threatened-picture {
    height: 250px;
    background: transparent
}

.threatened-item--sheet,
.threatened-item--detail {
    padding-bottom: 0
}

.threatened-item .threatened-picture img,
.threatened-item--lead .threatened-picture img,
.threatened-item--detail .threatened-picture img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    object-fit: cover;
    object-position: center;
    filter: saturate(.86) contrast(.98)
}

.threatened-item--sheet .threatened-picture img {
    object-fit: cover;
    object-position: top
}

.threatened-item .threatened-meta {
    position: static;
    display: block;
    padding: 11px 3px 0;
    background: none;
    color: #344038;
    font-size: 17px
}

.threatened-item .threatened-meta em {
    display: block;
    font: 600 18px/1.5 var(--herbarium-font-body);
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width:760px) {
    .threatened-item .threatened-meta em { font-size:16px; }
}

.threatened-item .threatened-meta small {
    display: block;
    margin: 0 0 5px;
    font-size: 9px;
    letter-spacing: .1em
}

.threatened-item:hover .threatened-picture {
    box-shadow: 0 20px 38px rgb(31 45 36 / .24)
}

.threatened-item:hover .threatened-picture img {
    transform: scale(1.012);
    filter: saturate(.96) contrast(1)
}

.status-badge {
    top: 10px;
    right: 10px;
    width: 29px;
    height: 29px;
    font-size: 8px;
    box-shadow: 0 3px 8px #18271f20
}

.threatened-editorial-note {
    grid-area: note;
    align-self: end;
    margin: 0 0 27px;
    color: #8a6b43;
    font: 600 12px/1.65 'Anuphan', sans-serif;
    letter-spacing: .14em
}

.threatened-editorial-note:after {
    content: '';
    display: block;
    width: 28px;
    margin-top: 12px;
    border-top: 1px solid #9b815d
}

@media(max-width:1120px) {
    .threatened .gallery-container {
        width: calc(100% - 64px)
    }

    .threatened-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        grid-template-areas: 'heading heading' 'copy strip' 'actions actions';
        column-gap: 34px
    }

    .threatened-editorial-note {
        display: none
    }

    .threatened-strip {
        grid-template-columns: minmax(205px, 1fr) minmax(150px, .72fr) minmax(135px, .62fr);
        gap: 16px
    }
}

@media(max-width:760px) {
    .threatened {
        padding: 54px 0 58px
    }

    .threatened .gallery-container {
        width: calc(100% - 44px)
    }

    .threatened-layout {
        grid-template-columns: 1fr;
        grid-template-areas: 'heading' 'copy' 'strip' 'actions';
        gap: 30px
    }

    .threatened-copy {
        padding: 0;
        text-align: center
    }

    .threatened-copy>p {
        max-width: 470px;
        margin: 0 auto 20px
    }

    .threatened-strip {
        display: grid;
        grid-template-columns: 1.08fr .76fr .7fr;
        gap: 14px;
        min-height: 330px;
        overflow: visible;
        padding: 0
    }

    .threatened-item--sheet {
        transform: translateY(54px)
    }

    .threatened-item--detail {
        transform: translateY(28px)
    }

    .threatened-item--lead .threatened-picture {
        height: 275px
    }

    .threatened-item--sheet .threatened-picture {
        height: 225px
    }

    .threatened-item--detail .threatened-picture {
        height: 165px
    }
}

@media(max-width:580px) {
    .threatened .gallery-container {
        width: calc(100% - 32px);
        padding: 0;
        border-radius: 0
    }

    .threatened .threatened-heading h2 {
        font-size: clamp(38px, 11vw, 50px)
    }

    .threatened-strip {
        display: flex;
        align-items: flex-end;
        gap: 14px;
        margin-right: -16px;
        padding: 2px 16px 16px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory
    }

    .threatened-item,
    .threatened-item--lead {
        flex: 0 0 210px;
        scroll-snap-align: start
    }

    .threatened-item--sheet {
        flex-basis: 170px
    }

    .threatened-item--detail {
        flex-basis: 150px
    }

    .threatened-item--lead .threatened-picture {
        height: 275px
    }

    .threatened-item--sheet .threatened-picture {
        height: 225px
    }

    .threatened-item--detail .threatened-picture {
        height: 165px
    }
}

/* Organic transitions around Section 02. */
.focus-groups {
    position: relative;
    overflow: hidden
}

.focus-groups__curve {
    position: absolute;
    z-index: 0;
    left: 0;
    width: 100%;
    pointer-events: none
}

.focus-groups__curve--top,
.focus-groups__curve--top-accent {
    top: -1px;
    height: 96px
}

.focus-groups__curve--bottom {
    z-index: 2;
    bottom: -1px;
    left: 0;
    display: block;
    width: 100%;
    height: 96px;
    pointer-events: none
}

.focus-groups__curve--bottom-accent {
    z-index: 3
}

@media(max-width:760px) {

    .focus-groups__curve--top,
    .focus-groups__curve--top-preview,
    .focus-groups__curve--top-accent {
        height: 54px
    }

    .focus-groups__curve--bottom {
        height: 64px
    }
}

@media(max-width:1120px) {
    .focus-groups>.gallery-container {
        width: calc(100% - 64px)
    }
}

@media(max-width:760px) {
    .focus-groups>.gallery-container {
        width: calc(100% - 44px)
    }
}

@media(max-width:580px) {
    .focus-groups>.gallery-container {
        width: calc(100% - 32px)
    }
}

/* Section 02: asymmetric editorial botanical collage. */
.focus-groups .focus-strip {
    position: relative;
    display: block;
    min-height: clamp(650px, 48vw, 760px);
    margin-top: 12px;
    overflow: visible;
    padding: 0
}

.focus-groups .focus-strip:before,
.focus-groups .focus-strip:after {
    content: '';
    position: absolute;
    z-index: 0;
    background: url('../img/botanical-branch-line-art.svg') center/contain no-repeat;
    pointer-events: none;
    opacity: .075
}

.focus-groups .focus-strip:before {
    top: 1%;
    left: 19%;
    width: 25%;
    height: 34%;
    transform: rotate(-13deg)
}

.focus-groups .focus-strip:after {
    right: 17%;
    bottom: 3%;
    width: 23%;
    height: 31%;
    transform: rotate(16deg) scaleX(-1)
}

.focus-groups .focus-tile,
.focus-groups .focus-tile--wide,
.focus-groups .focus-tile:nth-child(n) {
    position: absolute;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    margin: 0;
    border: 1px solid rgb(255 253 248 / .88);
    border-radius: 2px;
    background: none;
    overflow: hidden;
    box-shadow: 0 10px 24px rgb(31 45 36 / .12);
    transition: transform .3s ease, box-shadow .3s ease
}

.focus-groups .focus-tile:hover {
    box-shadow: 0 16px 32px rgb(31 45 36 / .18);
    transform: translateY(-7px)
}

.focus-groups .focus-tile img,
.focus-groups .focus-tile--wide img,
.focus-groups .focus-tile:nth-child(n) img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: #e7eadf;
    object-fit: cover;
    filter: saturate(.78) contrast(.98)
}

.focus-groups .focus-tile span {
    position: static;
    display: block;
    height: auto;
    padding: 10px 12px 11px;
    background: #fffdf8;
    color: #2c3932
}

.focus-groups .focus-tile strong {
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.05
}

.focus-groups .focus-tile small {
    margin-top: 4px;
    font-size: 9px
}

.focus-groups .focus-tile:nth-child(1) {
    z-index: 5;
    top: 3%;
    left: 31%;
    width: 35%;
    height: 64%
}

.focus-groups .focus-tile:nth-child(2) {
    z-index: 3;
    top: 19%;
    left: 4%;
    width: 28%;
    height: 39%
}

.focus-groups .focus-tile:nth-child(3) {
    z-index: 4;
    top: 24%;
    right: 3%;
    width: 27%;
    height: 32%
}

.focus-groups .focus-tile:nth-child(4) {
    z-index: 4;
    top: 57%;
    left: 18%;
    width: 17%;
    height: 32%
}

.focus-groups .focus-tile:nth-child(5) {
    z-index: 4;
    top: 55%;
    right: 16%;
    width: 16%;
    height: 29%
}

@media(max-width:1000px) {
    .focus-groups .focus-strip {
        min-height: clamp(560px, 64vw, 650px)
    }

    .focus-groups .focus-tile:nth-child(1) {
        left: 29%;
        width: 38%
    }

    .focus-groups .focus-tile:nth-child(2) {
        left: 1%;
        width: 30%
    }

    .focus-groups .focus-tile:nth-child(3) {
        right: 1%;
        width: 29%
    }

    .focus-groups .focus-tile:nth-child(4) {
        left: 14%;
        width: 19%
    }

    .focus-groups .focus-tile:nth-child(5) {
        right: 13%;
        width: 18%
    }
}

@media(max-width:700px) {
    .focus-groups .focus-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        min-height: 0;
        margin-top: 30px;
        overflow: visible
    }

    .focus-groups .focus-strip:before,
    .focus-groups .focus-strip:after {
        display: none
    }

    .focus-groups .focus-tile,
    .focus-groups .focus-tile--wide,
    .focus-groups .focus-tile:nth-child(n) {
        position: relative;
        inset: auto;
        width: auto;
        height: auto;
        min-height: 0;
        transform: none
    }

    .focus-groups .focus-tile:hover {
        transform: translateY(-5px)
    }

    .focus-groups .focus-tile:nth-child(1) {
        grid-column: 1/-1;
        aspect-ratio: 1.35
    }

    .focus-groups .focus-tile:nth-child(n+2) {
        aspect-ratio: .82
    }

    .focus-groups .focus-tile:nth-child(2),
    .focus-groups .focus-tile:nth-child(3) {
        aspect-ratio: 1
    }

    .focus-groups .focus-tile span {
        padding: 9px 10px 10px
    }

    .focus-groups .focus-tile strong {
        font-size: 16px
    }
}

/* Section 02 content: Porto portfolio grid proportions. */
.focus-groups .section-intro,
.focus-groups .focus-strip {
    width: 100%;
    max-width: none
}

.focus-groups .section-intro {
    display: block;
    margin-bottom: 30px
}

.focus-groups .focus-strip {
    display: grid;
    grid-template-columns: minmax(0, 2.06fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 52px);
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible
}

.focus-groups .focus-strip:before,
.focus-groups .focus-strip:after {
    display: none
}

.focus-groups .focus-tile,
.focus-groups .focus-tile--wide,
.focus-groups .focus-tile:nth-child(n) {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    transform: none
}

.focus-groups .focus-tile:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
    aspect-ratio: 700 / 580
}

.focus-groups .focus-tile:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
    aspect-ratio: 339 / 580
}

.focus-groups .focus-tile:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    aspect-ratio: 339 / 280
}

.focus-groups .focus-tile:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    aspect-ratio: 339 / 280
}

.focus-groups .focus-tile img,
.focus-groups .focus-tile--wide img,
.focus-groups .focus-tile:nth-child(n) img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover
}

.focus-groups__more {
    display: flex;
    width: max-content;
    margin: 34px auto 0
}

@media(max-width:700px) {
    .focus-groups .focus-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 14px
    }

    .focus-groups .focus-tile:nth-child(1) {
        grid-column: 1/-1;
        grid-row: auto;
        aspect-ratio: 1.35
    }

    .focus-groups .focus-tile:nth-child(2),
    .focus-groups .focus-tile:nth-child(3),
    .focus-groups .focus-tile:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: .9
    }

    .focus-groups .focus-tile:nth-child(4) {
        grid-column: 1/-1;
        aspect-ratio: 1.6
    }
}

/* Section 02: Porto creative-agency-inspired service grid. */
@media(min-width:701px) {
    .focus-groups {
        padding-block: 68px;
        background: #fff
    }

    .focus-groups .gallery-container {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(2, 220px);
        gap: 1px;
        background: #ededed
    }

    .focus-groups .section-intro {
        grid-column: 1;
        grid-row: 1 / span 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 0;
        margin: 0;
        padding: 30px;
        background: #fff
    }

    .focus-groups .gallery-kicker {
        display: block;
        margin-bottom: 12px;
        color: #8a7651
    }

    .focus-groups .section-intro h2 {
        padding: 0;
        font-size: clamp(38px, 3vw, 56px);
        line-height: .95
    }

    .focus-groups .section-intro h2:before {
        display: none
    }

    .focus-groups .focus-strip {
        display: contents
    }

    .focus-groups .focus-tile,
    .focus-groups .focus-tile--wide,
    .focus-groups .focus-tile:nth-child(n) {
        display: grid;
        grid-template: 1fr / 1fr;
        min-height: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #fafafa;
        box-shadow: none;
        aspect-ratio: auto;
        overflow: hidden
    }

    .focus-groups .focus-tile:nth-child(1) { grid-column: 2; grid-row: 1; }
    .focus-groups .focus-tile:nth-child(2) { grid-column: 3; grid-row: 1; }
    .focus-groups .focus-tile:nth-child(3) { grid-column: 4; grid-row: 1; }
    .focus-groups .focus-tile:nth-child(4) { grid-column: 2; grid-row: 2; background: #e7e7e7; }

    .focus-groups .focus-tile img,
    .focus-groups .focus-tile--wide img,
    .focus-groups .focus-tile:nth-child(n) img {
        grid-area: 1 / 1;
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 0;
        opacity: .1;
        filter: grayscale(1) contrast(.85);
        transform: none
    }

    .focus-groups .focus-tile:nth-child(4) img { opacity: .18; }

    .focus-groups .focus-tile span {
        z-index: 1;
        align-self: start;
        grid-area: 1 / 1;
        padding: 28px 24px;
        color: #172018
    }

    .focus-groups .focus-tile span:before {
        content: '';
        display: block;
        width: 34px;
        margin-bottom: 14px;
        border-top: 5px solid #e7e7e7
    }

    .focus-groups .focus-tile strong {
        font: 600 clamp(24px, 2vw, 34px)/.95 'Cormorant Garamond', Georgia, serif
    }

    .focus-groups .focus-tile small {
        margin-top: 8px;
        color: #586158;
        font-size: 10px
    }

    .focus-groups__more {
        grid-column: 3 / span 2;
        grid-row: 2;
        display: flex;
        align-self: stretch;
        justify-content: center;
        width: auto;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #f4f4f4;
        color: #172018;
        box-shadow: none
    }
}

/* Match the real highlight layout while content loads. */
.threatened-skeleton { pointer-events:none; }
.threatened-skeleton .threatened-meta { display:grid; gap:10px; }
.threatened-skeleton .qsbg-skeleton-line { display:block; }

/* Reserve the live count and image area while requests are pending. */
.digitized-count-pending { display:inline-block; min-width:5ch; height:1em; border-radius:4px; vertical-align:-.1em; color:transparent; }
.threatened-picture.is-image-pending > img { opacity:0; }

.threatened-copy > .threatened-source { margin:0 0 20px; color:#737a71; font-size:12px; line-height:1.6; }

/* Quiet image fallback: keep accession metadata and status prominent. */
.threatened-item > .threatened-picture.is-image-unavailable,
.threatened-item:hover > .threatened-picture.is-image-unavailable {
    background:#f8e8c8;
    border:1px solid #ead9b8;
    border-radius:3px;
    box-shadow:none;
}
.threatened-image-notice {
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:24px;
    padding:20px 12px;
    color:#916a32;
    text-align:center;
    font:400 13px/1.6 'Anuphan',sans-serif;
}
.threatened-image-notice > i { font-size:25px; color:#916a32; }
