:root {
    --deep: #0b342f;
    --forest: #15584e;
    --sea: #167c7a;
    --sun: #e2ad47;
    --cream: #f6f1e7;
    --paper: #fffdf8;
    --ink: #1a2926;
    --muted: #65736f;
    --shadow: 0 12px 34px rgba(7, 40, 34, .14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.viewer-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.hero {
    position: relative;
    min-height: clamp(430px, 58vh, 640px);
    display: grid;
    align-items: end;
    isolation: isolate;
    color: white;
    background-color: #082d28;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(3, 20, 17, .08) 24%, rgba(3, 20, 17, .78) 100%),
        linear-gradient(90deg, rgba(3, 20, 17, .62), transparent 68%);
}

.hero-home {
    position: absolute;
    top: 1.25rem;
    left: clamp(1rem, 4vw, 4rem);
    color: white;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 750;
    letter-spacing: .03em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hero-content {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.2rem, 5vw, 4.5rem);
}

.eyebrow {
    margin: 0 0 .7rem;
    color: #f5d88f;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .2em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    max-width: 950px;
    margin: 0;
    font-size: clamp(3.7rem, 10vw, 8.8rem);
    font-weight: 500;
    line-height: .87;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero-intro {
    max-width: 670px;
    margin: 1.25rem 0 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.55;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.5rem;
    color: white;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
}

.at-a-glance {
    position: relative;
    z-index: 2;
    width: min(1320px, calc(100% - 2rem));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: -32px auto 0;
    overflow: hidden;
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.fact {
    padding: 1.25rem 1.5rem;
}

.fact+.fact {
    border-left: 1px solid rgba(11, 52, 47, .12);
}

.fact-label {
    display: block;
    margin-bottom: .3rem;
    color: var(--muted);
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.fact-value {
    font-weight: 750;
}

.trip-summary {
    width: 90%;
    margin: 2.5rem auto 0;
    padding: clamp(1.4rem, 3vw, 2.25rem);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid rgba(11, 52, 47, .1);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(11, 52, 47, .09);
}

.trip-summary h2 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.1;
}

.trip-summary-text {
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    line-height: 1.78;
}

.trip-summary-text p {
    margin: 0;
}

.trip-summary-text p + p {
    margin-top: 1.15em;
}

.toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: 2.5rem;
    background: rgba(246, 241, 231, .94);
    border-bottom: 1px solid rgba(11, 52, 47, .13);
    backdrop-filter: blur(13px);
}

.toolbar-inner {
    width: min(1500px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: auto;
    padding: .72rem clamp(1rem, 4vw, 3.5rem);
}

.filters {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter {
    flex: 0 0 auto;
    padding: .62rem .92rem;
    color: var(--deep);
    background: transparent;
    border: 1px solid rgba(11, 52, 47, .22);
    border-radius: 999px;
    cursor: pointer;
    font-size: .87rem;
    font-weight: 700;
}

.filter:hover,
.filter.active {
    color: white;
    background: var(--deep);
    border-color: var(--deep);
}

.notes-trigger {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .64rem .95rem;
    color: white;
    background: var(--forest);
    border: 1px solid var(--forest);
    border-radius: 999px;
    cursor: pointer;
    font-size: .87rem;
    font-weight: 760;
    white-space: nowrap;
}

.notes-trigger:hover {
    background: var(--deep);
}

.notes-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    visibility: hidden;
    opacity: 0;
    background: rgba(3, 20, 17, .48);
    backdrop-filter: blur(2px);
    transition: opacity .25s ease, visibility .25s ease;
}

.notes-backdrop.open {
    visibility: visible;
    opacity: 1;
}

.notes-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(580px, 92vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    color: var(--ink);
    background: var(--paper);
    box-shadow: -18px 0 48px rgba(3, 24, 20, .24);
    transform: translateX(105%);
    transition: transform .3s ease;
}

.notes-drawer.open {
    transform: translateX(0);
}

.notes-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem clamp(1.25rem, 5vw, 2.5rem);
    color: white;
    background: rgba(11, 52, 47, .97);
    backdrop-filter: blur(10px);
}

.notes-heading {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 500;
}

.notes-close {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    color: white;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.45rem;
}

.notes-close:hover {
    background: rgba(255, 255, 255, .2);
}

.notes-body {
    padding: clamp(1.6rem, 5vw, 3rem);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.03rem, 2vw, 1.16rem);
    line-height: 1.78;
}

.notes-kicker {
    margin: 0 0 .55rem;
    color: var(--sea);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.notes-body p {
    margin: 0 0 1.25rem;
}

.notes-signature {
    color: var(--forest);
    font-style: italic;
    font-weight: 700;
}

.floating-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 70;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    padding: .72rem 1rem;
    color: white;
    background: rgba(11, 52, 47, .72);
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(3, 24, 20, .2);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: .86rem;
    font-weight: 780;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background .22s ease;
}

.floating-top.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.floating-top:hover {
    background: rgba(11, 52, 47, .92);
}

.jump-menu {
    position: relative;
    flex: 0 0 auto;
}

.jump-menu summary {
    padding: .64rem .9rem;
    color: var(--deep);
    cursor: pointer;
    font-size: .87rem;
    font-weight: 750;
    list-style: none;
}

.jump-menu summary::-webkit-details-marker {
    display: none;
}

.jump-links {
    position: absolute;
    top: calc(100% + .7rem);
    right: 0;
    width: 220px;
    padding: .5rem;
    background: var(--paper);
    border: 1px solid rgba(11, 52, 47, .14);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.jump-links a {
    display: block;
    padding: .68rem .75rem;
    color: var(--deep);
    border-radius: 9px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
}

.jump-links a:hover {
    background: var(--cream);
}

main {
    padding-bottom: 5rem;
}

.chapter {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 4vw, 3.5rem) 0;
}

.gallery-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 3.5rem) 0;
}

