.muthoni-page #hero-title {
  line-height: 1.1;
}

.muthoni-page #hero-title .motion-line {
  overflow: visible;
}

.muthoni-page .portrait-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #25212b;
}

.muthoni-page .hero-art.photo-carousel {
  position: relative;
  min-height: 680px;
  isolation: isolate;
  animation: none;
}

.muthoni-page .portrait-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center !important;
  opacity: 0;
  transform: none;
  transition: opacity 1.8s ease-in-out;
  filter: none;
  pointer-events: none;
}

.muthoni-page .portrait-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: none;
}

.muthoni-page .hero-art.photo-carousel::after {
  z-index: 2;
  background: linear-gradient(0deg, #15101ad9, transparent 45%);
}

.muthoni-page .photo-carousel .image-signature {
  bottom: 145px;
  z-index: 3;
  font-size: clamp(65px, 7.6vw, 115px);
}

.muthoni-page .portrait-bottom {
  position: absolute;
  right: 30px;
  bottom: 26px;
  left: 30px;
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  color: #fff;
}

.muthoni-page .portrait-count {
  font-size: 13px;
  letter-spacing: 0.15em;
}

.muthoni-page .portrait-label {
  margin: 6px 0 0;
  font: italic 23px Georgia, serif;
}

.muthoni-page .portrait-controls {
  display: flex;
  gap: 5px;
}

.muthoni-page .portrait-controls button {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #ffffff70;
  border-radius: 2px;
  background: #17131f66;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.muthoni-page .portrait-controls button:hover {
  background: #ffffff30;
}

.muthoni-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.muthoni-page .portrait-collection {
  border-top: 1px solid var(--line);
}

.muthoni-page .portrait-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.muthoni-page .portrait-thumb {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.muthoni-page .portrait-thumb img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: filter 400ms ease;
}

.muthoni-page .portrait-thumb:hover img {
  filter: brightness(1.08);
}

.muthoni-page .portrait-thumb > span {
  display: block;
  margin: 20px 0 8px;
  font: 24px Georgia, serif;
}

.muthoni-page .portrait-thumb small {
  display: block;
  color: #6b626e;
  font-size: 13px;
  line-height: 1.6;
}

.muthoni-page .gallery-more {
  margin-top: 35px;
  background: transparent;
  color: #201c23;
  cursor: pointer;
}

body.muthoni-route .muthoni-photo-viewer {
  width: min(1100px, 94vw);
  max-height: 95vh;
  padding: 22px;
  border: 0;
  background: #f6f5f7;
  color: #201c23;
}

body.muthoni-route .muthoni-photo-viewer::backdrop {
  background: #100d14d9;
}

body.muthoni-route .muthoni-photo-viewer #portrait-full {
  width: 100%;
  height: 73vh;
  max-height: 73vh;
  object-fit: contain;
  background: #e5e1e6;
}

body.muthoni-route .muthoni-photo-viewer #portrait-viewer-caption {
  margin: 14px 0 7px;
  font-size: 16px;
}

body.muthoni-route .muthoni-photo-viewer #portrait-source {
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

body.muthoni-route .muthoni-photo-viewer .portrait-viewer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

body.muthoni-route .muthoni-photo-viewer .portrait-viewer-tools button {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #938698;
  background: transparent;
  cursor: pointer;
}

body.muthoni-route .muthoni-photo-viewer .portrait-viewer-tools [data-view-close] {
  margin-left: auto;
}

body.muthoni-route .muthoni-photo-viewer .portrait-viewer-tools span {
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .muthoni-page .portrait-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .muthoni-page .portrait-thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .muthoni-page .hero {
    margin-inline: auto;
  }

  .muthoni-page .hero-art.photo-carousel {
    min-height: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    align-self: stretch;
  }

  .muthoni-page .portrait-bottom {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .muthoni-page .photo-carousel .image-signature {
    bottom: clamp(96px, 30vw, 125px);
    font-size: clamp(40px, 12vw, 50px);
  }

  .muthoni-page .portrait-thumbnails {
    gap: 28px 14px;
  }

  .muthoni-page .portrait-thumb > span {
    font-size: 21px;
  }

  .muthoni-page .portrait-thumb small {
    font-size: 12px;
  }

  body.muthoni-route .muthoni-photo-viewer {
    padding: 12px;
  }

  body.muthoni-route .muthoni-photo-viewer .portrait-viewer-tools {
    gap: 6px;
  }

  body.muthoni-route .muthoni-photo-viewer .portrait-viewer-tools button {
    padding: 8px 10px;
  }

  body.muthoni-route .muthoni-photo-viewer #portrait-full {
    height: 65vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .muthoni-page .portrait-slide,
  .muthoni-page .portrait-thumb img {
    transition: none !important;
    transform: none !important;
  }
}

.muthoni-page .portrait-thumb[hidden] {
  display: none;
}
