/* 웹폰트 임포트 */

@import url('https://fonts.googleapis.com/css?family=Noto+Sans+KR:300,400,500&subset=korean');
@import url('/font/FSSinclair-family.css');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* 기본설정 */

* {
  box-sizing: border-box;
}

html {
  /* force scrollbar */
  overflow-y: scroll;
  margin: 0 auto;
  background: #222;
  -webkit-text-size-adjust: 100%;
}

img {
  /* make image responsive with container width */
  display: block;
  max-width: 100%;
}

body {
  border: none;
  margin: 0;
  padding: 0;
  background: #222;
}

ol,
ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

a {
  color: #fff;
  text-decoration: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #444;
}

small {
  font: 11px/1.4em FSS-Italic;
}

ul > li > a {
  color: #ccc;
}

ul > li.active > a {
  color: #0ae;
}

div.active {
  color: #0ae;
}
/* 컨테이너 */

.header {
  position: absolute;
  width: 100%;
  z-index: 999;
}

.main {
  width: 100%;
}

.main a {
  text-decoration: underline;
}

.footer {
  width: 100%;
}

.debug {
  background-color: #600;
}

/* 레이아웃 */

.top-gap {
  padding-top: 20px;
}

.bottom-gap {
  padding-bottom: 20px;
}

.no-margin-padding {
  margin: 0;
  padding: 0;
}

.top-spacer {
  height: 80px;
}

.width-full {
  width: 100%;
  margin: 0 auto;
}

.width-normal {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 10px;
}

