html,
body {
  margin: 0;
  padding: 0;
}
.portfolio-split {
  display: grid;
  grid-template-columns: var(--left-width, 38vw) 6px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.portfolio-left {
  min-width: 0;
  width: auto;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.portfolio-right {
  min-width: 0;
  width: auto;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.split-resizer {
  width: 6px;
  height: 100vh;
  cursor: col-resize;
  background: transparent;
  border-left: 1px solid #777;
  border-right: 1px solid #777;
  box-sizing: border-box;
}

.portfolio-bio {
  max-width: 420px;
  margin-bottom: 32px;
}

.portfolio-bio h1 {
  font-size: 18px;
  font-weight: normal;
  margin: 0 0 12px;
}

.portfolio-bio p {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 16px;
}

.portfolio-menu {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.portfolio-menu a {
  color: inherit;
  text-decoration: none;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.work-item {
  color: inherit;
  text-decoration: none;
  display: block;
}

.work-item img {
  width: 100%;
  display: block;
}

.work-item span {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 4px;
}

.work-item.is-active span {
  text-decoration: underline;
}

.portfolio-placeholder {
  font-size: 13px;
  color: #777;
}

.loaded-work {
  max-width: 100%;
}

.loaded-work img,
.loaded-work video,
.loaded-work iframe {
  max-width: 100%;
  height: auto;
}

.loaded-work h1 {
  font-size: 22px;
  font-weight: normal;
  margin: 0 0 24px;
}

.loaded-work p {
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .portfolio-split {
    display: block;
    height: auto;
    overflow: visible;
  }

  .portfolio-left,
  .portfolio-right {
    height: auto;
    overflow: visible;
  }

  .portfolio-left {
    padding: 16px;
  }

  .portfolio-right {
    display: none;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.work-description-right {
  padding: 16px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 680px;
}
.portfolio-lightbox-menu {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.portfolio-lightbox-link {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
  cursor: pointer;
  color: black;
}

.portfolio-lightbox-link:disabled {
  opacity: 0.25;
  cursor: default;
}

.portfolio-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  overflow-y: auto;
  padding: 48px;
  box-sizing: border-box;
}

.portfolio-info-overlay.is-open {
  display: block;
}

.portfolio-info-close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 10000;
  background: transparent;
  border: 0;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.portfolio-info-content {
  color: white;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.45;
}

.portfolio-info-content a {
  color: white;
}

@media (max-width: 768px) {
  .portfolio-split {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .portfolio-left {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .portfolio-right,
  .split-resizer {
    display: none !important;
  }

  body {
    overflow-x: hidden;
  }
}