* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #dde1eb #fff;
}

::-webkit-scrollbar {
  width: 4px;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background-color: #fff;
}

::-webkit-scrollbar-thumb {
  background-color: #dde1eb;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #dde1eb;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
  width: 16px;
  height: 16px;
  background: #fff;
}

.pl-lb-stage::-webkit-scrollbar {
  width: 4px;
  border-radius: 10px;
}

.pl-lb-stage::-webkit-scrollbar-track {
  background-color: #111;
}

.pl-lb-stage::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 10px;
}

.pl-lb-stage::-webkit-scrollbar-button:start:decrement,
.pl-lb-stage::-webkit-scrollbar-button:end:increment {
  display: none;
  width: 0;
  height: 0;
}

ul,
dl,
dt,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-list {
  width: 100%;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.portfolio-list .pl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  width: 100%;
}

.portfolio-list .pl-grid > li {
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.portfolio-list .pl-grid > li > div {
  aspect-ratio: 3 / 4;
  border-radius: 0;
  border: 1px solid #e9e9e9;
  background: #111;
  overflow: hidden;
  cursor: pointer;
}

/* Custom cursor (diprism v2) */
#cursor {
  position: fixed;
  z-index: 99999999;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
  mix-blend-mode: difference;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  #cursor {
    display: block;
  }

  .cursor__circle {
    width: 34px;
    height: 34px;
    margin-top: -50%;
    margin-left: -50%;
    border-radius: 50%;
    border: solid 1px #fff;
    transition:
      opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1),
      background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
      border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
      width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
      height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }

  #cursor.arrow .cursor__circle {
    width: 108px;
    height: 108px;
    background-color: #fff;
    border-color: #fff;
  }

  #cursor.arrow::after {
    content: "Click!";
    position: absolute;
    left: -50%;
    top: -50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: -0.3px;
    color: #000;
    background: none;
  }

  #cursor.is-hidden {
    opacity: 0;
    visibility: hidden;
  }
}

.portfolio-list .pl-grid > li > div > a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.portfolio-list .pl-grid > li > div img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-list .pl-grid > li > div:hover img {
  opacity: 0.35;
  transform: scale(1.04);
}

.portfolio-list .pl-grid > li > dl {
  display: block;
  min-height: 46px;
  padding: 25px 0 10px;
  text-align: center;
}

.portfolio-list .pl-grid > li > dl > dt {
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: -0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-list .pl-empty {
  padding: 80px 0;
  text-align: center;
  font-size: 15px;
  line-height: 24px;
  color: #888;
}

.pl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
}

.pl-lightbox[hidden] {
  display: none !important;
}

.pl-lb-stage {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  padding: 24px 16px 48px;
  scrollbar-width: thin;
  scrollbar-color: #666 #111;
}

.pl-lb-stage img {
  display: block;
  width: min(860px, 100%);
  height: auto;
  margin: 0 auto;
  vertical-align: top;
}

.pl-lb-stack {
  display: block;
  width: min(860px, 100%);
  margin: 0 auto;
  line-height: 0;
  font-size: 0;
}

.pl-lb-stage img + img {
  margin-top: 0;
}

.pl-lb-close,
.pl-lb-arrow {
  position: fixed;
  z-index: 100010;
  border: 0;
  padding: 0;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pl-lb-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
}

.pl-lb-arrow {
  top: 50%;
  width: 78px;
  height: 96px;
  margin-top: -48px;
  opacity: 0.65;
}

.pl-lb-arrow:hover,
.pl-lb-arrow:focus {
  opacity: 1;
}

.pl-lb-arrow:active {
  margin-top: -48px;
}

.pl-lb-arrow:before,
.pl-lb-arrow:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 30px;
  margin-left: 30px;
  border: medium inset transparent;
}

.pl-lb-arrow:after {
  border-top-width: 12px;
  border-bottom-width: 12px;
  top: 7px;
}

.pl-lb-arrow:before {
  border-top-width: 18px;
  border-bottom-width: 18px;
  opacity: 0.7;
}

.pl-lb-prev {
  left: 4px;
}

.pl-lb-prev:after {
  border-right: 15px solid #fff;
  margin-left: 26px;
}

.pl-lb-prev:before {
  margin-left: 20px;
  border-right: 24px solid #3f3f3f;
}

.pl-lb-next {
  right: 4px;
}

.pl-lb-next:after {
  border-left: 15px solid #fff;
  margin-left: 32px;
}

.pl-lb-next:before {
  border-left: 24px solid #3f3f3f;
}

.pl-lb-close:hover {
  color: #e54887;
}

@media all and (max-width: 479px) {
  .portfolio-list {
    padding: 28px 20px 60px;
  }

  .portfolio-list .pl-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pl-lb-close {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 10px;
  }

  .pl-lb-arrow {
    width: 64px;
    height: 80px;
    margin-top: -40px;
  }

  .pl-lb-arrow:active {
    margin-top: -40px;
  }

  .pl-lb-arrow:before,
  .pl-lb-arrow:after {
    margin-top: 24px;
    margin-left: 22px;
  }

  .pl-lb-arrow:after {
    top: 6px;
    border-top-width: 10px;
    border-bottom-width: 10px;
  }

  .pl-lb-arrow:before {
    border-top-width: 15px;
    border-bottom-width: 15px;
  }

  .pl-lb-prev {
    left: 2px;
  }

  .pl-lb-prev:after {
    border-right-width: 13px;
    margin-left: 20px;
  }

  .pl-lb-prev:before {
    margin-left: 14px;
    border-right-width: 20px;
  }

  .pl-lb-next {
    right: 2px;
  }

  .pl-lb-next:after {
    border-left-width: 13px;
    margin-left: 24px;
  }

  .pl-lb-next:before {
    border-left-width: 20px;
  }
}

@media all and (min-width: 480px) and (max-width: 767px) {
  .portfolio-list {
    padding: 28px 24px 60px;
  }

  .portfolio-list .pl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media all and (min-width: 768px) and (max-width: 991px) {
  .portfolio-list {
    padding: 32px 28px 70px;
  }

  .portfolio-list .pl-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media all and (min-width: 992px) and (max-width: 1439px) {
  .portfolio-list {
    padding: 36px 32px 70px;
  }

  .portfolio-list .pl-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

@media all and (min-width: 1440px) and (max-width: 1679px) {
  .portfolio-list {
    padding: 40px 40px 80px;
  }

  .portfolio-list .pl-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 38px;
  }
}

@media all and (min-width: 1680px) and (max-width: 1919px) {
  .portfolio-list {
    padding: 40px 40px 80px;
  }

  .portfolio-list .pl-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

@media all and (min-width: 1920px) {
  .portfolio-list {
    padding: 40px 40px 80px;
  }

  .portfolio-list .pl-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
  }
}
