*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    font-size: 13px;
}

body {
    margin: 0;
    --color-text: #fff;
    --color-bg: #111;
    --color-link: #fff;
    --color-link-hover: #fff;
    --color-heading: #fff;
    color: var(--black);
    background-color: #111;
    font-family: nimbus-sans, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --ratio: 0.75;
    --grid-item-height: 32vw;
    --grid-item-width: calc(var(--grid-item-height) * var(--ratio));
    --thumb-height: 5vw;
    --thumb-width: calc(var(--thumb-height) * var(--ratio));
}

.oh {
    overflow: hidden !important;
}

a {
    text-decoration: none;
    font-family: "nimbus-sans";
    color: #fff;
    outline: none;
}

.unbutton {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
}

main {
    overflow: hidden;
    position: relative;
}

main::after {
    content: '';
    z-index: 1000;
    pointer-events: none;
    background: linear-gradient(to bottom, #111, transparent);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
}


/* 팝업 스타일 */
#noticePopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    color: white;
    text-align: center;
    padding-top: 20%;
}

#noticePopup p {
    font-size: 1.2rem;
}

#noticePopup button {
    background-color: white;
    color: black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

#noticePopup .dont-show {
    margin-top: 10px;
    font-size: 0.8rem;
}

/* // frame */
.frame {
    padding: 1.5rem;
    position: relative;
    z-index: 5000;
    text-transform: uppercase;
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr auto;
    grid-template-areas: 'title menu'
        'links links';
}

.frame__title {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    font-weight: normal;
    grid-area: title;
}

.frame__links {
    grid-area: links;
}

.frame__links a {
    margin: 0 0.5rem 0 0;
    font-family: "nimbus-sans";
}

/* // heading */
.heading {
    color: var(--color-heading);
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    margin-top: -5vw;
    width: 100%;
    font-size: 12.25vw;
    z-index: 1000;
    pointer-events: none;
    font-family: meno-banner, serif;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    will-change: transform, opacity;
    transform-origin: 50% 40%;
}

.heading--up {
    display: none;
}

.heading--down {
    bottom: 0;
    top: auto;
    margin-top: 0;
    margin-bottom: -6vw;
    transform-origin: 50% 60%;
}

/* login 모달 */
#login_modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: #00000080;
}

.modal_content {
    position: relative;
    background-color: #000;
    margin: 8rem auto;
    width: 31rem;
    /* 이 값을 조정하여 로그인 창의 너비를 조절 */
    height: 41rem;
    /* 이 값을 조정하여 로그인 창의 높이를 조절 */
    z-index: 1;
    position: relative;
}

/* main 모달 */
#image-modal {
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: #000000cc;
    display: none;
}
.modal-content {
    position: relative;
    background-color: #ffffffd0;
    border-radius: 10px;
    margin: 35px auto;
    width: 80%;
    height: 90%;
    z-index: 1;
}
#dynamic-content {
    width: 100%;
    height: 100%;
    margin: auto;
}

/* // columns */
.columns {
    width: 100%;
    position: relative;
    padding: 0 3rem;
    display: flex;
    justify-content: center;
}

.column-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 5vh 0 15vh;
}

.column-wrap--height {
    height: 100vh;
    flex-direction: column-reverse;
}

.column {
    position: relative;
    display: block;
    will-change: transform;
}

.view-content .columns,
.view-content .column {
    pointer-events: none !important;
}

.column-wrap--height .column {
    flex-direction: column-reverse;
    display: flex;
}

.column__item {
    margin: 0;
    position: relative;
    z-index: 1;
}

.column__item-imgwrap {
    width: var(--grid-item-width);
    height: var(--grid-item-height);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    margin: 8vh 1vw 0;
}

.column__item-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 20%;
    backface-visibility: hidden;
}

.column__item-caption {
    text-transform: uppercase;
    padding: 0 3vw;
    margin-top: 0.5rem;
}

.content {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-rows: 9rem 1fr calc(70vh - var(--thumb-height) - 1.6rem) 1fr;
    grid-template-columns: 100%;
    grid-template-areas: '...'
        'back'
        'content'
        'nav';
}

.view-content .content {
    pointer-events: auto;
    opacity: 1;
    z-index: 2000;
}

.content__item {
    position: absolute;
    opacity: 0;
    height: 0;
    grid-area: content;
    display: flex;
    flex-direction: column;
}

.content__item--current {
    opacity: 1;
    position: relative;
    height: 100%;
}

.content__item-title {
    opacity: 0;
    grid-area: title;
    margin: 1rem 0 0 1.5rem;
    justify-self: center;
    font-family: meno-banner, serif;
    font-weight: 300;
    font-style: italic;
    font-size: 9vh;
    white-space: nowrap;
    transform-origin: 50% 80%;
    will-change: transform, opacity;
}

.content__item-text {
    opacity: 0;
    text-transform: uppercase;
    grid-area: text;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 0 1.5rem 1.5rem;
    text-align: right;
    margin: auto 0 0 auto;
}

.content__item-text::before {
    content: '';
    z-index: 1000;
    pointer-events: none;
    background: linear-gradient(to top, var(--color-bg), transparent);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content__item-text span:last-child {
    display: block;
    margin-top: 1rem;
}

.content__nav {
    opacity: 0;
    grid-area: nav;
    align-self: end;
    position: relative;
    overflow: hidden;
    padding: 0 1rem 1rem;
    display: flex;
}

.content__nav-wrap {
    position: relative;
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    height: calc(var(--thumb-height) + 0.6rem);
    overflow: hidden;
    justify-content: center;
    padding: 0 10px;
}

.content__nav-wrap:hover {
    cursor: not-allowed;
}

.content__nav-wrap::before,
.content__nav-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: -5px;
    width: 7px;
    height: 10px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNyIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNiAwIDEgNWw1IDUiIHN0cm9rZT0iIzAwMCIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==");
}

