@font-face {
  font-family: "Gowun Batang";
  src: url("../fonts/GowunBatang-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Gowun Batang";
  src: url("../fonts/GowunBatang-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Gowun Dodum";
  src: url("../fonts/GowunDodum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

::selection {
  background-color: rgba(85, 107, 47, .25);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font-weight: normal;
}

html {
  font-size: clamp(16px, 2vw, 18px);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 1rem;
  letter-spacing: .0125em;
  line-height: 1.5;
  word-break: keep-all;
  color: black;
  background-color: whitesmoke;
  cursor: default;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: auto;
  background-color: transparent;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  z-index: 999;
  margin-bottom: -1rem;
  padding: 1rem 1.5rem 2rem;
  line-height: 1;
  text-shadow: 1px 1px 2px whitesmoke;
  background-image: linear-gradient(to bottom, whitesmoke, transparent), linear-gradient(to bottom, whitesmoke, transparent), linear-gradient(to bottom, whitesmoke, transparent);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: opacity .25s;
}

.header-nav.center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  
}

.header-nav a {
  color: rgba(0, 0, 0, .25);
  transition: color .25s;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: rgba(0, 0, 0, 1);
}

.header-nav a:active {
  transform: scale(.95);
}

.header-nav > div {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.header-nav > div:not(:last-child) {
  padding-right: 1rem;
  border-right: 1px solid rgba(0, 0, 0, .125);
}

.main {
  flex: 1 1 auto;
  position: relative;
  min-height: 100svh;
}

.toggle-modal {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  color: inherit;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  opacity: .25;
  cursor: pointer;
  transition: opacity .25s;
}

.toggle-modal:hover,
.toggle-modal[aria-expanded="true"] {
  opacity: 1;
}

.toggle-modal:active {
  transform: scale(.95);
}

.modal {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 888;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 5rem 1.5rem 1.5rem;
  background-color: whitesmoke;
  opacity: 1;
  transition: top .375s, opacity .375s;
}

.modal::-webkit-scrollbar {
  display: none;
}

.modal[hidden] {
  display: none;
}

.modal-footer {
  margin-top: auto;
  font-size: .75rem;
}

.list {
  list-style: none;
  margin: -.5rem 0;
}

.list-item:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.list-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: .5rem 0;
  transition: color .25s;
}

.list-item a:hover {
  color: rgba(0, 0, 0, .5);
}

.list-item-image {
  flex: 0 0 2rem;
}

.list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .125);
  transition: box-shadow .25s;
}

.list-item a:hover img {
  box-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .1), .25rem .25rem .5rem rgba(0, 0, 0, .1), .5rem .5rem 1rem rgba(0, 0, 0, .1);
}

.list-item-title {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item-date {
  flex: 0 0 3rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
 
.images {
  position: relative;
  width: 100%;
  height: 100dvh;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
}

.image img {
  display: block;
  max-width: calc(100% - 6rem);
  width: auto;
  max-height: calc(100% - 21rem);
  height: auto;
  object-fit: contain;
  border-radius: .125rem;
  transition: 0s;
}

.image.is-active img {
  box-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .1), .25rem .25rem .5rem rgba(0, 0, 0, .1), .5rem .5rem 1rem rgba(0, 0, 0, .1), 1rem 1rem 2rem rgba(0, 0, 0, .1);
  transition: box-shadow .5s;
  transition-delay: .25s;
}

.image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0s;
  pointer-events: none;
  cursor: default;
}

.image.is-active .image-title {
  opacity: 1;
  transition: opacity .5s;
  transition-delay: .5s;
}

.swiper {
  --swiper-theme-color: rgba(85, 107, 47, .25);
  position: relative;
  width: 100%;
  height: 100dvh;
  height: 100svh;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-slide img {
  display: block;
  max-width: calc(100% - 6rem);
  width: auto;
  max-height: calc(100% - 15rem);
  height: auto;
  object-fit: contain;
  border-radius: .125rem;
  transition: 0s;
}

.swiper-slide.swiper-slide-active img {
  box-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .1), .25rem .25rem .5rem rgba(0, 0, 0, .1), .5rem .5rem 1rem rgba(0, 0, 0, .1), 1rem 1rem 2rem rgba(0, 0, 0, .1);
  transition: box-shadow .5s;
  transition-delay: .5s;
}

.swiper-prev,
.swiper-next {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 777;
  top: 0;
  width: 3rem;
  height: 100%;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: color .25s;
}

.swiper-prev:hover,
.swiper-next:hover {
  color: rgba(0, 0, 0, .75);
}

.swiper-prev:active i,
.swiper-next:active i {
  transform: scale(.95);
  transform-origin: center;
}

.swiper-prev {
  left: 0;
  background-image: linear-gradient(to right, whitesmoke, transparent), linear-gradient(to right, whitesmoke, transparent), linear-gradient(to right, whitesmoke, transparent);
}

.swiper-next {
  right: 0;
  background-image: linear-gradient(to left, whitesmoke, transparent), linear-gradient(to left, whitesmoke, transparent), linear-gradient(to left, whitesmoke, transparent);
}

.swiper-button-lock {
  display: none;
}

.swiper-title {
  position: absolute;
  z-index: 777;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  pointer-events: none;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: 5rem 1.5rem 1.5rem;
}

.article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  max-width: 60ch;
}

.content {
  --gap: 1rem;
  position: relative;
  font-size: inherit;
  line-height: 1.75;
}

.content > *:not(:last-child) {
  margin-bottom: var(--gap);
}

.content a:not([class]) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .125em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 0, 0, .125);
  transition: text-decoration-color .25s;
}

.content a:hover:not([class]) {
  text-underline-offset: .125em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 0, 0, .75);
}

.content ul,
.content ol {
  list-style: none;
}

.content figure:not(:first-child) {
  margin-top: calc(var(--gap) * 2);
}

.content figure:not(:last-child) {
  margin-bottom: calc(var(--gap) * 2);
}

.content figcaption {
  margin-top: .5rem;
  font-size: .875rem;
}

.content date {
  display: block;
  font-size: .875rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.drawings {
  position: relative;
  width: 100%;
  height: 200svh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.drawing {
  display: block;
  position: absolute;
  max-width: 50vw;
  width: 10rem;
  height: auto;
  border-radius: .125rem;
  box-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .1);
  transition: box-shadow .25s;
}

.drawing:hover {
  box-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .1), .25rem .25rem .5rem rgba(0, 0, 0, .1), .5rem .5rem 1rem rgba(0, 0, 0, .1);
}

.lightbox {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 3rem;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  transition: background-color .375s, backdrop-filter .375s;
  cursor: pointer;
}

.lightbox.is-opened {
  background-color: rgba(0, 0, 0, .25);
  backdrop-filter: blur(.25rem);
}

.lightbox img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .1), .25rem .25rem .5rem rgba(0, 0, 0, .1), .5rem .5rem 1rem rgba(0, 0, 0, .1);
  border-radius: .125rem;
  opacity: 0;
  transition: opacity .5s;
}

.lightbox.is-opened img {
  opacity: 1;
}