.width-normal-fixed {
  width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.width-text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Masonry 그리드 */

.grid {
  position: relative;
}

.grid.are-images-unloaded {
  /* reveal grid after images loaded */
  opacity: 0;
}

.story-item,
.grid-col-sizer {
  width: calc((100% - 20px) / 2);
  /* width: calc((100% - 20px)/3); */
}

.grid-gutter-sizer {
  width: 20px;
}

.grid.are-images-unloaded .image-grid__item {
  /* hide by default */
  opacity: 0;
}

.story-item {
  margin-bottom: 20px;
  float: left;
}

.story-item img {
  width: 100%;
  height: auto;
}

.page-load-status {
  display: none;
  /* hidden by default */
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  color: #777;
}

/* 커버 설정 */

.homepage-cover {
  position: relative;
  /* height: 600px; */
  height: 100vh;
}

.project-cover {
  height: 100vh;
  position: relative;
}

.project-cover-label {
  font: 30px/1.2em 'FS Sinclair', 'Noto Sans KR';
  font-weight: 500;
  color: #fff;
  text-align: center;
  padding: 5px;
}

.project-item {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  height: 200px;
}

.l {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  height: 600px;
}

.m {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  height: 385px;
}

.s {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  height: 170px;
}

.project-item-label {
  font: 24px/1.2em 'FS Sinclair', 'Noto Sans KR';
  font-weight: 500;
  color: #fff;
  text-align: center;
  padding: 5px;
}

.section-link-item {
  font: 24px/1.2em 'FS Sinclair', 'Noto Sans KR';
  position: relative;
  width: 100%;
  height: 150px;
  font-size: 30px;
}

/* 프로젝트 리스트 */

.project-title {
  font: 22px/1.2em 'FS Sinclair', 'Noto Sans KR';
  font-weight: 400;
  color: #fff;
  text-align: center;
  padding: 5px;
}

.project-sub-title {
  font: 16px/1.3em 'FS Sinclair';
  font-weight: 400;
}

/* 스토리 리스트 */

.story-title {
  font: 22px/1.2em 'FS Sinclair', 'Noto Sans KR';
  font-weight: 400;
  color: #fff;
  text-align: center;
  padding: 5px;
}

.story-sub-title {
  font: 14px/1.3em 'Noto Sans KR';
  font-weight: 500;
}

.story-meta {
  font: 12px/1.2em 'FS Sinclair';
  font-weight: 500;
  color: rgb(255, 219, 122);
}

.story-source {
  font: 13px/1.2em 'FS Sinclair';
  font-weight: 500;
  color: #ccc;
}

.story-date {
  font: 12px/1.3em 'FS Sinclair', 'Noto Sans KR';
  font-weight: 400;
}

/* 기타 */

.copyright {
  font: 14px 'FS Sinclair';
  font-style: italic;
}

.metadata {
  font: 14px 'FS Sinclair';
  line-height: 1em;
}

.meta-key {
  font: 14px 'FS Sinclair';
}

.meta-value {
  font: 14px/1.5em 'FS Sinclair';
  font-weight: 400;
  color: rgb(255, 219, 122);
}

.button {
  display: inline-block;
  margin: 0 0.3em 0 0;
  line-height: 100%;
}

.button a {
  text-decoration: none;
}

.button div {
  padding: 7px 10px;
  border-radius: 5px;
  vertical-align: middle;
  background-color: #444;
  font-weight: 500;
}

.button div:hover {
  background-color: #0ae;
  transition: 0.5s;
}

.center {
  text-align: center;
}

.font-x70 {
  font-size: 0.7rem;
}

/* 전후 페이지 링크 */

.page-link {
  margin: 0;
}

.page-link-item {
  flex-grow: 1;
  position: relative;
  height: 100px;
  margin-top: 10px;
}

.page-link-item:first-child {
  margin-left: 0px;
}

.page-link-item:last-child {
  margin-right: 0px;
}

.page-link a {
  font-size: 18px;
  font-weight: 400;
}

/* 기타 */

.flex-distribute-horizontal {
  display: flex;
  /* align-items: baseline; */
  /* align-items: flex-end; */
  align-items: center;
  /* justify-content: space-between; */
  flex-wrap: wrap;
}

.highlight-on-hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.highlight-on-hover:hover {
  background-color: rgba(00, 170, 238, 0.2);
  transition: color 0.4s ease 0s;
  -webkit-transition: background-color 0.4s ease 0s;
}

.center-children {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

/* 크롭박스 */

.crop-box,
.crop-round-5,
.crop-round-10,
.crop-round-20 {
  overflow: hidden;
}

.crop-round-5 {
  border-radius: 5px;
}

.crop-round-10 {
  border-radius: 10px;
}

.crop-round-20 {
  border-radius: 20px;
}

/* 이미지 채우기 */

.fit-parent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.bg-cover {
  background-size: cover;
  background-position: 50% 50%;
}

.bg-contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.bg-gradient {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

/* 위치내비게이션 (Breadcrumb) */

.breadcrumb {
  font: 14px/1em 'FS Sinclair';
  color: #666;
}

.breadcrumb li {
  display: inline;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  padding: 0 0.1em;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

/* 페이지넘김 (Pagination) */

.pagination {
  display: none;
  padding: 0;
}

.pagination li {
  display: inline;
  list-style: none;
}

/* 사이트 내비게이션 */

.site-menu {
  padding: 0;
  /* padding-top:10px; */
}

.site-menu li {
  display: inline;
  list-style: none;
  padding-right: 10px;
}

.site-menu li:last-child {
  padding-right: 0px;
}

/* Technology 사이트 버튼 */
.extlink {
  color: #aaa;
  font-family: 'FS Sinclair';
  font-weight: 400;
  display: flex;
  align-items: center;
  height: 28px;
  font-size: 14px;
  /* font-weight:200; */
  /* border-radius: 2px; */
  margin-right: 0.5rem;
  vertical-align: middle;
  border: 1px solid #aaa;
}
.extlink span {
  /* transform: translate(0, 1px); */
  padding: 0 0.3em;
}
.extlink:hover {
  transition: all 0.5s;
  background-color: white;
  color: #000;
}
.extlink svg {
  fill: #aaa;
}
.extlink:hover svg {
  transition: all 0.5s;
  fill: #000;
}

/* 사이트 언어선택 */

.site-lang {
  font: 15px/1em 'FS Sinclair';
  padding: 0;
}

.site-lang li {
  display: inline;
  list-style: none;
}

.site-lang li:not(:last-child)::after {
  content: '|';
  padding: 0 0.2em;
}

/* 사이트 언어선택 2 */
.lang {
  font-weight:400;
  height: 28px;
  width: 28px;
  font-size: 14px;
  color: #aaa;
  border: 1px solid #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang {
  font-family: 'FS Sinclair';
  position: relative;
}

.lang .lang-current {
  cursor: pointer;
}

.lang:hover {
  background-color: white;
  color: black;
}


.lang .lang-toggle {
  display: none;
}

.lang-toggle:checked ~ .lang-menu {
  display: block;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 26px;
  left: -1px;
  margin: 0;
  padding: 0;
  background-color: white;
  border: none;
  z-index: 300;
}

.lang-menu li {
  height: 28px;
  width: 28px;
  color: black;
  border-bottom: 1px solid gray;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-menu li:last-child {
  border: none;
}

/* 다운로드버튼 */
a.btn-download {
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 16px;
  border:1px solid #3ae;
  color: #3ae;
  border-radius:4px;
  /* background-color:#333; */
  font-family:'FS Sinclair';
  font-weight:400;
}
a.btn-download:hover {
  background-color:#3ae;
  color:black;
}


/* 폰트, 텍스트컬러 */

body {
  font-family: 'Noto Sans KR';
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7em;
  color: #ccc;
}

h1,
h2,
h3,
h4 {
  font-family: 'FS Sinclair', 'Noto Sans KR';
  font-weight: 500;
  margin-block-start: 1.5em;
  margin-block-end: 0.5em;
  -webkit-margin-before: 1.5em;
  -webkit-margin-after: 0.5em;
  color: #fff;
  line-height: 1.2em;
}

h1 {
  font-size: 20px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 16px;
}

h4 {
  font-size: 14px;
}

.site-title {
  font: 1.5rem/1em 'FS Sinclair';
  font-weight: 500;
  color: #fff;
}

.site-tagline {
  font: 87.5%/1em 'FS Sinclair';
  font-weight: 200;
  color: #fff;
}

.site-menu {
  font: 18px/1em 'FS Sinclair';
  /* font-weight: 500; */
}

.site-lang {
  font: 15px/1em 'FS Sinclair';
}



/*
커버동영상 (16:9 비율 기준)
vimeo full-screen video background
https://codepen.io/abennington/pen/ZONqqv

* resizing behavior on load (macos safari)
https://stackoverflow.com/questions/48803427/safari-and-vimeo-iframe-fullscreen-issue

* flickring on loop (macos safari)
https://github.com/bfred-it/iphone-inline-video/issues/93
*/

.vimeo-cover iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.77vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
}
