@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");
@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}


:root {
    /* 기본 색상 - Project와 같은 체계를 공유합니다. */
    --color-black: #111;
    --color-black-75: rgba(17, 17, 17, 0.75);
    --color-white: #f2f2f2;
    --color-gray-100: #ddd;
    --color-gray-300: #bbb;
    --color-gray-500: #999;
    --color-gray-800: #777777;
    --color-accent: #ff6f61;

    /* typography */
    --font-main: "pretendard", sans-serif;

    /* size */
    --header-height: 70px; /* 상단 고정 Header 높이 */
    --container-width: 1220px;
    --side-padding: 60px; /* container 내부 좌우 콘텐츠 여백 */

    /* Designer Grid*/
    --designer-grid-card-ratio: 245.36 / 445; /* Grid 카드 이미지 가로/세로 비율 */
    --designer-grid-column-gap: 48.19px; /* Grid 카드 열 사이 간격 */
    --designer-grid-row-gap: 52.39px; /* Grid 카드 행 사이 간격 */

    /* Designer Slide */
    --designer-slide-gap: clamp(12px, 1vw, 20px);

    --designer-slide-default-ratio: 280 / 476;

    --designer-slide-default-width: 16.67vw;

    /* Designer Slide 좌측 영역 */
    --designer-slide-side-width: 168px; /* 세로선과 초성 필터를 포함하는 영역 너비 */
    --designer-slide-side-gap: 131px; /* 초성 필터 영역 오른쪽과 첫 카드 사이 간격 */

    /* transition */    
    --transition-basic: 0.3s ease;
}

[data-theme="light"] {
    --color-black: #ffffff;
    --color-black-75: rgba(255, 255, 255, 0.75);
    --color-white: #111111;
    --color-gray-100: #f5f5f5;
    --color-gray-300: #eeeeee;
    --color-gray-500: #dddddd;
    --color-gray-800: #999999;
    --color-accent: #ff6f61;
}


/* ============================== Reset ============================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-white);
    background-color: var(--color-black);
    line-height: 1.5;
}

/* ============================== Common ============================== */
a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    margin: 0 auto;
}

.icon {
    width: 2rem;
    height: 2rem;
}

.icon {
    filter: invert(0);
}

[data-theme="light"] .icon {
    filter: invert(1);
}

/* ============================== Header ============================== */

.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--color-black);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: var(--container-width);
    
}

.header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.header .nav {
    display: flex;
    align-items: center;
}

.header .nav ul {
    display: flex;
    gap: 5rem;
}

.header .nav ul li {
    font-size: 1rem;
}

/* ============================== Main ============================== */
.main {
    
}

.main .container {
    width: var(--container-width);
    /*padding: 100px var(--side-padding) 0;*/
}


/* ============================== canvas ============================== */
.three-canvas {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-content {
    transition: opacity 0.5s ease;
}

.hero-content, .scroll-hint {
    position: absolute;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.main .upbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-radius: 0 0 50% 50%;
    box-shadow: 0 0 60px 30px rgba(0, 0, 0, 0.5);
}

.main .downbox {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 -0 60px 30px rgba(0, 0, 0, 0.5);
}

.main .day-box {
    position: fixed;
    z-index: 100;

}

.main .d-day {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 1);
}

.main .d-day h1 {
    font-size: 4rem;
    font-weight: bold;
    color: var(--color-white);
    
}

.main .info {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.main .info hr {
    margin: 1.5rem 0;
    opacity: 0.5;
}

.main .info .container {
    display: flex;
    /*flex-direction: column;*/
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;

    opacity: 0.8;

    
    letter-spacing: -0.01em;
}

.main .info .textbox {
    text-align: start;
    color: var(--color-white);

}

.main .info h3 {
    font-size: 1rem;
    font-weight: 800;
}

.main .info h4 {
    font-size: 0.75rem;
    font-weight: 500;
}

.main .info .icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main .info .icons a {
    transition: 0.5s ease;
}

.main .info .icons a:hover {
    transform: scale(0.95);
    opacity: 0.2;

    transition: 0.3s ease;
}

.main .info .container .venue a {
    transition: 0.3s ease-in-out;
    font-size: 1rem;
    font-weight: 800;
}

.main .info .container .venue a:hover {
    opacity: 0.2;
    transition: 0.3s ease-in-out;
}

.archive {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height : 100vh;
    z-index: 100;
    gap: 2rem;

    opacity: 0;
    pointer-events: none;

    transition: var(--transition-archive);
}

.archive.active {
    transition-delay: var(--delay-archive);
    opacity: 1;
    pointer-events: auto;
}

.archive .video-box {
    width: var(--container-width);
    height: 100%;

    display: flex;
    align-items: end ;
    justify-content: center;
    gap: 1rem;
    flex: 1;
}

.archive .video-box .video {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 30%;
}

.archive .video-box .video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.archive .picture-box {
    width: 100vw;
    height: 50vh;
    display: flex;
    align-items: start;
    justify-content: center;
    flex: 1;
    /*gap: 1rem;*/
    top: 0;
}

.archive.active {
    top: 0;
    margin: 0;
    padding: 0;
}

.archive .picture-box .picture {
    aspect-ratio: 9 / 16;
    width: auto;
    height: 50vh;
}

.archive .video-box {
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition-archive);
}

.picture-box .picture {
    opacity: 0;
    scale: 0.95;
    transition: opacity var(--opacity-archive) , scale var(--transition-archive);
    will-change: opacity, scale;
}

