@charset "utf-8";

/*
 * File    : layout.css
 * Author  : STUDIO-JT (KMS)
 *
 * SUMMARY : 
 * GLOBAL
 * HEADER
 * FOOTER
 * PAGE
 * PROTECTED
 * 404
 * ERRORS
 * ANIMATION KEYFRAMES
 * ADMIN BAR
 * HOVER
 */



/* **************************************** *
 * GLOBAL
 * **************************************** */
html { font-size: 6.25%; }
html.safari.desktop { font-size: 1px; }

body { overflow: hidden scroll; font-family: var(--wp--preset--font-family--jt-primary); font-size: 16rem; color: var(--wp--custom--color-jt-primary); background: var(--wp--custom--color-jt-secondary); }
a { color: inherit; text-decoration: none; }

/* WRAP */
.wrap-full { margin: 0 auto; position: relative; }
.wrap-wide { max-width: var(--wp--style--global--wide-size); margin: 0 auto; position: relative; }
.wrap-content { max-width: var(--wp--style--global--content-size); margin: 0 auto; position: relative; }

/* CONTAINER */
.global-container { position: relative; margin-left: auto; margin-right: auto; }
.main-container { padding-bottom: var(--wp--preset--spacing--jt-11); }

/* RTL */
html[dir=rtl] { direction: ltr; }
html[dir=rtl] .global-container { direction: rtl; }



/* **************************************** *
 * HEADER
 * **************************************** */
#header { width: 100%; height: 100rem; position: absolute; top: 0; left: 0; background: var(--wp--custom--color-jt-secondary); border-bottom: 1px solid transparent; transition: border .2s; z-index: 500; }
.header__inner { height: 100%; margin-left: auto; margin-right: auto; position: relative; }

#header.sticky { position: fixed; }

/* LOGO */
#logo { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 2; }

.logo--type-text { width: 100%; max-width: 250rem; }
.logo--type-text > a { display: -webkit-box; width: fit-content; height: 100%; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.logo--type-text > a > span { display: block; font-family: var(--wp--preset--font-family--jt-secondary); letter-spacing: var(--wp--custom--letter-spacing-jt-02); text-overflow: ellipsis; color: var(--wp--custom--color-jt-primary); }

.logo--type-image { width: 200rem; height: 48rem; }
.logo--type-image > a > img { display: block; max-width: 100%; max-height: 100%; position: absolute; top: 50%; transform: translateY(-50%); object-fit: contain; }

/* MENU */
.menu-container { width: calc(100% - 500rem); height: 100%; margin: 0 auto; position: relative; font-size: 0; line-height: 1; z-index: 1; overflow: hidden; }

#main-menu li { position: relative; }
#main-menu a { display: block; font-family: var(--wp--preset--font-family--jt-secondary); letter-spacing: var(--wp--custom--letter-spacing-jt-02); transition: opacity .3s; }
#main-menu a span { display: inline-block; position: relative; }
#main-menu ul.sub-menu { display: none; }

/* 1DEPTH */
#main-menu { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; width: 100%; height: 100%; }
#main-menu > li > a { position: relative; font-size: var(--wp--preset--font-size--jt-07); line-height: var(--wp--custom--line-height-jt-secondary-07); color: var(--wp--custom--color-jt-primary); }
#main-menu > li > a > span:after { content: ''; display: block; width: 100%; height: 1px; position: absolute; left: 0; bottom: 0; background: var(--wp--custom--color-jt-primary); opacity: 0; }

#main-menu > li.current_page_item > a > span:after { opacity: 1; }

/* MOBILE */
.small-menu-controller,
.small-menu-layer { display: none; }

/* MINIMIZE */
#header.minimize { border-bottom-color: var(--wp--custom--color-jt-primary); }

/* RTL */
html[dir=rtl] #logo { left: inherit; right: 0; }



/* **************************************** *
 * FOOTER
 * **************************************** */
.footer__inner { padding: 36rem 0 40rem; padding-inline-end: 16rem; border-top: 1px solid var(--wp--custom--color-jt-primary); }

/* WRAP */
.footer__info { display: flex; justify-content: space-between; }

.footer__navigation { width: 608rem; padding-top: 8rem; order: 2; }

/* SOCIAL */
.footer__social ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12rem 32rem; }
.footer__social li { display: block; width: 32rem; height: 32rem; }
.footer__social a { display: block; width: 100%; height: 100%; position: relative; transition: opacity .3s; }
.footer__social a:after { display: block; position: absolute; top: 50%; left: 50%; font-family: var(--wp--preset--font-family--jt-icon); content: '\e99e'; font-size: 24rem; line-height: 1; font-weight: normal; color: var(--wp--custom--color-jt-primary); transform: translate(-50%, -50%); }

