@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang&display=swap');

:root {
    --std: 16px;
    --maxWidth: 840px;
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    line-height: 1;
    word-break: keep-all;
    font-family: "Gowun Batang", serif;
    font-weight: inherit;
    font-style: normal;
    text-decoration: none;
    color: inherit;
    scroll-behavior: smooth;
}

html {
    font-size: 16px;
}

#main-header {
    padding: calc(var(--std) * 1.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--std) * (1.5 * 4.0));
    z-index: 100;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-transition: height 0.25s ease-out;
    -o-transition: height 0.25s ease-out;
    transition: height 0.25s ease-out;
}

#main-header.active {
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(220, 220, 220, 0.5);
    height: calc(var(--std) * (1.5 * 3.0));
}

.logo {
    width: auto;
    height: calc(var(--std) * (1.5 * 2.0));
    opacity: 1;
    -webkit-transition: opacity 0.25s ease-out;
    -o-transition: opacity 0.25s ease-out;
    transition: opacity 0.25s ease-out;
}

#main-header.active .logo {
    opacity: 0;
}

.logo > img {
    width: auto;
    height: 100%;
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#go-to-top {
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 0.25s ease-out;
    -o-transition: opacity 0.25s ease-out;
    transition: opacity 0.25s ease-out;
    font-size: 1.25rem;
    text-align: center;
    -webkit-transition: font-size 0.25s ease-out;
    -o-transition: font-size 0.25s ease-out;
    transition: font-size 0.25s ease-out;
}

#main-header.active > #go-to-top {
    opacity: 1;
    pointer-events: all;
}

#go-to-top .ko strong {
    line-height: 1.5;
}

#go-to-top .en strong {
    line-height: 1.3;
}

#main-header > .logo:nth-child(1) {
    position: absolute;
    left: calc(var(--std) * 1.5);
}

#main-header > .logo:nth-child(3) {
    position: absolute;
    right: calc(var(--std) * 1.5);
}

#main-content {
    margin-bottom: calc(var(--std) * (1.5 * 2.0) * 2.0);
    width: 100%;
    height: 100%;
}

#graphic {
    padding: calc(var(--std) * (1.5 * 3.0)) 0;
    padding-bottom: calc(var(--std) * (1.5 * 5.0));
    width: 100%;
    height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: calc(var(--std) * (1.5 * 2.0));
}

#graphic > .thumb {
    position: relative;
    width: calc(var(--maxWidth));
    height: calc(var(--maxWidth) * (3 / 4));
    overflow: hidden;
}

@-webkit-keyframes animThumb {
    0% {
        -webkit-transform: scale(1.0);
                transform: scale(1.0);
    }

    100% {
        -webkit-transform: scale(1.1);
                transform: scale(1.1);
    }
}

@keyframes animThumb {
    0% {
        -webkit-transform: scale(1.0);
                transform: scale(1.0);
    }

    100% {
        -webkit-transform: scale(1.1);
                transform: scale(1.1);
    }
}

@-webkit-keyframes fadeInWithScale {
    0% {
        opacity: 0;
        -webkit-transform: scale(5);
                transform: scale(5);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
                transform: scale(1);
    }
}

@keyframes fadeInWithScale {
    0% {
        opacity: 0;
        -webkit-transform: scale(5);
                transform: scale(5);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
                transform: scale(1);
    }
}

.thumb > .inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-animation-name: animThumb;
            animation-name: animThumb;
    -webkit-animation-duration: 1s;
            animation-duration: 1s;
    -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
            animation-direction: alternate;
}

.thumb > .inner > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center center;
       object-position: center center;
    opacity: 0;
    -webkit-transform: scale(5);
        -ms-transform: scale(5);
            transform: scale(5);
    -webkit-animation-name: fadeInWithScale;
            animation-name: fadeInWithScale;
    -webkit-animation-duration: 2s;
            animation-duration: 2s;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
    -webkit-animation-timing-function: cubic-bezier(0.075, 0.8, 0.15, 1);
            animation-timing-function: cubic-bezier(0.075, 0.8, 0.15, 1);
}

.thumb::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -o-radial-gradient(rgba(0, 0, 0, 0) 60%, rgba(255, 255, 255, 1) 70%);
    background: radial-gradient(rgba(0, 0, 0, 0) 60%, rgba(255, 255, 255, 1) 70%);
}

.title {
    position: relative;
    width: calc(var(--maxWidth));
}

.title > img {
    width: 100%;
    height: auto;
}

#sections {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: calc(var(--std) * 1.5);
}

.section {
    padding-top: calc(var(--std) * 1.5);
    margin: 0 calc((100% - (var(--maxWidth))) / 2);
    margin-bottom: calc(var(--std) * (1.5 * 2.0) * 2.0);
    width: var(--maxWidth);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: calc(var(--std) * (1.5 * 2.0));
    border-top: 1px solid rgba(220, 220, 220, 0.5);
}

.section.full {
    padding: 0;
    margin: 0 calc(var(--std) * 1.5);
    margin-bottom: calc(var(--std) * (1.5 * 2.0) * 2.0);
    width: calc(100% - var(--std) * (1.5 * 2.0));
    border-top: none;
}

.section.full > .caption {
    margin: 0 auto;
    width: var(--maxWidth);
    text-align: center;
}

.caption .ko .heading p,
.caption .en .heading p {
    font-size: 2rem;
    font-weight: 700;
}

.caption .ko .content p,
.caption .en .content p {
    font-size: 1.25rem;
}

.section > .heading {
    color: rgb(160, 120, 35);
}

.section > .heading > .ko p {
    -webkit-writing-mode: vertical-lr;
        -ms-writing-mode: tb-lr;
            writing-mode: vertical-lr;
    letter-spacing: 0.2em;
    text-align: center;
    margin: 0 auto;
}

