c:root {
     color-scheme: light only;
}
* {
  margin: 0;
  padding: 0;
}
html, main, div, img, g {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  touch-action: pan-y;
}
header, h1, h2, h3, h4, span, button, #category{
    font-family: 'yangjin';
    font-weight: lighter;
}
header a{
  font-size: 1em;
}
a {
  top:8px;
}
p{
  white-space: nowrap;
  text-align: center;
}
span::before {content: '\A'; white-space: pre;}

@font-face {    
    font-family: 'yangjin';
    src:  url(font/yangjin_optimize.otf) format('otf'),
          url(font/yangjin_optimize.woff2) format('woff2'),
          url(font/yangjin_optimize.woff) format('woff');
    font-display: swap;
}
::selection {
    background: #cc0000;
    color: #ffffff;
}
body {
  overflow-x: hidden; 
  overflow-anchor: none;
  -webkit-backface-visibility: hidden;
  touch-action: pan-y;
  height: 100vh;
  margin: 0;
}
.bg{
  position: fixed;
  top: 50%;
  left: 50%;
  width: 140vw;
  transform: translate(-50%, -50%) rotate(-12deg);
  z-index: -1;
}
header{
  width: 100vw;
  height: 50px;
  position: fixed;
  top: 0px;
  z-index: 2;
}
.nav{
  position: relative;
  display: flex;
  width: 90%;
  min-width: 450px;
  max-width: 2200px;
  height: 100%; 
  margin: 0 auto;
}
.logo{
  position: absolute;
  top: 6px;
  width: 50px;
  height: auto;
  filter: invert(1);
}
.navbar{
  position: absolute; 
  fill: black;
  width: 60vw;
  height: 38px;
  left: 50%;
  transform: translateX(-50%);
}
.triangle{
  position: absolute;
  top: 21px;
  left: 27px;
  border-left   : 6px solid transparent;
  border-right  : 6px solid transparent;  
  border-bottom : 9px solid #fff;
}
.intro{
  position: absolute;
  text-decoration: none;
  color: grey;
  left: 35%;
}
.gallery{
  position: absolute;
  text-decoration: none;
  color: white;
  right: 31%;
}
.contact{
  position: absolute;
  top: 10px;
  right: 0px;
  width: 45px;
  filter: invert(1);
}
.featured{
  position: relative;
  width: 100vw;
  min-height: 380px;
  display: block;
  object-fit: cover;
  object-position: 72% center;
}
.menu-item {
  position: relative;
  padding: 0; margin: 0;
  bottom: 10px;
}
.navfake{
  position: absolute; 
  fill: #666f7d;
  top: 0px;
  width: 60vw;
  height: 38px;
}
#category{
  position: sticky;
  overflow: hidden;
  top: 0;
  line-height: 20px;
  background-color: #535c6e;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100vw;
  height: 90px;
  z-index: 1;
}
#category a {
  color: #c9cbcf;
  font-size: clamp(0.7em, 1.6vw, 0.9em);
  margin: calc(2vw + 5px);
  text-decoration: none;
  white-space: nowrap;
}
#category a.selected {
  color: white;
}
#category a:hover {
  color: white;
}
#bar{
  position: absolute;
  background-color: #c0804f;
  width: 100vw;
  height: 5px;
  bottom: 0px;
  z-index: 2;
}
#underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 5px;
  background-color: white;
  left: 10%;
  right: 10%; 
  width: auto;
  margin-top: auto;
  z-index: 3;
}
.image-list {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  padding-top: 6vw;
  gap: 6vw; 
}
.image-list img {
  width: 70vw;
  height: auto;
  border-width: 0.5vw;
  border-style: solid;
  border-color: #333B4E;
  border-radius: 2vw;
  opacity: 0; 
  transform: translateX(2vw); 
  transition: opacity 0.5s ease-out, transform 0.4s ease-out;
}
.image-list img.portrait {
  max-height: 80vh;
  max-width: 80vw;
  width: auto; 
  height: auto;
  object-fit: contain;
}
.image-list img.long {
  width: 70vw;
  height: auto;
}
.image-list img.in-view {
  opacity: 1;
  transform: translateY(0);
}

footer{
  width: 100vw;
  position: relative;
  height: 10dvh; 
  text-align: center;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.footer{
  position: absolute; 
  height: 7em;
  bottom: 0px;
  min-width: 110em;
  z-index: 3;
}
.bottom{
  position: absolute;
  color: #825E6F;
  white-space: nowrap;
  font-size: 0.9em;
  bottom: 3px;
  z-index: 4;
 }
#linkedin{
  position: absolute;
  bottom: 15px;
  right: 40px;
  width: 45px;
  z-index: 5;
 }

@media only screen and (max-width: 700px) {

.bg{
  width: 160vw;
}
header a{
  font-size: 0.8em;
}
.nav{
  min-width: 250px;
}
.logo{
  width: 40px;
}
.intro{
  left: 28%;
}
.gallery{
  right: 23%;
}
.triangle{
  position: absolute;
  top: 23px;
  left: 18px;
  border-left   : 6px solid transparent;
  border-right  : 6px solid transparent;  
  border-bottom : 7px solid #fff;
}
.contact{
  width: 37px;
}
#category{
  height: 80px;
}
#category a {
  font-size: 0.6em;
  margin: calc(2vw);
}
.image-list img {
  width: 90vw;
}
.image-list img.portrait {
  max-height: 90vh;
  max-width: 90vw;
  width: auto; 
  height: auto;
  object-fit: contain;
}
.image-list img.long {
  width: 90vw;
  height: auto;
}
.footer{
  position: absolute; 
  height: 5em;
  bottom: 0px;
  width: 100vw;
  min-width: 70em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.bottom{
  font-size: 0.6em;
 }
#linkedin{
  bottom: 3px;
  right: 4px;
  width: 35px;
}
}