
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap");

/* SPACE page */
:root {
    --side: 45px;
    --column-gap: 30px;
    --row-gap: 44px;
}

body {
    background: #fff;
    color: #202020;
    font-family: "Open Sans", "NanumSquare", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    height: 90px;
    margin: 0;
    padding: 0 var(--side);
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
}

.site-header nav {
    font-size: 12px;
}

.site-header nav a {
    padding: 10px 0 2px;
}

.nv-logo {
    display: inline-block;
    width: 100px;
    color: #202020;
    font-weight: 800;
    font-size: 16px;
    margin-right: 30px;
}

.nv-logo span {
    display: block;
    background-color: #aaa;
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav .active {
    text-decoration: underline;
    text-underline-offset: 8px;
}

.instagram {
    margin-left: auto;
}

/* PORTFOLIO */
.portfolio {
    padding: 0 var(--side) 60px;
}

/* PROJECT - DESKTOP */
.project {
    display: block;
    margin-bottom: var(--row-gap);
    padding-bottom: 28px;
    border-bottom: 1px solid #000;
}

.project-slides {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--column-gap);
}

.project-item {
    min-width: 0;
}

.project-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.project-item figcaption {
    padding-top: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.project-item mark {
    background: #111;
    color: #fff;
}

/* Hidden on desktop */
.project-mobile-info {
    display: none;
}

.cont_img { margin: 100px 0 100px;}

.menu-trigger,
.drawer-backdrop,
.mobile-drawer {
    display: none;
}

/* FOOTER */
.site-footer {
    background: #000;
    color: #fff;
    padding: 70px var(--side) 70px;
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 25px;
    font-size: 11px;
    line-height: 1.65;
}

.footer-contact {
    max-width: 560px;
}

.footer-heading {
    margin-bottom: 17px;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact a {
    display: inline-block;
    margin-top: 4px;
}

.footer-dash {
    margin-top: 16px;
    margin-bottom: 12px;
}

.footer-notice {
    max-width: 510px;
}

.footer-copyright {
    margin-top: 25px;
}

.footer-tel {
    font-size: 11px;
}

/* MOBILE */
@media (max-width: 991px) {

    :root {
        --side: 15px;
        --row-gap: 34px;
    }

    /* HEADER */
    .site-header {
        height: 54px;
        margin: 0 15px;
        padding: 0;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        transition: transform 240ms ease;
        will-change: transform;
    }

    .nv-logo {
        font-size: 20px;
    }

    .nv-logo span {
        display: block;
        background-color: #aaa;
        border: 0;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .site-nav,
    .instagram {
        display: none;
    }

    .menu-trigger {
        display: flex;
        margin-left: auto;
        width: 34px;
        height: 34px;
        padding: 7px;
        border: 0;
        background: transparent;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
    }

    .menu-trigger span {
        display: block;
        width: 20px;
        height: 1px;
        background: #222;
    }

    /* MOBILE DRAWER */
    .drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1999;
        background: rgb(0 0 0 / 62%);
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms ease, visibility 300ms;
    }

    .mobile-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        width: 45%;
        min-width: min(260px, 80vw);
        max-width: 360px;
        background: #000;
        color: #fff;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 300ms ease, visibility 300ms;
        overflow-y: auto;
    }

    .drawer-nav {
        display: flex;
        flex-direction: column;
        padding: 6px 20px 30px;
    }

    .drawer-nav a {
        padding: 11px 0;
        font-size: 14px;
        line-height: 1.1;
    }

    .drawer-close {
        position: absolute;
        right: 16px;
        top: 10px;
        width: 34px;
        height: 34px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .drawer-close span {
        position: absolute;
        left: 6px;
        top: 16px;
        width: 22px;
        height: 1.5px;
        background: white;
        transform: rotate(45deg);
    }

    .drawer-close span + span {
        transform: rotate(-45deg);
    }

    body.drawer-open {
        overflow: hidden;
    }

    html {
        scrollbar-gutter: stable;
    }

    body.drawer-open .drawer-backdrop {
        opacity: 1;
        visibility: visible;
    }

    body.drawer-open .mobile-drawer {
        transform: translateX(0);
        visibility: visible;
    }

    /* PORTFOLIO */
    .portfolio {
        padding-top: 0px;
        padding-bottom: 0;
    }

    .project {
        display: block;
        padding-bottom: 0;
    }

    /* MOBILE SWIPE SLIDER */
    
/* MOBILE SWIPE SLIDER */

.project-slides {
    display: flex;
    overflow-x: auto;
    column-gap: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.project-slides::-webkit-scrollbar {
    display: none;
}

.project-item {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.project-item img {
    aspect-ratio: 2 / 3;
}



    /* Hide individual captions on mobile */
    .project-item figcaption {
        display: none;
    }

    /* Show combined captions and counter */
    .project-mobile-info {
      display: block;
      position: relative;
      padding: 16px 5px 8px;
    }
.project-mobile-caption > div {
    display: none;
}

.project-mobile-caption > div:first-child {
    display: block;
}
    .project-count {
        text-align: right;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .project-mobile-caption {
        font-size: 12px;
        line-height: 1.5;
    }

    .project-mobile-caption > div {
        margin-bottom: 8px;
        white-space: pre-line;
    }

    .project-mobile-caption mark {
        background: none;
        color: #000;
    }

    /* FOOTER */
    .site-footer {
        display: block;
        padding: 60px 15px 65px;
        font-size: 11px;
    }

    .footer-contact {
        max-width: none;
    }

    .footer-notice {
        max-width: none;
    }

    .footer-tel {
        margin-top: 32px;
    }
}

/* MOBILE HEADER SCROLL */
@media (max-width: 991px) {
    .site-header.is-hidden {
        transform: translateY(-100%);
      
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .drawer-backdrop,
    .mobile-drawer {
        transition: none;
    }
}

/* PROJECT DETAIL */
.project-detail {
    padding: 0 45px 72px;
}

.detail-hero,
.detail-gallery {
    margin: 0;
}

.cont_img { margin-top: 100px;}

.detail-hero img,
.detail-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.detail-intro {
    margin: 0 0 0;
    padding: 40px 20% 0;
    border-radius: 0;
    border: 0 0 #000;
    min-height: 0;
    line-height: inherit;

}

.detail-intro h1 {
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 14px;
}

.detail-intro p {
    margin: 0;
}

.detail-intro .detail-credits {
    margin-top: 30px;
    font-size: 12px;
    line-height: 1.35;
}

.detail-gallery {
    margin: 100px 0 0;
}

.detail-gallery--pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
    align-items: start;
}

.detail-gallery--pair img {
    min-width: 0;
}

/* PROJECT DETAIL - MOBILE */
@media (max-width: 991px) {

    .project-detail {
        padding: 0 15px 48px;
    }

    .detail-intro {
        margin: 18px auto 44px;
        padding: 0 10px 0;
        font-size: 13px;
        line-height: 1.35;
    }

    .detail-intro h1 {
        font-size: 13px;
    }

    .detail-intro .detail-credits {
        font-size: 11px;
    }

    .detail-gallery {
        margin-top: 18px;
    }

    .detail-gallery--pair {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
  .project-controls {
    display: flex;
    position: absolute;
    right: 5px;
    top: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-arrows {
    display: flex;
    gap: 16px;
}

.project-arrows button {
    border: 0;
    background: transparent;
    padding: 0;
    width: 30px;
    height: 30px;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: #202020;
    cursor: pointer;
}

.project-arrows button:disabled {
    opacity: 0.25;
    cursor: default;
}

.project-count {
    font-size: 12px;
    margin-bottom: 0;
}
}
