.work-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
  gap: 6vw;
  align-items: center;
  min-height: 430px;
  padding: 54px var(--site-gutter);
  background: #102a43;
  color: #fff;
}

.work-detail-heading > a {
  color: #9db8ca;
  font: 700 10px Arial, sans-serif;
  letter-spacing: .15em;
  text-decoration: none;
}

.work-detail-heading > p {
  margin: 32px 0 8px;
  color: #9db8ca;
  font-size: 12px;
}

.work-detail-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 1.28;
  letter-spacing: -.045em;
}

.work-detail-heading dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
  max-width: 520px;
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid #ffffff30;
}

.work-detail-heading dt {
  color: #9db8ca;
  font: 700 9px Arial, sans-serif;
  letter-spacing: .12em;
  line-height: 1.4;
}

.work-detail-heading dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.work-hero-photo {
  display: grid;
  min-width: 0;
}

.work-hero-photo.has-photo-rail {
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

.work-hero-primary,
.work-hero-photo > div {
  position: relative;
  display: block;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border: 0;
  background: #294158;
}

.work-hero-primary img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-hero-primary > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  background: #102a43e8;
  color: #fff;
  font: 700 9px Arial, sans-serif;
  letter-spacing: .1em;
}

.work-hero-photo .is-placeholder {
  display: grid;
  place-items: center;
  color: #9db8ca;
  font: 700 10px Arial, sans-serif;
  letter-spacing: .18em;
}

.work-hero-photo > .work-hero-photo-rail {
  display: grid;
  grid-auto-rows: 96px;
  gap: 10px;
  height: 320px;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-color: #9db8ca #294158;
  scrollbar-width: thin;
}

.work-hero-photo > .work-hero-photo-rail::-webkit-scrollbar {
  width: 8px;
}

.work-hero-photo > .work-hero-photo-rail::-webkit-scrollbar-track {
  background: #294158;
}

.work-hero-photo > .work-hero-photo-rail::-webkit-scrollbar-thumb {
  border: 2px solid #294158;
  border-radius: 10px;
  background: #9db8ca;
}

.work-hero-photo > .work-hero-photo-rail button {
  display: block;
  width: 100%;
  height: 96px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff35;
  background: #294158;
  cursor: zoom-in;
}

.work-hero-photo > .work-hero-photo-rail button:hover,
.work-hero-photo > .work-hero-photo-rail button:focus-visible {
  border-color: #fff;
}

.work-hero-photo > .work-hero-photo-rail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-detail-main {
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto;
  padding: 70px 0 120px;
}

.work-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, .8fr);
  gap: 9vw;
  margin-top: 0;
}

.detail-label {
  margin: 0 0 24px;
  color: #71808a;
  font: 700 10px Arial, sans-serif;
  letter-spacing: .18em;
}

.work-description > div {
  font-size: 16px;
  line-height: 2.2;
}

.detail-empty {
  color: #71808a;
}

.work-information {
  padding: 32px;
  background: #fff;
}

.work-information dl {
  margin: 0;
}

.work-information dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #e3e2de;
}

.work-information dt {
  color: #71808a;
  font-size: 10px;
}

.work-information dd {
  margin: 0;
  font-size: 13px;
}

.work-information dd a {
  text-decoration: none;
}

.external-link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  color: #102a43;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.google-map-button {
  margin-top: 22px;
  border: 1px solid #102a43;
}

.external-link-button .external-link-arrow {
  color: #e8623d;
  font-size: 16px;
  line-height: 1;
}

.external-link-button:hover,
.external-link-button:focus-visible {
  background: #102a43;
  color: #fff;
}

.mini-project-map {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e3e2de;
}

.mini-project-map > p {
  margin: 0 0 10px;
  color: #71808a;
  font: 700 9px Arial, sans-serif;
  letter-spacing: .12em;
}

.mini-project-map > div {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #f5f3ed;
  touch-action: pan-y;
}

.mini-project-map > div.is-zoomed {
  touch-action: none;
}

.mini-map-canvas {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.mini-map-canvas img {
  position: absolute;
  max-width: none;
  object-fit: fill;
}

.mini-map-canvas span {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e8623d;
  box-shadow: 0 2px 8px #06182766;
  transform: translate(-50%, -50%) scale(var(--mini-map-zoom-inverse, 1));
}

.work-external-links {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.work-external-links a {
  border: 1px solid #b8c2c8;
}

.work-detail-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto;
  padding: 0 0 100px;
}

.work-detail-nav > a:not(.work-list-link) {
  display: grid;
  gap: 8px;
  color: #102a43;
  text-decoration: none;
}

.work-detail-nav .next {
  text-align: right;
}

.work-detail-nav small {
  color: #71808a;
  font: 700 9px Arial, sans-serif;
  letter-spacing: .15em;
}

.work-detail-nav strong {
  font-size: 13px;
}

.work-list-link {
  padding: 11px 18px;
  border: 1px solid #102a43;
  color: #102a43;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 850px) {
  .work-detail-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .work-hero-primary,
  .work-hero-photo > div {
    height: 360px;
  }

  .work-hero-photo > .work-hero-photo-rail {
    height: 360px;
    grid-auto-rows: 109px;
  }

  .work-hero-photo > .work-hero-photo-rail button {
    height: 109px;
  }

  .work-detail-content {
    grid-template-columns: 1fr;
    gap: 55px;
  }
}

@media (max-width: 650px) {
  .work-detail-hero {
    gap: 32px;
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .work-detail-heading > p {
    margin-top: 28px;
  }

  .work-detail-hero h1 {
    font-size: clamp(28px, 8.5vw, 34px);
  }

  .work-hero-photo.has-photo-rail {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-hero-primary,
  .work-hero-photo > div {
    height: 240px;
  }

  .work-hero-photo > .work-hero-photo-rail {
    display: flex;
    width: 100%;
    height: 78px;
    padding: 0 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .work-hero-photo > .work-hero-photo-rail button {
    flex: 0 0 108px;
    width: 108px;
    height: 72px;
  }

  .work-detail-main {
    width: calc(100% - 40px);
    padding: 60px 0 80px;
  }

  .work-detail-content {
    margin-top: 55px;
  }

  .work-description > div {
    font-size: 15px;
    line-height: 1.9;
  }

  .work-information {
    padding: 24px;
  }

  .work-information dl > div {
    grid-template-columns: 75px 1fr;
  }

  .work-detail-nav {
    grid-template-columns: 1fr 1fr;
    width: calc(100% - 40px);
    padding-bottom: 70px;
  }

  .work-detail-nav .work-list-link {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}
