/* Analyzing Downsview — ARC2013
   Same look as the original site (white page, Arial, red #CC1616 accents),
   rebuilt to be responsive and to load images progressively. */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --margin: 50px;
    --highlight: #CC1616;
    --nav-h: 64px;
    --stress-bg: #fff;
}

html {
    font-size: 12px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    background: #fff;
    overflow-x: hidden;
    overflow-x: clip;
}

h1,
h2,
p,
blockquote,
figcaption {
    font-size: inherit;
    font-weight: normal;
}

h1 {
    font-weight: bold;
    margin-bottom: 10px;
}

em {
    color: var(--highlight);
    font-style: normal;
    font-weight: bold;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ol {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--highlight);
    outline-offset: 2px;
}

/* ------------------------------------------------------------ images
   Every content image is an <img class="pimg"> whose background is a tiny
   blurred preview (--lq). It is visible immediately; once the real image
   has loaded, main.js adds .ld and the preview is dropped. */

img {
    display: block;
    max-width: 100%;
}

.pimg {
    background-image: var(--lq);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
}

.pimg:not([src]) {
    visibility: hidden; /* stacked gallery layer not fetched yet */
}

.pimg.contain {
    background-size: contain;
}

.pimg.ld {
    background-image: none;
    animation: sharpen 0.4s ease-out;
}

@keyframes sharpen {
    from {
        filter: blur(6px);
    }

    to {
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pimg.ld {
        animation: none;
    }
}

img.remote {
    background: #f2f2f2;
    min-height: 80px;
}

.broken {
    display: none;
}

/* ------------------------------------------------------------ header */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transform: translateY(-110%);
    transition: transform 0.4s ease;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.header.shown {
    transform: none;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: env(safe-area-inset-top);
}

.nav-container a {
    font-size: 2em;
    padding: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-container a:hover,
.nav-container a.active {
    text-decoration: underline;
    text-decoration-color: var(--highlight);
}

/* ------------------------------------------------------------ layout */

.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: calc(var(--margin) * 2) var(--margin);
}

.section.no-padding,
.no-padding {
    padding: 0;
}

.padding {
    margin-left: var(--margin);
    margin-right: var(--margin);
}

.header-container {
    padding: calc(var(--margin) * 4) 0 var(--margin) 0;
}

.header-container > h1 {
    font-size: 2em;
    text-decoration: underline;
    color: var(--highlight);
}

.header-container p {
    font-size: 1.5em;
    max-width: 800px;
}

.header-container p + p {
    margin-top: 1.5em;
}

#present {
    background-color: var(--stress-bg);
    transition: background-color 1.5s ease-in-out;
}

/* ------------------------------------------------------------ cover */

#cover {
    height: 100vh;
    height: 100svh;
    min-height: 0;
}

.title_center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90vw;
    transform: translate(-50%, -50%);
    text-align: center;
}

.title_center > h1 {
    color: var(--highlight);
    font-size: 8vw;
    line-height: 1.15;
}

.btn {
    margin-top: 10px;
    padding: calc(var(--margin) / 4);
    border: 1px solid var(--highlight);
    color: var(--highlight);
    font-size: 1.25em;
    background-color: #fff;
    transition: 0.2s;
}

.btn:hover,
.btn[aria-pressed="true"] {
    background-color: var(--highlight);
    color: #fff;
}

.bot-left-aligned {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 var(--margin) calc(var(--margin) * 2);
    font-size: 2em;
    text-align: center;
}

.cover-image img {
    width: 100%;
}

/* ------------------------------------------------------------ text panels */

.text-panel-container {
    display: flex;
    flex-wrap: wrap;
}

.text-panel-container.right {
    justify-content: flex-end;
}

.text-panel-container.middle {
    justify-content: center;
}

.text-panel {
    width: calc(50vw - var(--margin) * 2);
    padding: var(--margin);
    margin-bottom: var(--margin);
    align-self: flex-start;
}

.text-panel > h1 {
    margin: var(--margin) 0;
    font-size: 2em;
    text-decoration: underline;
    color: var(--highlight);
}

.text-panel > h1:first-child {
    margin-top: 0;
}

.text-panel > h2 {
    font-size: 1.5em;
    text-decoration: underline;
    margin-bottom: var(--margin);
}