.chapter-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 560px);
    align-items: end;
    gap: 2rem;
    margin-bottom: 1.6rem;
}

.chapter-kicker {
    margin: 0 0 .35rem;
    color: var(--sea);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.03em;
}

.chapter-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.chapter-description a,
.chapter-notes a {
    color: #b94f3b;
    font-weight: 700;
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

.chapter-description a:hover,
.chapter-notes a:hover {
    color: #7f3024;
}

.notes-chapter {
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.dig-deeper-chapter {
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: .85rem;
    max-width: 1100px;
}

.resource-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    padding: 1rem 1.15rem;
    color: var(--deep);
    background: var(--paper);
    border: 1px solid rgba(11, 52, 47, .13);
    border-left: 5px solid var(--sea);
    border-radius: 0 14px 14px 0;
    box-shadow: 0 10px 28px rgba(3, 24, 20, .09);
    text-decoration: none;
    font-weight: 760;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.resource-link:hover,
.resource-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(38, 140, 129, .5);
    box-shadow: 0 14px 34px rgba(3, 24, 20, .14);
}

.resource-arrow {
    flex: 0 0 auto;
    color: var(--sea);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.resource-arrow::after {
    content: " >";
}

.resource-empty {
    margin: 0;
    color: var(--muted);
    font-style: italic;
}

.chapter-notes {
    max-width: 920px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--paper);
    border-left: 5px solid var(--sun);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.03rem, 2vw, 1.17rem);
    line-height: 1.8;
}

.chapter-notes p {
    margin: 0 0 1.25rem;
}

.chapter-notes p:last-child {
    margin-bottom: 0;
}

.notes-signoff {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(11, 52, 47, .14);
}

.signature-selfie {
    width: auto;
    height: auto;
    max-width: 110px;
    max-height: 90px;
    display: block;
    object-fit: contain;
    border: 3px solid white;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(7, 40, 34, .18);
}

.notes-signoff .notes-signature {
    margin: 0;
    font-size: 1.08rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
    gap: clamp(.8rem, 1.7vw, 1.4rem);
}

.gallery.masonry-layout {
    position: relative;
    display: block;
}

.gallery.masonry-layout > .media-card,
.gallery.masonry-layout > .trail-card {
    position: absolute;
    margin: 0;
}

