.projects-hero {
  position: relative;
  isolation: isolate;
  min-height: 355px;
  padding: 64px 0 78px;
  color: #fff;
  background: #242424 url("assets/photo-6.jpg") center 50% / cover no-repeat;
}

.projects-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #171717f2 0%, #171717d7 48%, #17171773 100%);
}

.breadcrumbs {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  top: auto;
  right: auto;
  left: auto;
  padding: 0;
  color: #e2e2e2;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}
.breadcrumbs span[aria-current="page"] {
  color: #fff;
}
.projects-hero-content {
  margin-top: 64px;
}
.projects-hero .eyebrow {
  color: #e6e6e6;
  margin-bottom: 15px;
}
.projects-hero h1 {
  font-size: clamp(68px, 9vw, 122px);
  letter-spacing: -2px;
  margin: 0;
}
.hero-period {
  color: #bcbcbc;
}
.projects-hero p {
  max-width: 620px;
  margin: 13px 0 0;
  color: #e2e2e2;
  font-size: 15px;
}

.projects-page-section {
  padding: 108px 0 114px;
  color: #242424;
  background: #fff;
}
.projects-page-section .section-head p {
  color: #666;
}
.projects-page-section .project h3 {
  margin: 10px 0 0;
  color: #242424;
  font:
    700 clamp(18px, 1.55vw, 21px)/1.35 "DM Sans",
    sans-serif;
  text-transform: none;
  overflow-wrap: break-word;
}
.projects-page-section .project .label small {
  color: #666;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}
.projects-page-section .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.projects-page-section .project {
  height: auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e1e1;
  background: #fff;
}
.projects-page-section .project:last-child {
  display: block;
}
.projects-page-section .project::after {
  display: none;
}
.projects-page-section .project-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.projects-page-section .project-link > img {
  display: block;
  width: 100%;
  height: 265px;
  object-fit: cover;
}
.projects-page-section .project .label {
  position: static;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 155px;
  padding: 23px 25px 27px;
  background: #fff;
  transition: background 0.3s;
}
.projects-page-section .project:hover .label {
  transform: none;
  background: #f7f7f7;
}
.projects-page-section .project:hover img {
  transform: none;
}
.projects-page-section .project-link:focus-visible {
  outline: 3px solid #242424;
  outline-offset: 4px;
}
.projects-page-section .project-open {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #242424;
  background: #fff;
  font-size: 19px;
  transition:
    color 0.3s,
    background 0.3s,
    transform 0.3s;
}
.projects-page-section .project:hover .project-open {
  color: #fff;
  background: #242424;
  transform: translate(2px, -2px);
}

.project-preview {
  width: min(1040px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid #444;
  color: #fff;
  background: #171717;
  box-shadow: 0 28px 80px #0008;
}
.project-preview::backdrop {
  background: #090909d9;
}
.preview-shell {
  position: relative;
}
.preview-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff66;
  color: #fff;
  background: #242424e8;
  font-size: 29px;
  line-height: 1;
}
.preview-close:hover {
  background: #555;
}
.preview-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.preview-media {
  height: min(72vh, 760px);
  min-height: 280px;
  background: #101010;
}
.preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-caption {
  padding: 18px 27px 22px;
}
.preview-caption span {
  color: #bcbcbc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.preview-caption h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.12;
}

@media (max-width: 1000px) {
  .projects-page-section .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .projects-hero {
    min-height: 300px;
    padding: 38px 0 55px;
  }
  .projects-hero-content {
    margin-top: 55px;
  }
  .projects-hero h1 {
    font-size: clamp(64px, 13vw, 90px);
  }
  .projects-hero p {
    font-size: 14px;
  }
  .projects-page-section {
    padding: 70px 0;
  }
  .projects-page-section .project-grid {
    grid-template-columns: 1fr;
  }
  .projects-page-section .project {
    height: auto;
  }
  .projects-page-section .project-link > img {
    height: 280px;
  }
  .projects-page-section .project .label {
    min-height: 0;
    padding: 21px 22px 24px;
  }
  .project-preview {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .preview-media {
    height: 67vh;
    min-height: 220px;
  }
  .preview-caption {
    padding: 15px 19px 18px;
  }
}