.text-panel > p {
    font-size: 1.5em;
    line-height: 1.35;
    margin-bottom: var(--margin);
}

.quote {
    font-size: 1.1em;
    line-height: 1.4;
    color: var(--highlight);
    font-style: italic;
}

.single-image-container {
    width: calc(50vw - var(--margin) * 2);
    height: 500px;
    cursor: zoom-in;
}

.single-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inline-image-container {
    margin-bottom: var(--margin);
}

.inline-image-container img {
    width: 100%;
}

.inline-image-container figcaption {
    font-size: 1em;
    margin: 10px 0;
}

/* ------------------------------------------------------------ history slider */

.sticky-gallery {
    position: sticky;
    top: var(--nav-h);
}

.slider-gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-gallery {
    display: grid;
    width: 100%;
}

.slider-gallery > img {
    grid-area: 1 / 1;
    width: 100%;
    visibility: hidden;
}

.slider-gallery > img.active {
    visibility: visible;
}

.slider-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--margin);
    width: max(20vw, 200px);
}

.value-display {
    position: absolute;
    top: -40px;
    background: var(--highlight);
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    white-space: nowrap;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 24px;
    background: linear-gradient(#000, #000) center / 100% 1px no-repeat;
    opacity: 0.7;
    transition: opacity 0.15s ease-in-out;
    cursor: pointer;
}

input[type="range"]:hover,
input[type="range"]:focus-visible {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--highlight);
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    background: var(--highlight);
    border-radius: 50%;
}

/* ------------------------------------------------------------ timeline
   Alternates left/right on wide screens; one column on phones. */

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 20px 20px calc(20px + var(--margin));
    border-left: 1px solid rgba(0, 0, 0, 0.25);
    margin-left: 50%;
}

.timeline-item:nth-child(even) {
    margin-left: 0;
    border-left: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.25);
    padding: 20px calc(20px + var(--margin)) 20px 20px;
    text-align: right;
    margin-right: 50%;
    left: 1px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--highlight);
    border-radius: 50%;
    transform: translate(calc(-50% - 0.5px), -50%);
}

.timeline-item:nth-child(even)::before {
    left: auto;
    right: 0;
    transform: translate(calc(50% + 0.5px), -50%);
}

.timeline-item h1 {
    font-size: 1.5em;
}

.timeline-item p {
    color: #333;
    font-size: 1.25em;
    line-height: 1.35;
    margin-bottom: calc(var(--margin) / 2);
}

.timeline-item a {
    font-size: 1.1em;
}

.timeline-item .inline-image-container {
    margin-bottom: calc(var(--margin) / 2);
}

/* ------------------------------------------------------------ walkthrough */

.walkthrough-top-container {
    height: 3000vh;
}

.walkthrough-container {
    position: sticky;
    top: var(--walk-top, var(--nav-h));
    width: 100%;
    max-width: 2560px;
}

.link {
    display: inline-block;
    font-size: 1em;
    font-weight: bold;
    margin: 10px 0;
    text-decoration: none;
}

.link:hover {
    opacity: 0.5;
}

.walkthrough-container-b {
    display: flex;
    gap: var(--margin);
}

.walkthrough-map-container {
    position: relative;
    flex: 0 0 50%;
    margin: auto 0;
}

.walkthrough-map-container img {
    width: 100%;
}

.walkthrough-dot-container,
.dot-container,
.overlay-data-container {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.walkthrough-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--highlight);
    transform: translate(-50%, -50%);
}

.right-pane {
    flex: 1;
    min-width: 0;
}

.walk-gallery {
    --t: min(200px, 22vh);
    min-height: calc(var(--t) * 2 + var(--margin) / 2);
    align-content: center;
}

.walk-gallery .image-item,
.walk-gallery .image-container {
    width: var(--t);
}

.walk-gallery .image-container {
    height: var(--t);
}

.walkthrough-metrics {
    display: flex;
    gap: 10px;
    margin-top: calc(var(--margin) / 2);
    font-size: 1.25em;
}

.walkthrough-metric {
    padding: 10px;
    border: 1px solid var(--highlight);
    min-height: 120px;
    background: rgba(255, 255, 255, 0.5);
}

.walkthrough-metric.small {
    flex: 0 0 120px;
}

.walkthrough-metric.large {
    flex: 0 1 400px;
}

.metric-title {
    font-weight: bold;
}