.media-card {
    position: relative;
    grid-column: span 4;
    align-self: start;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    text-align: left;
}

.media-card.feature {
    grid-column: span 8;
    min-height: 0;
}

.media-card.wide {
    grid-column: span 6;
    min-height: 0;
}

.media-card img {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}

.media-card:hover img {
    transform: scale(1.015);
    filter: brightness(.96);
}

.card-shade {
    display: none;
}

.card-copy {
    position: static;
    display: block;
    padding: .95rem 1.1rem 1.05rem;
    background: var(--paper);
    border-top: 1px solid rgba(11, 52, 47, .1);
}

.card-copy:not(:has(.card-title:not(:empty), .card-caption:not(:empty))) {
    display: none;
}

.card-title {
    display: block;
    color: var(--deep);
    font-family: Georgia, serif;
    font-size: 1.18rem;
    line-height: 1.25;
}

.card-caption {
    display: -webkit-box;
    max-width: 600px;
    margin-top: .4rem;
    overflow: hidden;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.media-card.caption-expanded .card-caption {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.caption-more {
    display: none;
    margin-top: .45rem;
    color: var(--sea);
    font-size: .82rem;
    font-weight: 780;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.media-card.caption-truncated .caption-more {
    display: inline-block;
}

.caption-more:focus-visible {
    outline: 2px solid var(--sea);
    outline-offset: 3px;
    border-radius: 2px;
}

.badge {
    position: absolute;
    top: .9rem;
    right: .9rem;
    padding: .4rem .68rem;
    color: white;
    background: rgba(5, 37, 31, .76);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    font-size: .73rem;
    font-weight: 780;
    backdrop-filter: blur(8px);
}

.media-card[hidden],
.chapter[hidden] {
    display: none;
}

.trail-card {
    grid-column: span 6;
    min-height: 390px;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    overflow: hidden;
    padding: 0;
    color: white;
    background: var(--deep);
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    text-align: left;
}

.trail-image {
    position: relative;
    min-height: 320px;
}

.trail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.trail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.55rem;
}

.trail-type {
    color: #f1cf82;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.trail-info h3 {
    margin: .55rem 0 .75rem;
    font-size: 1.65rem;
    font-weight: 500;
}

.trail-info p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
    line-height: 1.5;
}

.trail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    margin-top: 1.2rem;
}

.trail-stats span {
    font-size: .82rem;
}

.trail-stats strong {
    display: block;
    margin-bottom: .18rem;
    color: #f1cf82;
    font-size: .67rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.empty-message {
    display: none;
    padding: 5rem 1rem 1rem;
    color: var(--muted);
    text-align: center;
}

.empty-message.show {
    display: block;
}

.viewer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: white;
    background: rgba(2, 12, 10, .98);
}

.viewer.open {
    display: grid;
}

.viewer-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 4.5rem 5rem 1rem;
}

.viewer-media {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 7px;
}

/*
  Enlarged photos and videos must show their complete original frame.
  The media fills the available viewer box, while "contain" scales it
  down without cutting off portrait, landscape, square or panoramic
  images. Empty space around unusually shaped photos is intentional.
*/
.viewer-stage>img.viewer-media,
.viewer-stage>video.viewer-media {
    align-self: stretch;
    justify-self: stretch;
}

.viewer-caption {
    width: min(900px, 100%);
    max-height: 30vh;
    max-height: 30dvh;
    margin: auto;
    overflow-y: auto;
    padding: .9rem 1.5rem 1.4rem;
    text-align: center;
}

.viewer-caption h3 {
    margin: 0 0 .35rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
}

.viewer-caption p {
    margin: 0;
    color: #c7d3cf;
    line-height: 1.5;
}

.icon-button {
    position: absolute;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: white;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    cursor: pointer;
}

.icon-button:hover {
    background: var(--forest);
}

.close {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.fullscreen {
    top: 1rem;
    right: 4.75rem;
    font-size: 1.2rem;
}

.audio {
    top: 1rem;
    right: 8.5rem;
}

.prev,
.next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

.video-player-shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
}