.footer__social .footer__social--behance a:after { content: '\e9a7'; }
.footer__social .footer__social--codepen a:after { content: '\e9a9'; }
.footer__social .footer__social--discord a:after { content: '\e9aa'; }
.footer__social .footer__social--dribbble a:after { content: '\e9ab'; }
.footer__social .footer__social--facebook a:after { content: '\e9a1'; }
.footer__social .footer__social--github a:after { content: '\e9ac'; }
.footer__social .footer__social--instagram a:after { content: '\e9a0'; }
.footer__social .footer__social--kakao a:after { content: '\e9a6'; }
.footer__social .footer__social--line a:after { content: '\e9ad'; }
.footer__social .footer__social--linkedin a:after { content: '\e9a5'; }
.footer__social .footer__social--medium a:after { content: '\e9ae'; }
.footer__social .footer__social--naverblog a:after { content: '\e9a8'; }
.footer__social .footer__social--pinterest a:after { content: '\e9a4'; }
.footer__social .footer__social--reddit a:after { content: '\e9af'; }
.footer__social .footer__social--snapchat a:after { content: '\e9b0'; }
.footer__social .footer__social--telegram a:after { content: '\e9b1'; }
.footer__social .footer__social--threads a:after { content: '\e9b2'; }
.footer__social .footer__social--tiktok a:after { content: '\e9a3'; }
.footer__social .footer__social--twitter a:after { content: '\e9a2'; }
.footer__social .footer__social--twitch a:after { content: '\e9b3'; }
.footer__social .footer__social--vimeo a:after { content: '\e9b4'; }
.footer__social .footer__social--whatsapp a:after { content: '\e9b5'; }
.footer__social .footer__social--youtube a:after { content: '\e99f'; }

/* MENU */
.footer__social + .footer__menu-container { margin-top: 22rem; }

#footer-menu { font-size: 0; text-align: end; }
#footer-menu > li { display: inline-block; vertical-align: top; }
#footer-menu > li > a { display: block; padding: 2rem 6rem; position: relative; font-family: var(--wp--preset--font-family--jt-secondary); font-size: var(--wp--preset--font-size--jt-10); line-height: var(--wp--custom--line-height-jt-secondary-10); letter-spacing: var(--wp--custom--letter-spacing-jt-02); font-weight: 400; color: var(--wp--custom--color-jt-primary); transition: opacity .3s; }

/* COPYRIGHT */
.footer__copyright { flex-shrink: 0; order: 1; font-family: var(--wp--preset--font-family--jt-secondary); font-size: var(--wp--preset--font-size--jt-05); line-height: var(--wp--custom--line-height-jt-secondary-05); letter-spacing: var(--wp--custom--letter-spacing-jt-02); color: var(--wp--custom--color-jt-primary); }

/* SOURCE */
.footer__source { margin-top: var(--wp--preset--spacing--jt-08); }
.footer__source a { color: currentColor; text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.2em; }



/* **************************************** *
 * PAGE
 * **************************************** */
.article__header { margin-bottom: var(--wp--preset--spacing--jt-09); text-align: center; }
.article__title { font-weight: var(--wp--custom--font-weight-jt-heading); }

.article__body { position: relative; }



/* **************************************** *
 * PROTECTED
 * **************************************** */
.jt-post-password-form { padding: var(--wp--preset--spacing--jt-08) var(--wp--preset--spacing--jt-07); background: color-mix(in srgb, var(--wp--custom--color-jt-secondary) 90%, var(--wp--custom--color-jt-primary)); border-radius: var(--wp--custom--radius-jt-01); }

.jt-post-password-form__message { margin-bottom: var(--wp--preset--spacing--jt-06); font-weight: var(--wp--custom--font-weight-jt-body); }

.jt-post-password-form__entry { display: flex; justify-content: center; gap: 0; }
.jt-post-password-form__entry > * { display: block; height: 56rem; margin: 0; font-size: var(--wp--preset--font-size--jt-08); line-height: var(--wp--custom--line-height-jt-primary-08); letter-spacing: var(--wp--custom--letter-spacing-jt-01); font-weight: var(--wp--custom--font-weight-jt-body); border: none; border-radius: var(--wp--custom--radius-jt-01); outline: none; opacity: 1; box-sizing: border-box; }
.jt-post-password-form__field { width: 100%; padding: 0 20rem 4rem; text-overflow: ellipsis; color: var(--wp--custom--color-jt-primary); background: var(--wp--custom--color-jt-secondary); }
.jt-post-password-form__submit { padding: 0 32rem; text-align: center; color: var(--wp--custom--color-jt-button-primary); background: var(--wp--custom--color-jt-button-secondary); cursor: pointer; transition: opacity .3s; }

