.portfolio-section {
  background: white;
}
.portfolio-page {
  padding-bottom: 80px;
}
.carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.project-slide {
  flex: 0 0 calc((100% - 28px) / 2);
  min-width: 0;
  scroll-snap-align: start;
}
.project-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  background: var(--paper);
}
.project-image > img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.project-image:hover > img {
  transform: scale(1.035);
}
.image-expand {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 12px #0002;
}
.tour-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #ffffffb8;
  border-radius: 999px;
  background: #ffffffde;
  color: #06111f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 24px #0002;
}
.project-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 23px;
}
.project-caption .eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
}
.project-caption h3 {
  font-size: 24px;
  max-width: 400px;
}
.project-index {
  color: var(--muted);
  font-size: 12px;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.carousel-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-status {
  font-size: 12px;
  color: var(--muted);
  margin-right: 12px;
}
.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.carousel-dots button {
  border: 0;
  width: 24px;
  height: 36px;
  background: transparent;
  display: grid;
  place-items: center;
}
.carousel-dots button::after {
  content: "";
  height: 5px;
  width: 20px;
  background: #d5dadd;
  transition: background 0.2s;
}
.carousel-dots button[aria-current="true"]::after {
  background: var(--blue);
}
.image-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}
.portfolio-filters {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 35px;
  overflow-x: auto;
}
.portfolio-filters button {
  padding: 13px 2px;
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 14px;
  color: var(--muted);
}
.portfolio-filters button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--blue);
}
.image-dialog {
  position: fixed;
  margin: auto;
  border: 0;
  padding: 0;
  width: min(1080px, calc(100% - 32px));
  max-height: 92svh;
  background: white;
  color: var(--ink);
  border-radius: 6px;
  overflow: auto;
}
.image-dialog::backdrop {
  background: #000c;
}
.dialog-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 58svh;
  background: #06080c;
}
.dialog-media > img,
.dialog-media > iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.dialog-media > img {
  object-fit: contain;
}
.dialog-media > img[hidden],
.dialog-media > iframe[hidden],
.dialog-copy[hidden],
.dialog-tour-link[hidden] {
  display: none;
}
.dialog-content {
  padding: 25px 30px;
}
.image-dialog h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.dialog-copy {
  max-width: 660px;
  margin: -2px 0 16px;
  color: var(--muted);
  line-height: 1.65;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: white;
  z-index: 1;
}
@media (max-width: 760px) {
  .carousel-track {
    gap: 18px;
  }
  .project-slide {
    flex-basis: 90%;
  }
  .project-caption h3 {
    font-size: 22px;
  }
  .carousel-dots {
    gap: 0;
  }
  .carousel-dots button {
    width: 19px;
  }
  .carousel-dots button::after {
    width: 14px;
  }
  .carousel-arrows {
    gap: 8px;
  }
  .carousel-status {
    margin-right: 4px;
  }
  .image-dialog h2 {
    font-size: 22px;
  }
  .dialog-content {
    padding: 20px;
  }
  .tour-badge {
    left: 12px;
    top: 12px;
    min-height: 32px;
    padding: 0 11px;
  }
}
