@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

@font-face {
    font-family: "noto-serif";
    src: url("./public/fonts/NotoSerifKR-Regular.otf") format("opentype");
    font-weight: 400;
}

@font-face {
    font-family: "noto-serif";
    src: url("./public/fonts/NotoSerifKR-Black.otf") format("opentype");
    font-weight: 700;
}

@font-face {
    font-family: "stix-two";
    src: url("./public/fonts/STIXTwoText-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "stix-two";
    src: url("./public/fonts/STIXTwoText-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "stix-two";
    src: url("./public/fonts/STIXTwoText-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "stix-two";
    src: url("./public/fonts/STIXTwoText-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
}

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

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    line-height: 1;
    list-style-type: none;
    text-decoration: none;
    text-transform: none;
    word-break: keep-all;
    font-family: "noto-serif", "stix-two", serif;
}

*, html, body {
    -ms-scroll-chaining: none;
        overscroll-behavior: contain;
    -webkit-text-size-adjust: 100%;
       -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
            text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

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

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

    100% {
        opacity: 1;
    }
}

#app {
    position: relative;
    width: 100%;
    height: auto;
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--std) * (1.5 * 3.5));
    -webkit-transition: background-color 0.25s ease-out;
    -o-transition: background-color 0.25s ease-out;
    transition: background-color 0.25s ease-out;
    z-index: 100;
}

#main-header.active {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgb(240, 240, 240);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}

.item-main-header.desktop {
    position: relative;
    margin: 0 calc(var(--std) * 1.5);
    width: calc(100% - (var(--std) * 1.5) * 2.0);
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: calc(var(--std) * (1.5 * 0.375));
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.item-main-header.desktop > .icon {
    width: auto;
}

.item-main-header.desktop > .icon:nth-child(1) {
    position: absolute;
    left: -0.1875em;
}

.item-main-header.desktop > .icon:nth-child(3) {
    position: absolute;
    right: 0;
}

.item-main-header.desktop > .icon > img {
    width: auto;
    height: calc(var(--std) * (1.5 * 1.5));
}

#sub-title {
    font-size: 1.375rem;
    text-align: center;
}

#sub-title .ko * {
    line-height: 1.35;
}

#sub-title .en * {
    line-height: 1.2875;
}

#bg {
    position: absolute;
    top: calc(var(--vh, 1vh) * 100);
    left: 0;
    width: 100%;
    height: calc(100% - var(--vh, 1vh) * 100);
    background: rgb(255, 255, 255);
    background: -o-linear-gradient(bottom, rgba(0, 0, 50, 1) 0%, rgba(255, 255, 255, 1) 100%);
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 50, 1)), to(rgba(255, 255, 255, 1)));
    background: linear-gradient(0deg, rgba(0, 0, 50, 1) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: -10;
}

#main-graphic {
    position: relative;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    z-index: 10;
    background-color: rgb(255, 255, 255);
}

#main-graphic > #world {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#main-graphic > #title {
    padding: calc(var(--std) * 1.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: calc(var(--std) * (1.5 * 1.0));
    -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;
    overflow: hidden;
}

.item-title {
    text-align: center;
}

.item-title img {
    -webkit-filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.575));
            filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.575));
}

.item-title.info {
    width: 100%;
    max-width: var(--maxWidth);
    font-size: 1.375rem;
}

.item-title.info img {
    width: 100%;
    height: calc(var(--std) * (1.5 * 3.5) * 0.375);
    -o-object-fit: contain;
       object-fit: contain;
}

.item-title.info .en img {
    width: 100%;
    height: calc(var(--std) * (1.5 * 3.5) * 0.275);
    -o-object-fit: contain;
       object-fit: contain;
}

.item-title.info > .ko {
    line-height: 1.35;
}

.item-title.lettering {
    width: 100%;
    max-width: calc(var(--maxWidth) * 1.375);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: calc(var(--std) * (1.5 * 1.0));
}

.item-title.lettering img {
    width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

#venue-and-date {
    margin: calc(var(--std) * 1.5);
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - (var(--std) * 1.5) * 2.0);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

#venue {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 1.375rem;
}

#venue .ko {
    line-height: 1.35;
}

#venue .en {
    line-height: 1.2875;
}

#date {
    font-size: 2rem;
    line-height: 1.35;
}

#sections {
    margin: 0 calc(var(--std) * 1.5);
    padding: calc(var(--std) * (1.5 * 3.5) * 2) 0;
    padding-bottom: calc(var(--std) * (1.5 * 3.5) * 4);
    width: calc(100% - (var(--std) * 1.5) * 2.0);
    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;
    gap: calc(var(--std) * (1.5 * 3.5));
}

.section {
    width: 100%;
    max-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 * 1.75) * 1.375);
}

