@font-face {
    font-family: "merchant_copy";
    src: url("typefaces/merchant_copy_regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

:root {
    --font-main: "Merchant Copy", sans-serif;
    --font-mono:
        "Consolas",
        "SFMono-Regular",
        "Menlo",
        "Monaco",
        "Courier New",
        monospace;
}

body {
    font-family: var(--font-main);
}
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
}


#viewport {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    background: #ffffff;
    touch-action: none;
    overscroll-behavior: none;
}


#viewport:active {
    cursor: grabbing;
}


#canvas {

    position: absolute;
    width: 1px;
    height: 1px;
    background: transparent;
    transform-origin: 0 0;

}

/* Compositor hint only while actively panning/zooming — see gallery.js
   beginInteraction/endInteractionSoon. Permanently promoting every .project
   tile was tried and reverted; with dozens of large images resident that
   pinned far more GPU memory than it saved. */
#canvas.interacting {
    will-change: transform;
}

.project {
    position: absolute;
    transform-origin:center center;
}

/* Offscreen tiles (see gallery.js refreshTiles/setCulled): skip layout and
   paint, and the srcset is already shrunk to the smallest generated tier so
   the decoded bitmap gets released too. */
.project.culled {
    content-visibility: hidden;
}


.project picture {
    display: block;
}

.project img {
    width: 100%;
    height: auto;
    display: block;
}


.caption {
    margin-top: 5px;
    max-width: 300px;
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1;
    letter-spacing: .03em;
    color: #1C25D3;
}

.portfolioIntro {
    position: absolute;
    width: 1920px;
    height: 945px;
    pointer-events: none;
    user-select: none;
    font-family: var(--font-main);
    letter-spacing: .03em;
    color: #1C25D3;
    text-align: center;
    z-index: 1;
}

.portfolioIntroTitle {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.portfolioIntroEmail {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    pointer-events: auto;
    font-size: 14px;
    line-height: 1;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.portfolioIntroEmail:hover,
.portfolioIntroEmail:focus-visible {
    text-decoration: underline;
}

.introMark {
    position: absolute;
    width: 20px;
    height: 20px;
}

.introMark::before,
.introMark::after {
    position: absolute;
    content: "";
    background: #1C25D3;
}

.introMark::before {
    width: 20px;
    height: 1px;
}

.introMark::after {
    width: 1px;
    height: 20px;
}

.introMarkTopLeft {
    top: 100px;
    left: 100px;
}

.introMarkTopRight {
    top: 100px;
    right: 100px;
}

.introMarkTopRight::before,
.introMarkBottomRight::before {
    right: 0;
}

.introMarkTopRight::after,
.introMarkBottomRight::after {
    right: 0;
}

.introMarkBottomLeft {
    bottom: 100px;
    left: 100px;
}

.introMarkBottomRight {
    right: 100px;
    bottom: 100px;
}

.introMarkBottomLeft::before,
.introMarkBottomRight::before {
    bottom: 0;
}

.introMarkBottomLeft::after,
.introMarkBottomRight::after {
    bottom: 0;
}

.portfolioIntroHint {
    position: absolute;
    left: 50%;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    line-height: 1;
    transform: translateX(-50%);
    white-space: nowrap;
}

.desktopHint {
    display: block;
}

.touchHint {
    display: none;
}

body.mobileLanding .desktopHint,
body:not(.mobileLanding) .touchHint {
    display: none;
}

body.mobileLanding .touchHint {
    display: block;
}

body.mobileLanding .portfolioIntroHint {
    bottom: 140px;
}

@media (pointer: coarse) {
    .desktopHint {
        display: none;
    }

    .touchHint {
        display: block;
    }
}

#run_club {
    left: 4800px;
    top: 4500px;
}

.project {
    user-select: none;
}


body:not(.curator) .project {
    pointer-events: none;
}

body.curator .project {
    pointer-events: auto;
}
.project.selected {
    outline: 2px solid rgb(35, 32, 223);
    outline-offset: 12px;
}

#modeMessage {

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 14px 24px;
    background: rgba(0,0,0,0.85);
    color: white;
    font-family: var(--font-main);
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 9999;

}

#modeMessage.show {
    opacity: 1;
}

#curatorHUD {
    position: fixed;
    top: 30px;
    right: 30px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    background:white;
    padding:20px;
    display:none;
    z-index:9999;
}

body.curator #curatorHUD {
    display:block;
}

#spacedPreviewPanel {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10000;
    max-width: 260px;
    padding: 14px;
    border: 2px solid #1C25D3;
    background: rgba(255, 255, 255, 0.95);
    color: #1C25D3;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
}

#copySpacedPreviewTransforms {
    margin-top: 10px;
    padding: 6px 8px;
    border: 1px solid #1C25D3;
    background: white;
    color: #1C25D3;
    font: inherit;
    cursor: pointer;
}

#copyTransform {
    margin-top:15px;
    background:none;
    border:1px solid black;
    padding:8px 12px;
    font-family:var(--font-mono);
    font-size:12px;
    cursor:pointer;
}
.resizeHandle {

    position: absolute;

    width: 16px;

    height: 16px;

    right: -20px;

    bottom: -20px;

    border-radius: 50%;

    background: white;

    border: 2px solid rgb(35, 32, 223);

    display: none;

    cursor: nwse-resize;

}


.project.selected .resizeHandle {

    display: block;

}
body.curator .project {
    cursor: move;
}

body.curator .project.selected {
    outline: 2px solid #1f6fff;
    outline-offset: 12px;
}

body.curator .resizeHandle {
    cursor: nwse-resize;
}

body:not(.curator) .project {
    cursor: grab;
}
.viewportGuide {
    position: absolute;
    box-sizing: border-box;
    pointer-events: none;
    display: none;
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 8px;
    z-index: 999;
}

body.curator .viewportGuide {
    display: block;
}

#desktopFrame {
    left: 5000px;
    top: 5000px;
    width: 1920px;
    height: 945px;
    border: 2px solid red;
    color: red;
}

#laptopFrame {
    left: 5275px;
    top: 5085px;
    width: 1366px;
    height: 768px;
    border: 2px solid rgb(255, 0, 140);
    color: rgb(255, 0, 140);
}

#mobileFrame {
    left: 5763px;
    top: 5047px;
    width: 390px;
    height: 844px;
    border: 2px solid green;
    color: green;
}
img {
    image-rendering: auto;
}
