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

body {
    font-family: 'Neue Montreal', sans-serif;
    min-height: 100vh;
    width: 100vw;
    _background: #FFF;
    display: flex;
    flex-direction: column;
}

/* Only lock viewport and disable scroll on the home (index) page */
body.index-page {
    overflow: hidden;
    height: 100vh;
}

/* Index has no scrollbar; don't reserve gutter (removes right-edge white stripe) */
html:has(body.index-page) {
    scrollbar-gutter: auto;
}

.hidden {
    display: none;
}

.gallery-container {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    overflow: hidden;
    cursor: pointer;
}

/* Left and right image containers */
.image-container {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    _transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.gallery-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* Labels */
.label {
    position: absolute;
    font-size: 1.333rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    z-index: 5;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.label-left {
    top: 2rem;
    right: 2rem;
    color: #000;
}

.label-right {
    top: 2rem;
    left: 2rem;
    color: #fff;
}

/* vertical over zones */
.hover-zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 10;
    pointer-events: none;
}

.hover-zone {
    flex: 1;
    height: 100%;
    pointer-events: auto;
}

.hover-zone:last-child {
    border-right: none;
}

/*stack left and right on small screens */
@media (max-width: 1200px) {
    .gallery-container {
        flex-direction: column;
    }

    .image-container {
        width: 100%;
        height: 50%;
    }

    .label-left {
        top: auto;
        bottom: 2rem;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        color: #000;
    }

    .label-right {
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
    }
}

/* Bottom white bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    padding: 16px 20px 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 400;
    color: #000;
    text-transform: lowercase;
}

.bottom-bar-left {
    color: #000;
}

.bottom-bar-right {
    color: #000;
    display: flex;
    gap: 20px;
    align-items: center;
}

.bottom-bar a,
.bottom-bar button,
.bottom-bar-right a,
.bottom-bar-right button {
    color: var(--color-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Neue Montreal', sans-serif;
    _transition: color 0.2s ease;
}

.bottom-bar button,
.bottom-bar-right button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.bottom-bar a:hover,
.bottom-bar button:hover,
.bottom-bar-right a:hover,
.bottom-bar-right button:hover {
    color: var(--color-primary-blue);
}