@font-face {
  font-family: "Cafe24Decoshadow";
  src: url("../fonts/Cafe24Decoshadow.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "LeeSeoyun";
  src: url("../fonts/LeeSeoyun.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #2a2a2a;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

#menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1200;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #2a2a2a;
  cursor: pointer;
  font-size: 0;
}

#menu-toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 16px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  box-shadow: 0 6px 0 currentColor;
}

#sidebar {
  position: fixed;
  top: 0;
  left: -290px;
  z-index: 1100;
  width: 250px;
  height: 100vh;
  padding: 38px 20px 24px;
  overflow-y: auto;
  background: #fff;
  transition: left 0.28s ease;
}

#sidebar.active {
  left: 0;
}

.logo {
  margin: 0 0 54px;
  text-align: center;
  font-family: "Cafe24Decoshadow", sans-serif;
  line-height: 1.1;
}

.logo h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: normal;
  letter-spacing: 0;
}

.logo a,
.main-nav a,
.social-links a {
  color: inherit;
  text-decoration: none;
}

.main-nav,
.main-nav a,
.main-nav .subnav a {
  font-family: "LeeSeoyun", sans-serif;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 11px 0;
}

.main-nav a {
  display: block;
  padding: 4px 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.main-nav a:hover,
.main-nav a.active {
  background: #f2f2f2;
}

.subnav {
  max-height: 0;
  margin: 0;
  padding-left: 18px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.has-subnav.open .subnav {
  max-height: 900px;
  opacity: 1;
}

.subnav a {
  font-size: 0.98rem;
}

.social-links {
  position: fixed;
  bottom: 24px;
  width: 210px;
  text-align: center;
  background: #fff;
}

.social-links a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.instagram-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.instagram-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.instagram-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#main-content {
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  transition: opacity 0.28s ease;
}

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

.album-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#gridView {
  width: 100%;
  column-width: 300px;
  column-gap: 10px;
}

#gridView img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 10px;
  cursor: pointer;
  break-inside: avoid;
  background: #f5f5f5;
}

#slideView {
  display: none;
  min-height: calc(100vh - 40px);
  text-align: center;
}

.slide-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 40px);
}

#currentSlide {
  display: block;
  max-width: calc(100vw - 330px);
  max-height: calc(100vh - 52px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

.slide-controls {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 1000;
  display: none;
  gap: 13px;
  align-items: center;
  font-family: "LeeSeoyun", sans-serif;
}

.slide-controls button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2a2a2a;
  cursor: pointer;
  font: inherit;
  text-transform: lowercase;
}

.slide-controls button:hover {
  text-decoration: underline;
}

.empty-state {
  max-width: 520px;
  margin: 18vh auto 0;
  font-family: "LeeSeoyun", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
}

.page-shell {
  width: min(100%, 760px);
  min-height: calc(100vh - 40px);
  margin: 0 auto;
  padding: 56px 0;
  text-align: center;
}

.page-shell h1 {
  margin: 0 0 28px;
  font-family: "LeeSeoyun", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
}

.profile-img img {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: 0 auto 22px;
}

.about-text {
  font-size: 1rem;
  line-height: 1.65;
}

.about-text p {
  margin: 5px 0;
}

.contact-shell {
  width: min(100%, 620px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  text-align: left;
}

.contact-form label {
  font-weight: 700;
}

.contact-form label span {
  color: #c60000;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 8px;
  font: inherit;
}

.contact-form button {
  align-self: flex-end;
  width: 120px;
  border: 0;
  border-radius: 4px;
  padding: 10px;
  background: #2a2a2a;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.hidden-field {
  display: none;
}

@media (min-width: 769px) {
  #sidebar {
    left: 0;
  }

  #main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
  }
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  #sidebar {
    width: min(290px, 82vw);
    padding-top: 50px;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.08);
  }

  body.menu-open #main-content {
    opacity: 0.18;
    pointer-events: none;
  }

  #main-content {
    margin-left: 0;
    padding: 60px 20px 20px;
  }

  #gridView {
    column-width: 150px;
    column-gap: 8px;
  }

  #gridView img {
    margin-bottom: 8px;
  }

  #currentSlide {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 90px);
  }

  .slide-frame {
    min-height: calc(100vh - 90px);
  }

  .slide-controls {
    right: 20px;
    bottom: 16px;
  }

  .social-links {
    position: static;
    width: 100%;
    margin-top: 48px;
  }

  .page-shell {
    min-height: calc(100vh - 80px);
    padding: 30px 0;
  }
}
