* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: black;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    height: 750px;
    width: auto;
    display: block;
}

.mask-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.mask-top,
.mask-bottom,
.mask-left,
.mask-right {
    position: absolute;
    background: black;
}

/* Calculate opening size - maintain 1:1 ratio (square), 750px height */
.mask-top,
.mask-bottom {
    left: 0;
    width: 100%;
    height: calc((100vh - 750px) / 2);
}

.mask-top {
    top: 0;
}

.mask-bottom {
    bottom: 0;
}

.mask-left,
.mask-right {
    top: calc((100vh - 750px) / 2);
    height: 750px;
    width: calc((100vw - 750px) / 2);
}

.mask-left {
    left: 0;
}

.mask-right {
    right: 0;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.edge-blocker {
    position: absolute;
    top: 0;
    width: 9999px;
    height: 100%;
    background: black;
    box-shadow: 0 0 20px 20px rgba(0, 0, 0, 1);
}

.edge-blocker-left {
    right: 100%;
    
}

.edge-blocker-right {
    left: 100%;
}

.vignette {
    position: fixed;
    top: calc((100vh - 750px) / 2);
    left: calc((100vw - 750px) / 2);
    width: 750px;
    height: 750px;
    pointer-events: none;
    z-index: 1500;
    box-shadow: inset 0 0 20px 20px rgba(0, 0, 0, 1);
}

.navigation-arrows {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.arrow-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrow {
    font-family: 'Courier New', Courier, monospace;
    color: whitesmoke;
    font-size: 60px;
    font-weight: 200;
    opacity: 0.15;
    line-height: 30pt;
}

.arrow-left {
    opacity: 1;
}

.text-overlay {
    position: fixed;
    top: calc((100vh - 750px) / 2 + 750px - 400px);
    left: calc((100vw - 750px) / 2);
    width: 750px;
    font-size: 14pt;
    color: whitesmoke;
    font-family: broadsheet, serif;
    font-weight: 400;
    font-style: italic;
    padding: 20px;
    z-index: 1600;
    pointer-events: none;
    text-align: center;
}

.text-overlay p {
    color: black;
    background: whitesmoke;
    padding: 5px 10px;
    width: fit-content;
    white-space: nowrap;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.animation-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    pointer-events: none;
    overflow: visible;
}

.animation-layer img {
    position: absolute;
    height: 750px;
    width: auto;
    max-width: none;
}

.timeline-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    color: whitesmoke;
    font-family: monospace;
    font-size: 18px;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
}

/* Temporary scrubber for development - remove later */
.timeline-scrubber {
    position: fixed;
    top: 60px;
    left: 20px;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
}

.timeline-scrubber input[type="range"] {
    width: 200px;
    -webkit-appearance: none;
    appearance: none;
    background: whitesmoke;
    height: 4px;
    outline: none;
}

.timeline-scrubber input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: black;
    cursor: pointer;
    border-radius: 50%;
}

.timeline-scrubber input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: black;
    cursor: pointer;
    border: none;
    border-radius: 50%;
}