.metric-bar {
    position: relative;
    width: 100px;
    height: 10px;
    margin: 10px 0;
    background: lightgrey;
}

.metric-bar .bar {
    height: 100%;
    width: 10%;
    background: var(--highlight);
    transition: width 0.5s;
}

/* ------------------------------------------------------------ thumbnail galleries */

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: calc(var(--margin) / 2);
}

.image-item {
    width: 200px;
}

.image-container {
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.image-container img,
.large-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.enlargeable {
    cursor: zoom-in;
}

.image-item:hover .image-container img,
.large-image-container:hover img,
.classa:hover img {
    transform: scale(1.1);
}

.image-item figcaption,
.large-image-item figcaption {
    font-size: 1em;
    margin: calc(var(--margin) / 4) 0;
}

.centered-gallery {
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: calc(var(--margin) * 2);
}

.gallery-three {
    width: 25vw;
}

.gallery-three .image-container {
    width: 100%;
    height: 25vw;
}

.gallery-three figcaption {
    text-align: center;
}

.large-image-item {
    width: 500px;
    max-width: 100%;
}

.large-image-container {
    aspect-ratio: 1;
    overflow: hidden;
}

.classa {
    width: 400px;
    max-width: 100%;
    height: auto;
    margin-top: var(--margin);
}

.classa img {
    object-fit: contain;
    height: auto;
}

/* ------------------------------------------------------------ interviews */

.interview-section {
    display: flex;
    align-items: flex-start;
}

.map-container {
    position: sticky;
    top: var(--interview-top, var(--nav-h));
    flex: 0 0 40vw;
}

.map-image-container {
    position: relative;
}

.map-image-container > img {
    width: 100%;
}

.dot-container > .dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #000;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.dot-container > .dot:hover,
.dot-container > .dot.active {
    width: 40px;
    height: 40px;
}

.p1 { background-color: rgb(181, 214, 192); }
.p2 { background-color: rgb(189, 228, 228); }
.p3 { background-color: rgb(193, 175, 209); }
.p4 { background-color: rgb(212, 190, 162); }
.p5 { background-color: rgb(221, 134, 207); }
.p6 { background-color: rgb(165, 240, 150); }
.p7 { background-color: rgb(133, 108, 241); }

.section-interview {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.interview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--margin);
    width: calc(50vw - var(--margin));
    padding: var(--margin);
}

.interview .text-panel {
    width: auto;
    max-width: 600px;
    min-width: 0;
    flex: 1;
    margin: 0;
    padding: 0;
}

.interview .text-panel > h1 {
    margin-bottom: calc(var(--margin) / 2);
}

.interview-image-container2 {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #000;
}

/* ------------------------------------------------------------ full-screen map galleries
   Layers are stacked; the first is on top. Clicking the right half (or the
   arrow buttons, swiping, arrow keys) hides the top layer to reveal the next. */

.fullscreen {
    position: relative;
    height: 150vh;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fullscreen .stack,
.fullscreen .layer {
    position: absolute;
    inset: 0;
}

.layer {
    transition: opacity 0.5s, visibility 0.5s;
}

.layer.gone {
    opacity: 0;
    visibility: hidden;
}

.g-image-container {
    position: sticky;
    top: max(0px, calc((100vh - 100vw / (var(--ar))) / 2));
    width: min(100%, calc(100vh * var(--ar)));
    aspect-ratio: var(--ar);
    margin: 0 auto;
}

.g-image-container > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.g-controls {
    position: sticky;
    top: calc(100vh - 66px);
    width: max-content;
    margin: 0 var(--margin) 0 auto;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--highlight);
    color: var(--highlight);
    font-size: 1.25em;
    cursor: default;
}

.g-controls button {
    width: 36px;
    height: 36px;
    font-size: 1.4em;
    line-height: 1;
    color: var(--highlight);
}

.g-controls button:disabled {
    opacity: 0.25;
    cursor: default;
}

.g-count {
    min-width: 3.5em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* points of interest on the amenities map */

.overlay-data-point {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 6px;
}

.overlay-data-dot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--highlight);
    box-shadow: 2px 2px 2px rgba(87, 87, 87, 0.43);
    transition: transform 0.3s;
}

.overlay-data-point:hover .overlay-data-dot,
.overlay-data-point:focus-visible .overlay-data-dot {
    transform: scale(1.25);
}