.section > .heading > .en p {
    text-align: center;
}

.section > .heading > .ko p,
.section > .heading > .en p {
    font-size: 2rem;
    font-weight: 700;
}

#main-footer {
    padding: calc(var(--std) * 1.5);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--std) * (1.5 * 3.0));
    z-index: 100;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 1.25rem;
    -webkit-transition: font-size 0.25s ease-out;
    -o-transition: font-size 0.25s ease-out;
    transition: font-size 0.25s ease-out;
    color: rgb(160, 120, 35);
}

#main-footer > .item-main-footer .ko strong {
    line-height: 1.5;
}

#main-footer > .item-main-footer .en strong {
    line-height: 1.3;
}

#main-footer > .item-main-footer .ko strong {
    position: relative;
    bottom: -0.375em;
}

#main-footer > .item-main-footer .en strong {
    position: relative;
    bottom: -0.25em;
}

#main-footer.active {
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    border-top: 1px solid rgba(220, 220, 220, 0.5);
}

#main-footer > .venue {
    position: absolute;
    left: calc(var(--std) * 1.5);
}

#main-footer > #cont-lang {
    position: absolute;
    right: calc(var(--std) * 1.5);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: calc(var(--std) * (1.5 * 0.375));
}

#cont-lang > button {
    padding: 0.25em 0;
    position: relative;
    border: none;
    background-color: transparent;
    font-size: 1.25rem;
    border-radius: 1em;
    -webkit-transition: font-size 0.25s ease-out;
    -o-transition: font-size 0.25s ease-out;
    transition: font-size 0.25s ease-out;
}

#cont-lang > button > strong {
    color: inherit;
}

#cont-lang > button.active {
    padding: 0.25em 0.5em;
    background-color: rgb(160, 120, 35);
    color: rgb(255, 255, 255);
}

.cont-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: calc(100% * (9 / 16));
}

.cont-video > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* common */
.section p {
    font-size: 1.25rem;
}

strong {
    font-weight: 700;
    color: rgb(160, 120, 35);
}

i {
    font-style: italic;
}

.section .ko p {
    line-height: 1.75;
}

.section .en p {
    line-height: 1.5;
}

.ko, .en {
    display: none;
}

.ko.active, .en.active {
    display: block;
}

a, button {
    cursor: pointer;
}

a:hover, button:hover {
    opacity: 0.5;
}

/* grid */
#cont-grid {
    display: none;
}

.grid {
    position: fixed;
}

.grid:nth-child(1) {
    top: calc(var(--std) * 1.5);
    width: 100%;
    height: 1px;
    border-bottom: 1px solid rgb(255, 0, 255);
}

.grid:nth-child(2) {
    bottom: calc(var(--std) * 1.5);
    width: 100%;
    height: 1px;
    border-bottom: 1px solid rgb(255, 0, 255);
}

.grid:nth-child(3) {
    top: 0;
    left: calc(var(--std) * 1.5);
    width: 1px;
    height: 100%;
    border-right: 1px solid rgb(255, 0, 255);
}

.grid:nth-child(4) {
    top: 0;
    right: calc(var(--std) * 1.5);
    width: 1px;
    height: 100%;
    border-right: 1px solid rgb(255, 0, 255);
}

.grid:nth-child(5) {
    top: 0;
    left: calc((100% - var(--maxWidth)) / 2);
    width: 1px;
    height: 100%;
    border-right: 1px solid rgb(0, 255, 255);
}

.grid:nth-child(6) {
    top: 0;
    left: calc((100% - var(--maxWidth)) / 2 + (var(--maxWidth)));
    width: 1px;
    height: 100%;
    border-right: 1px solid rgb(0, 255, 255);
}

/* common */
.mobile {
    display: none;
}

/* responsive */
@media screen and (max-width: 1200px) {
    #main-footer {
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }

    #main-footer > .venue,
    #main-footer > #cont-lang {
        position: static;
    }
}

@media screen and (max-width: 1000px) {
    :root {
        --maxWidth: calc(100% - (var(--std) * 1.5) * 2.0);
    }
}

@media screen and (max-width: 1000px) and (min-aspect-ratio: 1 / 1) {
    .title {
        display: none;
    }

    #graphic > .thumb {
        height: calc(var(--maxWidth) * (4 / 4));
    }
}

@media screen and (max-width: 900px) {
    #main-footer {
        height: auto;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        gap: 0;
    }

    #main-footer > #cont-lang {
        position: absolute;
        right: calc(var(--std) * 1.5);
        bottom: calc(var(--std) * 1.5);
    }
}

@media screen and (max-width: 600px) {
    :root {
        --std: 13px;
    }

    html {
        font-size: 13px;
    }

    #main-header {
        height: calc(var(--std) * (1.5 * 3.5));
    }

    #main-header > .logo:nth-child(1),
    #main-header > .logo:nth-child(3) {
        height: calc(var(--std) * (1.5 * 1.5));
    }

    .section > .heading > .ko p, .section > .heading > .en p {
        font-size: 1.75rem;
    }

    .caption .ko .heading p, .caption .en .heading p {
        font-size: 1.5rem;
    }

    .mobile {
        display: block;
    }

    #main-footer {
        font-size: 1rem;
    }

    #go-to-top {
        font-size: 1rem;
    }

    #main-footer.active {
        height: calc(var(--std) * (1.5 * 3.0));
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }

    #main-footer.active > #cont-lang {
        position: static;
    }

    #main-footer.active .venue,
    #main-footer.active .date {
        display: none;
    }

    #cont-lang > button {
        font-size: 1.125rem;
    }
}