@font-face {
  font-family: 'Minecraft';
  src:
    url('../fonts/minecraft.woff2') format('woff2'),
    url('../fonts/minecraft.woff') format('woff'),
    url('../fonts/minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src:
    url('../fonts/gothambook.woff2') format('woff2'),
    url('../fonts/gothambook.woff') format('woff'),
    url('../fonts/gothambook.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.frame {
  height: 100vh;
  padding: 3%;
  background: #ffffff;
}

.layout {
  height: 100%;
  display: flex;
}

.left-panel {
  width: 33%;
  position: relative;
}

.left-top {
  font-family: 'Minecraft', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

.home-link,
.home-link:visited {
  text-decoration: none;
  color: inherit;
}

.left-bottom {
  position: absolute;
  bottom: 0;
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
}

.left-bottom p {
  margin: 0;
}

.insta-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.insta-line img {
  width: 12px;
  height: 12px;
  display: block;
}

.insta-line a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.insta-line a:hover {
  opacity: 0.6;
}

.right-panel {
  width: 67%;
  height: 100%;
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.right-panel::-webkit-scrollbar {
  display: none;
}

.viewer {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-image {
  max-width: 70%;
  max-height: 85%;
  object-fit: contain;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
}

.nav.prev {
  left: 0;
}

.nav.next {
  right: 0;
}

.project-meta-right {
  position: absolute;
  right: 0;
  bottom: 0;
  text-align: right;
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.about-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.15em;
  padding-left: 40%;
  padding-right: 15%;
  white-space: pre-line;
}

.map-only {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.map-only iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
}

.about-meta {
  display: block;
}

.mobile-contact-head {
  display: block;
}

.mobile-menu,
.mobile-page-nav {
  display: none;
}

@media (max-width: 768px) {
  html,
  body {
    overflow: auto;
  }

  .frame {
    padding: 4%;
    height: auto;
    min-height: 100vh;
  }

  .layout {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .left-top {
    font-size: 10px;
    letter-spacing: 0.04em;
    margin: 0;
  }

  .left-bottom {
    position: relative;
    margin-top: 12px;
    font-size: 11px;
  }

  .right-panel {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .project-image {
    max-width: 100%;
    max-height: 70vh;
  }

  .project-meta-right {
    position: relative;
    text-align: left;
    margin-top: 12px;
    font-size: 11px;
  }

  .nav.prev,
  .nav.next {
    font-size: 28px;
  }

  .about-wrap {
    margin-top: 92px;
    padding-left: 0;
    padding-right: 0;
    font-size: 11px;
    line-height: 1.7;
  }

  .map-only {
    height: 60vh;
  }

  .about-meta {
    display: none;
  }

  .contact-page .frame {
    padding: 6% 3.5%;
  }

  .contact-page .left-panel {
    margin-bottom: 24px;
    position: relative;
  }

  .contact-page .mobile-contact-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 34px;
  }

  .contact-page .mobile-menu {
    display: flex;
    width: 32px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .contact-page .mobile-menu span {
    display: block;
    width: 100%;
    height: 4px;
    background: #6f7580;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .contact-page.menu-open .mobile-menu span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .contact-page.menu-open .mobile-menu span:nth-child(2) {
    opacity: 0;
  }

  .contact-page.menu-open .mobile-menu span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .contact-page .mobile-page-nav {
    position: absolute;
    top: 58px;
    right: 0;
    display: none;
    text-align: right;
    font-family: 'Minecraft', monospace;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1.45;
  }

  .contact-page .mobile-page-nav a {
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    color: #6f7580;
  }

  .contact-page.menu-open .mobile-page-nav {
    display: block;
  }

  .contact-page .left-bottom {
    width: 58%;
    margin-top: 72px;
    font-size: 11px;
    line-height: 1.15;
    color: #a3a0aa;
  }

  .contact-page .left-bottom p {
    margin: 0 0 12px;
  }

  .contact-page .insta-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
  }

  .contact-page .insta-line a {
    display: flex;
    align-items: flex-start;
    color: inherit;
    gap: 6px;
  }

  .contact-page .right-panel {
    margin-top: 8px;
  }

  .contact-page .map-only {
    height: 48vh;
    min-height: 360px;
    background: #ececec;
    position: relative;
  }

  .contact-page .map-only iframe {
    opacity: 1;
  }

  .project-page .left-bottom {
    display: none;
  }

  .project-page .left-panel {
    margin-bottom: 40px;
  }

  .project-page .right-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: calc(100% + 8%);
    margin-left: -4%;
    margin-right: -4%;
  }

  .project-page .project-meta-right {
    order: 1;
    position: static;
    text-align: left;
    margin-top: 0;
    padding: 0 4%;
    font-size: 11px;
    line-height: 1.6;
  }

  .project-page .viewer {
    order: 2;
    display: block;
    height: auto;
  }

  .project-page .nav {
    display: none;
  }

  .project-page .project-image {
    display: none;
  }

  .project-page .mobile-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .project-page .mobile-gallery img {
    display: block;
    width: 100%;
    height: auto;
  }
}