.archive.active .picture-box .picture {
    opacity: 1;
    scale: 1;
}


/*.archive.active .video-box,
.archive.active .picture-box {
    transition: opacity var(--opacity-archive), transform var(--transition-archive);
    transition-delay: var(--delay-archive);
    opacity: 1;
    transform: translateY(0);
}*/

.archive.active .picture-box .picture:nth-child(1) {
    transition-delay: calc(var(--delay-archive) + 0.5s);
}

.archive.active .picture-box .picture:nth-child(2) {
    transition-delay: calc(var(--delay-archive) + 0.6s);
}

.archive.active .picture-box .picture:nth-child(3) {
    transition-delay: calc(var(--delay-archive) + 0.7s);
}

.archive.active .picture-box .picture:nth-child(4) {
    transition-delay: calc(var(--delay-archive) + 0.8s);
}

.archive.active .picture-box .picture:nth-child(5) {
    transition-delay: calc(var(--delay-archive) + 0.9s);
}

.archive.active .picture-box .picture:nth-child(6) {
    transition-delay: calc(var(--delay-archive) + 1s);
}

.archive.active .picture-box .picture:nth-child(7) {
    transition-delay: calc(var(--delay-archive) + 1.1s);
}

.picture-box .picture {
    aspect-ratio: 9 / 16;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /*border-radius: 5px;*/
}

.exhibition_info {
    width: var(--container-width);
    height: 50vh;
    display: column;
    align-items: start;
    justify-content: center;
    flex: 1;
}

.exhibition_info .title {
    position: fixed; 
    font-size: 5rem ;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.05)
}

.exhibition_info .content .time {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.9%;
}

/* ============================== Footer ============================== */
.footer {
    background-color: var(--color-black);
    padding: 20px 0;
    text-align: center;
    z-index: 1000;
}

.footer .container {
    width: var(--container-width);
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.footer .container .footer-info {
    display: column;
    text-align: left;
}

.footer .container .footer-info h3 {
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.footer .container .footer-info p {
    color: var(--color-white);
    font-size: 0.5rem;
}

.footer .container .footer-info img {
    margin-bottom: 0.5rem;
}

.footer .container .footer-icons {
    display: flex;
    align-items: end;
    gap: 20px;
}




/* 태블릿 이하 */
@media (max-width: 1024px) {
    .main .d-day h1 {
        font-size: clamp(3rem, 9vw, 4rem);
    }

    .main .info {
        bottom: 4%;
    }

    .archive {
        width: 100%;
        padding: 0 1rem;
        gap: 1.25rem;
        margin-top: 0;
    }

    .archive .video-box {
        width: 100%;
        gap: 0.75rem;
    }

    .archive .video-box .video {
        width: 42%;
    }

    .archive .picture-box {
        width: 100%;
    }

    .archive .picture-box .picture {
        width: clamp(7rem, 15vw, 10rem);
        flex-shrink: 0;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .hero-section {
        height: 100svh;
    }

    .three-canvas {
        width: 100%;
        height: 100svh;
    }

    .main .upbox,
    .main .downbox {
        height: 4%;
        box-shadow: 0 0 40px 20px rgba(0, 0, 0, 0.45);
    }

    .main .d-day h1 {
        font-size: clamp(2.5rem, 16vw, 4rem);
        line-height: 1;
    }

    .main .info {
        bottom: 3%;
        width: 100%;
        padding: 0 1rem;
    }

    .main .info .container {
        width: 100%;
        gap: 0.4rem;
    }

    .main .info h3 {
        font-size: 0.9rem;
    }

    .main .info h4 {
        font-size: 0.7rem;
    }

    .icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .archive {
        justify-content: center;
        height: 100svh;
        padding: 4rem 0 2rem;
        gap: 1rem;
    }

    /* 모바일에서 영상은 한 줄 가로 스크롤 */
    .archive .video-box {
        width: 100%;
        flex: none;
        justify-content: flex-start;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .archive .video-box .video {
        width: auto;
        flex: 0 0 82vw;
        scroll-snap-align: center;
    }

    .archive .video-box .video iframe {
        border-radius: 8px;
    }

    /* 모바일에서 세로 이미지는 가로 스크롤 */
    .archive .picture-box {
        width: 100%;
        flex: none;
        justify-content: flex-start;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .archive .picture-box .picture {
        flex: 0 0 clamp(6.5rem, 28vw, 8.5rem);
        width: auto;
        scroll-snap-align: center;
    }

    .archive .video-box::-webkit-scrollbar,
    .archive .picture-box::-webkit-scrollbar {
        display: none;
    }

    .archive .video-box,
    .archive .picture-box {
        scrollbar-width: none;
    }

    .archive .video-box {
        transform: translateX(40%);
    }

    .archive .picture-box {
        transform: translateX(-40%);
    }

    .archive.active .video-box,
    .archive.active .picture-box {
        transform: translateX(0);
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    :root {
        --container-width: calc(100vw - 1.5rem);
    }

    .main .d-day h1 {
        font-size: clamp(2.25rem, 17vw, 3.5rem);
    }

    .main .info h3 {
        font-size: 0.8rem;
    }

    .main .info h4 {
        font-size: 0.65rem;
    }

    .icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .archive {
        padding-top: 3rem;
        gap: 0.75rem;
    }

    .archive .video-box {
        padding: 0 0.75rem;
    }

    .archive .video-box .video {
        flex-basis: 86vw;
    }

    .archive .picture-box .picture {
        flex-basis: 7rem;
    }
}