html.mac .jt-post-password-form__field { padding-top: 1rem; padding-bottom: 0; }
html.mac .jt-post-password-form__submit { padding-bottom: 1rem; }



/* **************************************** *
 * 404
 * **************************************** */
body.error404 .main-container { padding-top: 0 !important; padding-bottom: 0 !important; }

.jt-error404 { display: flex; flex-direction: column; justify-content: center; text-align: center; height: 100vh; padding-top: 5vh; }

.jt-error404__title { font-weight: var(--wp--custom--font-weight-jt-heading); }
.jt-error404__desc { margin-top: var(--wp--preset--spacing--jt-05); font-weight: var(--wp--custom--font-weight-jt-body); }
.jt-error404__desc > span { display: block; }
.jt-error404__controller { margin-top: var(--wp--preset--spacing--jt-09); }

/* IOS 100vh helper */
html.ios .jt-error404 { min-height: 100svh; max-height: -webkit-fill-available; }



/* **************************************** *
 * ERRORS
 * **************************************** */
body.jt-error--private .main-container { padding-top: 0 !important; padding-bottom: 0 !important; }

/* LOGO */
.logo--type-error { display: flex; align-items: center; gap: 7rem; }
.logo--type-error > span { font-size: 22rem; font-weight: bold; line-height: 1; }
.logo--type-error > i { display: block; width: 24rem; height: 24rem; background: var(--wp--custom--color-jt-primary); border-radius: 50%; animation: blur 6s linear 0s infinite; }

/* CONTENT */
.jt-error { display: flex; flex-direction: column; justify-content: center; text-align: center; height: 100vh; }

.jt-error__title { font-weight: var(--wp--custom--font-weight-jt-heading); }

.jt-error__desc { margin-top: var(--wp--preset--spacing--jt-05); font-weight: var(--wp--custom--font-weight-jt-body); }
.jt-error__desc > span { display: block; }
.jt-error__desc em { font-weight: bold; }
.jt-error__desc a { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.2em; }
.jt-error__desc + .jt-error__desc { margin-top: var(--wp--preset--spacing--jt-03); }

.jt-error__controller { display: flex; align-items: center; justify-content: center; gap: var(--wp--preset--spacing--jt-03); margin-top: var(--wp--preset--spacing--jt-07); }
.jt-error__btn { display: inline-block; padding: 12rem 46rem; background: var(--wp--custom--color-jt-button-secondary); border: 1px solid var(--wp--custom--color-jt-button-secondary); border-radius: var(--wp--custom--radius-jt-03); transition: opacity .3s; }
.jt-error__btn > span { font-family: var(--wp--preset--font-family--jt-secondary); font-size: var(--wp--preset--font-size--jt-08); line-height: var(--wp--custom--line-height-jt-secondary-08); letter-spacing: var(--wp--custom--letter-spacing-jt-02); font-weight: var(--wp--custom--font-weight-jt-button); color: var(--wp--custom--color-jt-button-primary); }
.jt-error__btn.jt-btn--type-02 { background: transparent; }
.jt-error__btn.jt-btn--type-02 > span { color: var(--wp--custom--color-jt-button-secondary); }

/* IOS HELPER */
html.ios .jt-error { min-height: 100svh; max-height: -webkit-fill-available; }



/* **************************************** *
 * ANIMATION KEYFRAMES
 * **************************************** */
@keyframes blur {
    0% { filter: blur(0.2rem); }
    50% { filter: blur(5rem); }
    100% { filter: blur(0.2rem); }
}



/* **************************************** *
 * ADMIN BAR
 * **************************************** */
body.admin-bar #header.sticky { top: var(--wp-admin--admin-bar--height); }

body.admin-bar .jt-error { height: calc(100vh - var(--wp-admin--admin-bar--height)); }



/* **************************************** *
 * HOVER
 * **************************************** */
@media (hover: hover) and (pointer: fine) {

    /* HEADER */
    #main-menu > li:hover > a { opacity: 0.8; }

    /* FOOTER */
    .footer__social a:hover { opacity: 0.8; }

    #footer-menu > li > a:hover { opacity: 0.8; }

    .footer__source a:hover { text-decoration-thickness: 0.1em; }

    /* PROTECTED */
    .jt-post-password-form__submit:hover { opacity: 0.8; }

    /* ERRORS */
    .jt-error__desc a:hover { text-decoration-thickness: 0.1em; } 

    .jt-error__btn:hover { opacity: 0.8; }

}