.section.full {
    max-width: 100%;
    padding-top: none;
    border-top: none;
}

.section > .heading, 
.section > .content {
    width: 100%;
}

.section {
    color: rgb(255, 255, 255);
}

.section:nth-child(1) {
    color: rgb(0, 0, 0);
}

.section > .content {
    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 * 3.5));
}

.content > .artwork {
    width: 100%;
    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);
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.section > .heading p {
    font-size: 2rem;
}

.section > .content p {
    font-size: 1.25rem;
}

.section > .content p strong {
    font-size: 1.375rem;
}

.cont-gallery {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: calc(100% * (750 / 1920));
}

.gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.item-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.item-gallery.active {
    display: block;
    opacity: 0;
    -webkit-animation-name: fadeIn;
            animation-name: fadeIn;
    -webkit-animation-duration: 1s;
            animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
}

.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.thumbnail > 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;
}

.navi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.navi > .item-navi {
    border: none;
    background-color: transparent;
    width: calc(100% / 2);
    height: 100%;
    cursor: pointer;
    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-filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.575));
            filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.575));
    color: rgb(255, 255, 255);
    font-size: 2rem;
    opacity: 0;
    -webkit-transition: opacity 0.25s ease-out;
    -o-transition: opacity 0.25s ease-out;
    transition: opacity 0.25s ease-out;
}

.navi > .item-navi:hover {
    opacity: 1;
}

.item-navi > .cont-icon {
    width: calc(100% / 3);
    height: 0;
    padding-top: calc((100% / 3) * (1 / 1));
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
}

.item-navi:first-child > .cont-icon {
    position: relative;
    left: calc((100% / 3) * 0.125);
    border-left: 32px dotted rgb(255, 255, 255);
    border-bottom: 32px dotted rgb(255, 255, 255);
}

.item-navi:last-child > .cont-icon {
    position: relative;
    right: calc((100% / 3) * 0.125);
    border-top: 32px dotted rgb(255, 255, 255);
    border-right: 32px dotted rgb(255, 255, 255);
}

.caption {
    width: 100%;
    max-width: var(--maxWidth);
}

.item-caption {
    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;
}

.child-item-caption {
    font-size: 1.125rem;
}

.ko .child-item-caption {
    line-height: 1.6;
}

.en .child-item-caption {
    line-height: 1.4;
}

#main-footer {
    margin: calc(var(--std) * 1.5);
    position: fixed;
    bottom: 0;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    z-index: 200;
}

#main-footer > button {
    width: calc(var(--std) * (1.5 * (3.5 - 2.0)) * 1.75);
    height: calc(var(--std) * (1.5 * (3.5 - 2.0)) * 1.75);
    border: none;
    background-color: transparent;
    color: rgb(0, 0, 0);
    -webkit-transition: color 0.25s ease-out, border 0.25s ease-out;
    -o-transition: color 0.25s ease-out, border 0.25s ease-out;
    transition: color 0.25s ease-out, border 0.25s ease-out;
    font-size: 1.375rem;
    border-radius: 100%;
    cursor: pointer;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 600;
}

#main-footer > button.active {
    border: 8px dotted rgb(0, 0, 0);
    -webkit-filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.1875));
            filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.1875));
}

#main-footer.active > button {
    color: rgb(255, 255, 255);
}

#main-footer.active > button.active {
    border: 8px dotted rgb(255, 255, 255);
}

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

.video-thumb > iframe {
    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;
}

/* option */
.sans {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.ko, .en {
    display: none;
}

html:lang(ko) .ko, html:lang(en) .en {
    display: block;
    opacity: 0;
    -webkit-animation-name: fadeIn;
            animation-name: fadeIn;
    -webkit-animation-duration: 1s;
            animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
}

.ko p {
    line-height: 1.7;
}

.en p {
    line-height: 1.5;
}

strong {
    font-weight: 700;
}

.mobile {
    display: none;
}

/* responsive */
@media screen and (max-width: 1000px) and (min-aspect-ratio: 2/1) {
    #sub-title, #venue-and-date {
        display: none;
    }
}

@media screen and (max-width: 928px) {
    .item-main-header.desktop {
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }

    .item-main-header.desktop > .icon:nth-child(1),
    .item-main-header.desktop > .icon:nth-child(3) {
        position: static;
    }

    .item-title.lettering {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }

    .item-title.lettering > .ko:nth-child(1),
    .item-title.lettering > .en:nth-child(4),
    .item-title.lettering > .en:nth-child(5),
    .item-title.lettering > .en:nth-child(6) {
        width: 100%;
    }

    .item-title.lettering img {
        height: calc(var(--std) * (1.5 * 3.5));
    }

    .item-title.lettering .en img {
        height: calc(var(--std) * (1.5 * 2.5));
    }

    .item-title.info .en img {
        position: relative;
        top: 0.5em;        
    }

    .item-title.lettering > .en:nth-child(4) {
        position: relative;
        top: 1em;
    }

    .item-title.lettering > .en:nth-child(6) {
        position: relative;
        top: -1em;
    }
}

