@font-face {
  font-family: "Moca-Black";
  src: url("https://files.cargocollective.com/c1981336/Moca-Black.woff2") format("woff2");
}

/* ROOT */
html,
body {
  margin: 0;
  padding: 0;
  background: #000 !important;
  color: #d7d7d7 !important;
  font-family: "Moca-Black", sans-serif !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

/* FORCE ALL TEXT */
body,
body p,
body div,
body span,
body a {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}

/* BIO */
.bio-text {
  width: min(580px, calc(100vw - 40px));
  margin: 10px 20px 20px;
  line-height: 0.9;
}

/* FOOTER */
.site-footer {
  position: fixed;
  left: 20px;
  bottom: 6px;
  opacity: 0.8;
  font-size: 17px !important;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  font-size: 17px !important;
}

/* HOME WORK SLIDESHOW */
.work-slider {
  position: fixed;
  top: 20px;
  right: 20px;
  bottom: 48px;
  left: 44%;
  overflow: hidden;
}

.work-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.work-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.work-slide img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(56vw - 40px) !important;
  max-height: calc(100vh - 68px) !important;
  object-fit: contain !important;
  object-position: center;
    
}

.work-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* 鼠标停在图片或箭头按钮上时，标题保持显示 */
.work-slider.image-hover .work-slide.is-active .work-caption {
  opacity: 0.8;
}

/* PREVIOUS / NEXT ARROWS */
.work-slider .slider-controls {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.work-slider.arrows-visible .slider-controls {
  opacity: 1;
}

.work-slider .slider-controls button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #d7d7d7 !important;
  font-family: inherit !important;
  font-size: 32px !important;
  line-height: 1;
  cursor: pointer;
  pointer-events: none;
}

.work-slider.arrows-visible .slider-controls button {
  pointer-events: auto;
}

.work-slider .slider-controls button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* MOBILE */
@media (max-width: 700px) {
  .work-slider {
    position: relative;
    inset: auto;
    width: calc(100vw - 40px);
    height: 60vh;
    margin: 20px;
  }

  .work-slide img {
    max-width: calc(100vw - 40px) !important;
    max-height: 60vh !important;
  }
}

/* TOUCH SCREENS */
@media (hover: none) {
  .work-slider .slider-controls {
    opacity: 1;
  }

  .work-slider .slider-controls button {
    pointer-events: auto;
  }
}

/* SHOW THE FIRST IMAGE BEFORE THE SCRIPT STARTS */
.work-slider:not(.slider-ready) .work-slide {
  opacity: 0 !important;
  pointer-events: none !important;
}

.work-slider:not(.slider-ready) .work-slides > .work-slide:first-child {
  opacity: 1 !important;
  pointer-events: auto !important;
}