.video-player-shell .viewer-media {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.video-big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(11, 52, 47, .86);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.35rem;
}

.video-controls {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .42rem;
    padding: .62rem .7rem;
    color: white;
    background: rgba(5, 25, 21, .96);
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.video-control-button {
    min-width: 42px;
    height: 36px;
    flex: 0 0 auto;
    padding: 0 .58rem;
    color: white;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 750;
}

.video-control-button:hover,
.video-control-button:focus-visible {
    background: var(--forest);
}

.video-timeline {
    min-width: 110px;
    flex: 1 1 260px;
    accent-color: #e2ad47;
    cursor: pointer;
}

.video-time {
    min-width: 92px;
    flex: 0 0 auto;
    color: #dce9e5;
    font-variant-numeric: tabular-nums;
    font-size: .76rem;
    text-align: center;
}

.video-volume {
    width: 82px;
    flex: 0 1 82px;
    accent-color: #e2ad47;
    cursor: pointer;
}

.video-speed {
    height: 36px;
    flex: 0 0 auto;
    padding: 0 .35rem;
    color: white;
    background: #123f38;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    cursor: pointer;
}

footer {
    padding: 2.2rem 1rem;
    color: #dce9e5;
    background: var(--deep);
    text-align: center;
}

.back-top {
    color: #f1cf82;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 900px) {
    .at-a-glance {
        grid-template-columns: 1fr 1fr;
    }

    .fact:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(11, 52, 47, .12);
    }

    .fact:nth-child(4) {
        border-top: 1px solid rgba(11, 52, 47, .12);
    }

    .chapter-head {
        grid-template-columns: 1fr;
        gap: .8rem;
    }

    .media-card,
    .media-card.feature,
    .media-card.wide {
        grid-column: span 6;
        min-height: 0;
    }

    .trail-card {
        grid-column: 1 / -1;
    }

    .viewer-stage {
        padding-inline: 1rem;
    }

    .video-controls {
        flex-wrap: wrap;
    }

    .video-timeline {
        order: -1;
        flex: 1 0 100%;
    }

    .prev,
    .next {
        top: auto;
        bottom: .75rem;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: clamp(420px, 58vh, 540px);
        background-position: 52% center;
    }

    .hero-content {
        padding-bottom: 4.5rem;
    }

    .at-a-glance {
        margin-top: -22px;
    }

    .fact {
        padding: 1rem;
    }

    .trip-summary {
        width: calc(100% - 1.25rem);
        margin-top: 1.4rem;
        padding: 1.25rem;
    }

    .toolbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: .45rem;
        padding-inline: .6rem;
    }

    .jump-menu {
        order: -1;
        width: 100%;
    }

    .jump-menu summary {
        padding: .55rem .75rem;
        background: rgba(255, 255, 255, .55);
        border-radius: 10px;
        text-align: center;
    }

    .filters {
        width: 100%;
    }

    .notes-trigger {
        padding-inline: .72rem;
    }

    .notes-drawer {
        width: 100%;
    }

    .floating-top {
        right: .85rem;
        bottom: .85rem;
    }

    .signature-selfie {
        max-width: 92px;
        max-height: 74px;
    }

    .jump-links {
        position: absolute;
        top: calc(100% + .45rem);
        right: 0;
        left: 0;
        width: auto;
        max-height: calc(100vh - 145px);
        overflow-y: auto;
    }

    .media-card,
    .media-card.feature,
    .media-card.wide {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .trail-card {
        grid-template-columns: 1fr;
    }

    .trail-image {
        min-height: 270px;
    }

    .trail-info {
        padding: 1.25rem;
    }

    .viewer-stage {
        padding-top: 4.6rem;
    }

    .video-controls {
        gap: .3rem;
        padding: .45rem;
    }

    .video-control-button {
        min-width: 38px;
        height: 34px;
        padding-inline: .42rem;
    }

    .video-time {
        min-width: 80px;
        font-size: .7rem;
    }

    .video-volume {
        width: 64px;
        flex-basis: 64px;
    }

    .video-speed {
        height: 34px;
    }

    .prev,
    .next {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .audio {
        right: 8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