@media screen and (max-width: 900px) {
    #venue-and-date {
        -webkit-box-pack: start;
            -ms-flex-pack: start;
                justify-content: flex-start;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    #venue {
        position: static;
    }

    #date {
        font-size: 1.5rem;
    }

    .item-navi:first-child > .cont-icon {
        border-bottom: 24px dotted rgb(255, 255, 255);
        border-left: 24px dotted rgb(255, 255, 255);
    }

    .item-navi:last-child > .cont-icon {
        border-top: 24px dotted rgb(255, 255, 255);
        border-right: 24px dotted rgb(255, 255, 255);
    }
}

@media screen and (max-width: 720px) {
    .item-navi:first-child > .cont-icon {
        border-bottom: 16px dotted rgb(255, 255, 255);
        border-left: 16px dotted rgb(255, 255, 255);
    }

    .item-navi:last-child > .cont-icon {
        border-top: 16px dotted rgb(255, 255, 255);
        border-right: 16px dotted rgb(255, 255, 255);
    }
}

@media screen and (max-width: 600px) {
    .item-main-header.desktop {
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }

    .item-main-header.desktop > .icon:nth-child(1) {
        position: absolute;
        left: -0.18755em;
    }

    .item-main-header.desktop > .icon:nth-child(3) {
        position: absolute;
        right: 0;
    }

    #sub-title {
        font-size: 1.125rem;
    }

    .item-main-header.desktop > .icon > img {
        width: auto;
        height: calc(var(--std) * (1.5 * 1.125));
    }

    .section {
        gap: calc(var(--std) * (1.5 * 1.75) * 1.0);
    }

    .content > .artwork {
        gap: calc(var(--std) * (1.5 * 0.5));
    }

    html:lang(ko) .ko .desktop, html:lang(en) .en .desktop {
        display: none;
    }

    html:lang(ko) .ko .mobile, html:lang(en) .en .mobile {
        display: block;
    }

    .child-item-caption {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 540px) {
    :root {
        --std: calc(16px * (1 - 0.15));
    }

    html {
        font-size: calc(16px * (1 - 0.15));
    }

    #main-footer > button.active {
        border: 4px dotted rgb(0, 0, 0);
    }

    #main-footer.active > button.active {
        border: 4px dotted rgb(255, 255, 255);
    }
}

@media screen and (max-width: 480px) {
    .item-title.lettering {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    #venue {
        font-size: 1.25rem;
    }

    #date {
        font-size: 1.375rem;
    }

    .section > .heading p {
        font-size: 1.5rem;
    }

    .section > .content p strong {
        font-size: 1.25rem;
    }

    .section > .content p {
        font-size: 1.125rem;
    }

    #main-footer > button {
        width: calc(var(--std) * (1.5 * (3.5 - 2.0)) * 1.25);
        height: calc(var(--std) * (1.5 * (3.5 - 2.0)) * 1.25);
        font-size: 1.125rem;
    }

    .item-navi:first-child > .cont-icon {
        border-bottom: 8px dotted rgb(255, 255, 255);
        border-left: 8px dotted rgb(255, 255, 255);
    }

    .item-navi:last-child > .cont-icon {
        border-top: 8px dotted rgb(255, 255, 255);
        border-right: 8px dotted rgb(255, 255, 255);
    }
}

@media screen and (max-width: 440px) {
    .item-title.info img {
        height: calc(var(--std) * (1.5 * 3.5) * 0.275);
    }

    .item-title.info .en img {
        height: calc(var(--std) * (1.5 * 3.5) * 0.2);
    }

    .item-title.lettering img {
        height: calc(var(--std) * (1.5 * 2.75));
    }

    .item-title.lettering .en img {
        height: calc(var(--std) * (1.5 * 1.75));
    }
}

@media screen and (max-width: 380px) {
    #venue {
        font-size: 1rem;
    }

    #date {
        font-size: 1.125rem;
    }

    #main-footer > button {
        width: calc(var(--std) * (1.5 * (3.5 - 2.0)) * 1.125);
        height: calc(var(--std) * (1.5 * (3.5 - 2.0)) * 1.125);
        font-size: 1rem;
    }
}

/* grid */
#grids {
    position: fixed;
    z-index: 9999;
    display: none;
}

#grids.active {
    display: block;
}

.grid {
    position: fixed;
}

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

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

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

.grid:nth-child(4) {
    bottom: calc(var(--std) * 1.5);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

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

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