.content__nav-wrap::before {
    left: 0;
}

.content__nav-wrap::after {
    right: 0;
    transform: rotate(180deg);
}

.content__nav-item {
    flex: none;
    height: var(--thumb-height);
    width: var(--thumb-width);
    margin: 0.3rem;
    background-size: cover;
    background-position: 50% 20%;
    will-change: transform, opacity;
}

.button-back {
    opacity: 0;
    stroke: #000;
    z-index: 1000;
    cursor: pointer;
    width: 50px;
    grid-area: back;
    align-self: start;
    justify-self: start;
    margin-left: 1.5rem;
}

.button-back svg {
    stroke-linecap: round;
}

.button-back:hover,
.button-back:focus {
    outline: none;
    stroke: #823725;
}

@media screen and (min-width: 53em) {
    :root {
        font-size: 16px;
    }

    body {
        --ratio: 0.95;
        --grid-item-height: 25vw;
        --thumb-height: 7vh;
    }

    main::after {
        display: none;
    }

    .frame {
        position: fixed;
        text-align: left;
        top: 0;
        left: 0;
        display: grid;
        align-content: space-between;
        width: 100%;
        max-width: none;
        height: 100%;
        padding: 1.5rem 0 1.5rem 1rem;
        pointer-events: none;
        grid-template-columns: 50% 50%;
        grid-template-rows: auto auto;
        grid-template-areas:
            'title menu'
            'links ...';
    }

    .frame__title {
        margin: 0;
        -webkit-writing-mode: vertical-rl;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        white-space: nowrap;
        font-family: "nimbus-sans";
        position: relative;
        cursor: pointer;
        pointer-events: auto;
    }

    .frame__title #categoryTitle {
        display: inline-block;
        color: #fff;
    }

    .frame__title #categoryTitle:hover {
        border-left: 1px solid #fff;
    }

    .frame__links {
        text-align: center;
        -webkit-writing-mode: vertical-rl;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        margin: 0;
        white-space: nowrap;
    }

    .frame__links a {
        color: #fff;
        border-bottom: 0;
        margin: 0.5rem 0;
    }

    .frame__links a:hover {
        border-left: 1px solid #fff;
    }

    .frame a,
    .frame button {
        pointer-events: auto;
    }

    .button-menu {
        grid-area: menu;
        justify-self: end;
        margin-right: 1rem;
    }

    .heading--up {
        display: block;
    }

    .column__item-imgwrap {
        margin: 5vw 2.75vw 0;
    }

    .column__item-caption {
        display: flex;
        justify-content: space-between;
    }

    .view-content .content {
        z-index: 10;
    }

    .content {
        padding: 0;
        grid-template-rows: 15vh 70vh 1fr;
        grid-template-columns: 1fr 1fr calc(70vh * var(--ratio)) 1fr 1fr;
        grid-template-areas: '... ... content content content'
            '... back content content content'
            '... nav nav nav ...';

    }

    .content__item {
        display: grid;
        grid-template-rows: 15vh 1fr 35%;
        grid-template-columns: calc(70vh * 0.95) 1fr;
        grid-template-areas: 'title ...'
            'image text'
            'image text';
        text-align: left;
    }

    .content__item-title {
        margin: 0;
        align-self: center;
    }

    .content__item-text {
        padding: 0 0 1vw 1vw;
        margin: 0;
        max-width: 20ch;
        text-align: left;
    }

    .content__item-text::before {
        display: none;
    }

    .content__item-text span:last-child {
        display: block;
        margin-top: 10vh;
    }

    .content__nav {
        padding: 0 0 1rem 0;
    }

    .button-back {
        margin-left: 0;
        margin-right: 5vw;
        justify-self: end;
    }
}

/*! locomotive-scroll v4.1.3 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */

html.has-scroll-smooth {
    overflow: hidden;
}

html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.has-scroll-smooth body {
    overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
    min-height: 100vh;
}

[data-scroll-direction="horizontal"] [data-scroll-container] {
    height: 100vh;
    display: inline-block;
    white-space: nowrap;
}

[data-scroll-direction="horizontal"] [data-scroll-section] {
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
    height: 100%;
}

.c-scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    width: 11px;
    height: 100%;
    transform-origin: center right;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
}

.c-scrollbar:hover {
    transform: scaleX(1.45);
}

.c-scrollbar:hover,
.has-scroll-scrolling .c-scrollbar,
.has-scroll-dragging .c-scrollbar {
    opacity: 1;
}

[data-scroll-direction="horizontal"] .c-scrollbar {
    width: 100%;
    height: 10px;
    top: auto;
    bottom: 0;
    transform: scaleY(1);
}

[data-scroll-direction="horizontal"] .c-scrollbar:hover {
    transform: scaleY(1.3);
}

.c-scrollbar_thumb {
    position: absolute;
    top: 0;
    right: 0;
    background-color: black;
    opacity: 0.5;
    width: 7px;
    border-radius: 10px;
    margin: 2px;
    cursor: -webkit-grab;
    cursor: grab;
}

.has-scroll-dragging .c-scrollbar_thumb {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

[data-scroll-direction="horizontal"] .c-scrollbar_thumb {
    right: auto;
    bottom: 0;
}