/* VARIABLES */

:root {
    /* Spacer */
    --spacer: 1vw;

    /* Colors */
    --black: #000000;
    --white: #FFFFFF;

    /* Spacing */
    --edge-margin: 20px;
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    vertical-align: baseline;
    box-sizing: border-box;
}

/* SCROLLBAR */

*::-webkit-scrollbar {
    display: none;
}

/* WEBFONTS */

@font-face {
    font-family: 'Suisse Int';
    src: url("../fonts/Suisse BP Int'l Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

/* GLOBAL */

body {
    font-family: 'Suisse Int', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0b0b0b;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    /* Prevent vertical scrolling */
    width: 100vw;
    height: 100vh;
}

/* SWIPER CONTAINER */

.swiper {
    width: 100vw;
    height: 100vh;
    background-color: #0b0b0b;
    cursor: none;
}

.swiper-wrapper {
    transition-timing-function: ease-out;
}

/* PROJECT IMAGE SLIDE */

.project-slide {
    width: auto !important;
    /* Variable width based on image aspect ratio */
    height: 100vh;
    background-color: #0b0b0b;
}

.slide-inner {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-inner img {
    height: 100vh;
    width: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* FIXED SITE NAME (TOP LEFT) */

.fixed-site-name {
    position: fixed;
    top: var(--edge-margin);
    left: var(--edge-margin);
    color: #000;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
    z-index: 1000;
    pointer-events: none;
    text-transform: none;
}

.fixed-site-name svg {
    height: 18px;
    width: auto;
    fill: #000;
    display: block;
}

/* IMAGE CREDIT (BOTTOM RIGHT OF EACH SLIDE) */

.image-credit {
    position: absolute;
    bottom: var(--edge-margin);
    right: var(--edge-margin);
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
}

.swiper-slide:hover .image-credit {
    opacity: 1;
}

/* FIXED PROJECT INFO BOTTOM BAR */

.fixed-bottom-bar {
    position: fixed;
    bottom: var(--edge-margin);
    left: var(--edge-margin);
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 0px;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
    text-transform: none;
    /* Never uppercase */
    z-index: 500;
    pointer-events: none;
    opacity: 1;
}

.project-name {
    font-weight: 500;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Horizontal margin between year, place, etc. */
}

.project-detail-item:empty {
    display: none;
}

/* FIXED INFO TOGGLE BUTTON (TOP RIGHT) */

.info-toggle-btn {
    position: fixed;
    top: var(--edge-margin);
    right: var(--edge-margin);
    background: none;
    border: none;
    color: #000;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
    cursor: pointer;
    z-index: 2000;
    /* Stays above the drawer */
    outline: none;
    font-family: inherit;
    padding: 0;
    transition: opacity 0.3s;
}

.info-toggle-btn:hover {
    opacity: 0.8;
}

/* INFO DRAWER (SLIDING FROM RIGHT) */

.info-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 25vw;
    /* 1/4 of viewport width */
    height: 100dvh;
    background-color: #ffffff;
    z-index: 1500;
    transform: translateX(100%);
    /* Offscreen by default */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.info-drawer.open {
    transform: translateX(0);
    /* Slide in */
}

.info-drawer-content {
    padding: var(--edge-margin) 80px var(--edge-margin) var(--edge-margin);
    /* Right offset for Close button overlay */
    font-size: 18px;
    line-height: 1.25;
    font-weight: 400;
    color: #000;
}

.info-drawer-content p:first-child {
    margin-top: 0;
}

.info-drawer-content p {
    margin-bottom: 1.5rem;
}

.info-drawer-content a {
    color: #000;
    text-decoration: underline;
}

.info-drawer-content a:hover {
    opacity: 0.7;
}

/* CUSTOM CURSOR */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    color: #fff;
    mix-blend-mode: difference;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
    opacity: 0;
    will-change: transform;
}

/* MOBILE ADAPTATIONS */

@media screen and (max-width: 992px) {
    .info-drawer {
        width: 50vw;
        /* Wider drawer on tablets */
    }
}

@media screen and (max-width: 768px) {
    .info-drawer {
        width: 100vw !important;
        /* Full width drawer on mobile/screens less than 768px */
    }

    .fixed-site-name,
    .fixed-bottom-bar,
    .info-toggle-btn,
    .info-drawer-content {
        font-size: 18px;
    }

    .image-credit {
        font-size: 14px;
    }

    :root {
        --edge-margin: 15px;
    }

    .swiper {
        height: 100dvh;
    }

    .project-slide {
        height: 100dvh;
    }

    .slide-inner {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slide-inner img {
        height: calc(100vh - 140px);
        height: calc(100dvh - 140px);
        width: auto;
    }

    .custom-cursor {
        display: none !important;
    }
}