.data-popup-container {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--highlight);
    box-shadow: 2px 2px 0 rgba(87, 87, 87, 0.43);
    font-size: 1.1em;
    text-align: left;
    display: none;
    z-index: 150;
}

.overlay-data-point.left .data-popup-container {
    left: auto;
    right: 0;
    transform: none;
}

.overlay-data-point.right .data-popup-container {
    left: 0;
    transform: none;
}

.overlay-data-point:hover .data-popup-container,
.overlay-data-point:focus .data-popup-container {
    display: block;
}

/* ------------------------------------------------------------ transect
   Scrolling pans the long drawing sideways; the pointer's height wipes
   between existing (bottom layer) and proposed (top layer). */

.transect {
    position: relative;
    height: 500vh;
}

.wide {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.wide img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
    transform: translate3d(var(--tx, 0px), 0, 0);
    will-change: transform;
}

.wide img:nth-child(2) {
    z-index: 2;
    clip-path: inset(var(--wipe, 50%) 0 0 0);
}

.transect-labels,
.transect-toggle {
    display: none;
}

/* ------------------------------------------------------------ lightbox */

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}

.image-viewer[hidden] {
    display: none;
}

.image-viewer img {
    width: 90vw;
    height: 90vh;
    height: 90svh;
    object-fit: contain;
    background-size: contain;
}

.viewer-close {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 32px;
    line-height: 1;
    color: #fff;
}

/* ------------------------------------------------------------ tablet */

@media (max-width: 1100px) {
    :root {
        --margin: 30px;
    }

    .text-panel,
    .single-image-container {
        width: 100%;
        max-width: 760px;
    }

    .text-panel-container.right,
    .text-panel-container.middle {
        justify-content: center;
    }

    .single-image-container {
        height: auto;
    }

    .single-image-container img {
        height: auto;
    }

    .sticky-gallery {
        position: static;
    }

    .interview {
        width: 100%;
        padding: var(--margin) 0 var(--margin) var(--margin);
    }

    .interview-image-container2 {
        width: 70px;
        height: 70px;
    }

    .image-item {
        width: 150px;
    }

    .image-container {
        width: 150px;
        height: 150px;
    }

    .gallery-three,
    .gallery-three .image-container {
        width: 30vw;
    }

    .gallery-three .image-container {
        height: 30vw;
    }

    .walkthrough-metric.large {
        flex: 1 1 auto;
    }
}

/* ------------------------------------------------------------ phone */

