* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111111;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.site-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  padding: 20px;
  overflow-y: auto;
  background: #ffffff;
}

.logo-button {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 28px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: #111111;
  text-align: left;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-nav details {
  margin: 0;
}

.sidebar-nav summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  margin-bottom: 8px;
}

.sidebar-nav summary::-webkit-details-marker {
  display: none;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav ul {
  margin: 0;
  padding: 0 0 0 10px;
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 6px;
}

.series-button,
.page-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: #555555;
}

.series-button:hover,
.series-button.is-active,
.page-button:hover,
.page-button.is-active {
  color: #111111;
}

.page-button {
  font-weight: 500;
}

.content {
  margin-left: 240px;
  min-height: 100vh;
  padding: 20px 24px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero-image-wrap {
  width: 100%;
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
}

.view-head {
  margin-bottom: 18px;
}

.view-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.thumb {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: auto;
}

.text-view {
  max-width: 760px;
}

.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li {
  margin-bottom: 10px;
}

.muted {
  color: #666666;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
  padding: 24px;
}

.viewer.is-open {
  display: flex;
}

.viewer-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.viewer-stage img {
  max-width: min(92vw, 1400px);
  max-height: 74vh;
  width: auto;
  height: auto;
}

.viewer-meta {
  width: min(92vw, 1400px);
  margin-top: 14px;
  font-size: 13px;
  color: #111111;
}

.viewer-title {
  font-weight: 500;
}

.viewer-line {
  color: #333333;
}

.viewer-close,
.viewer-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
}

.viewer-close {
  top: 14px;
  right: 20px;
  font-size: 36px;
  line-height: 1;
}

.viewer-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  line-height: 1;
  padding: 8px 14px;
}

.viewer-prev {
  left: 16px;
}

.viewer-next {
  right: 16px;
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: auto;
    height: auto;
  }

  .content {
    margin-left: 0;
    padding: 0 18px 18px;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-image {
    width: 100%;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}