@media (max-width: 700px) {
    :root {
        --margin: 16px;
        --nav-h: 48px;
    }

    html {
        font-size: 13px;
    }

    .nav-container {
        justify-content: space-between;
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
        padding-inline: 4px;
    }

    .nav-container::-webkit-scrollbar {
        display: none;
    }

    .nav-container a {
        font-size: 1.1em;
        padding: 15px 6px;
        flex: 0 0 auto;
        text-align: center;
    }

    .title_center > h1 {
        font-size: 13vw;
    }

    .bot-left-aligned {
        font-size: 1.4em;
        padding-bottom: calc(var(--margin) * 4);
    }

    .section {
        padding: calc(var(--margin) * 3) var(--margin);
    }

    .header-container {
        padding: calc(var(--margin) * 5) 0 var(--margin);
    }

    .header-container p,
    .text-panel > p {
        font-size: 1.25em;
    }

    .text-panel {
        padding: var(--margin) 0;
    }

    .text-panel > h1,
    .text-panel > h2 {
        margin-bottom: calc(var(--margin) * 1.5);
    }

    .slider-container {
        width: 70%;
    }

    /* timeline: single column, line on the left */
    .timeline-container {
        padding: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: auto;
        margin: 0 0 0 6px;
        border-left: 1px solid rgba(0, 0, 0, 0.25);
        border-right: 0;
        padding: 16px 0 16px 22px;
        text-align: left;
        left: 0;
    }

    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 0;
        right: auto;
        top: 30px;
        transform: translate(calc(-50% - 0.5px), -50%);
    }

    /* thumbnails: two per row */
    .image-gallery {
        gap: 12px;
    }

    .image-item {
        width: calc(50% - 6px);
    }

    .image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .centered-gallery {
        gap: 6px;
    }

    .gallery-three,
    .gallery-three .image-container {
        width: 32vw;
    }

    .gallery-three .image-container {
        height: 32vw;
    }

    .gallery-three figcaption {
        font-size: 0.85em;
    }

    .large-image-item {
        width: 100%;
    }

    /* walkthrough: map on top, photos and metrics below */
    .walkthrough-container {
        display: flex;
        flex-direction: column;
        height: calc(100svh - var(--nav-h));
        top: var(--nav-h);
    }

    .walkthrough-container .link {
        margin: 4px 0;
    }

    .walkthrough-container-b {
        flex-direction: column;
        gap: 8px;
        flex: 1;
        min-height: 0;
    }

    .walkthrough-map-container {
        flex: 0 0 auto;
        margin: 0;
    }

    .walkthrough-dot {
        width: 7px;
        height: 7px;
    }

    .right-pane {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
    }

    .walk-gallery {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        min-height: 0;
        gap: 4px;
    }

    .walk-gallery .image-item {
        grid-column: span 2;
        width: auto;
    }

    .walk-gallery .image-item:nth-child(n + 4) {
        grid-column: span 3;
    }

    .walk-gallery .image-item:nth-child(n + 4) .image-container {
        aspect-ratio: 3 / 2;
    }

    .walk-gallery .image-container {
        width: 100%;
        height: auto;
    }

    .walkthrough-metrics {
        margin: 0;
        gap: 6px;
        font-size: 1em;
    }

    .walkthrough-metric {
        min-height: 0;
        padding: 6px;
    }

    .walkthrough-metric.small {
        flex: 0 0 80px;
    }

    .metric-bar {
        width: 60px;
    }

    /* interviews: map pinned on top, stories scroll underneath */
    .interview-section {
        display: block;
    }

    .map-container {
        top: var(--nav-h);
        z-index: 5;
        background: #fff;
        padding-bottom: 6px;
        margin: 0 calc(var(--margin) * -1);
    }

    .map-image-container {
        max-width: min(520px, 44svh);
        margin: 0 auto;
    }

    .interview {
        scroll-margin-top: calc(var(--nav-h) + 36svh);
    }

    .dot-container > .dot {
        width: 16px;
        height: 16px;
    }

    .dot-container > .dot:hover,
    .dot-container > .dot.active {
        width: 28px;
        height: 28px;
    }

    .interview {
        padding: var(--margin) 0;
        gap: var(--margin);
        align-items: flex-start;
    }

    .interview-image-container2 {
        width: 44px;
        height: 44px;
        border-width: 2px;
    }

    /* map galleries: no pinned scrolling on phones, just the image + controls */
    .fullscreen {
        height: auto;
        aspect-ratio: var(--gar);
    }

    .g-image-container {
        position: absolute;
        inset: 0;
        top: 0;
        width: 100%;
        aspect-ratio: auto;
    }

    .g-image-container > img {
        object-fit: contain;
    }

    .g-controls {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 8px var(--margin) 0 auto;
        width: max-content;
    }

    .fullscreen:has(.g-controls) {
        margin-bottom: 52px;
    }

    .fullscreen .g-controls {
        position: absolute;
        top: 100%;
        right: var(--margin);
        margin: 8px 0 0;
    }

    .overlay-data-dot {
        width: 12px;
        height: 12px;
    }

    .overlay-data-point {
        padding: 4px;
    }

    .data-popup-container {
        bottom: 22px;
        width: 120px;
        font-size: 1em;
    }

    /* transect: tap to toggle existing / proposed */
    .transect {
        height: 400vh;
    }

    .wide {
        top: var(--nav-h);
        height: 60vh;
    }

    .wide img:nth-child(2) {
        transition: clip-path 0.5s;
    }

    .transect-toggle {
        display: block;
        position: sticky;
        top: calc(var(--nav-h) + 60vh + 10px);
        margin: 0 auto;
        z-index: 3;
        padding: 10px 14px;
        border: 1px solid var(--highlight);
        background: #fff;
        color: var(--highlight);
        font-size: 1.1em;
    }

    .transect {
        display: flex;
        flex-direction: column;
    }

    .transect .wide {
        flex: none;
    }
}

@media (hover: none) {
    .image-item:hover .image-container img,
    .large-image-container:hover img,
    .classa:hover img {
        transform: none;
    }
}
