@font-face {
  font-family: 'TSTAR W00 Heavy';
  src: url('./fonts/yeezy_tstar-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #fff;
  color: #000;
  font-family: 'TSTAR W00 Heavy', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.project-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: 30px;
  padding: 10px;
  text-align: center;
}

.site-footer p {
  margin: 20px 30px;
  margin-bottom: 20px;
  color: #b3b3b3;
  font-size: 15px;
  line-height: 1.3;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 28px 0;
}

.project-back-link {
  color: #b3b3b3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-back-link {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-back-link:hover,
.project-back-link:focus-visible {
  color: #000;
}

.project-category {
  margin: 0;
  color: #777;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(18px, calc(56px - 2.67vw), 32px) 28px 28px;
}

.project-title {
  margin: 0;
  font-size: 48px;
  font-weight: normal;
  line-height: 1;
}

.project-subtitle {
  margin: 0;
  color: #000;
  font-size: 15px;
}

.project-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #111;
}

.project-hero img,
.project-hero iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-hero img {
  object-fit: cover;
}

.project-hero-unavailable {
  position: relative;
  overflow: hidden;
  background: #000;
}

.project-hero-unavailable::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 114.75%;
  height: 3px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%) rotate(29.36deg);
  z-index: 0;
}

.project-unavailable-message {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  margin: 0;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  font-size: clamp(16px, 2.5vw, 24px);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.project-unavailable-note {
  display: block;
  margin-top: 6px;
  font-size: 0.65em;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 4), minmax(0, 1fr));
  gap: 0;
  width: 100%;
}

.project-gallery-slot {
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  background: #e5e5e5;
}

.project-gallery-slot img,
.project-gallery > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-information {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 0 28px;
}

.project-information:empty {
  display: none;
}

.project-information p {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.5;
}

.project-information dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 24px;
}

.project-information dt {
  color: #777;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-information dd {
  margin: 0;
}

@media (max-width: 600px) {
  .project-header {
    padding: 20px 18px 0;
  }

  .project-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 32px 18px 36px;
  }

  .project-title {
    font-size: 60px;
  }

  .project-subtitle,
  .project-back-link,
  .project-category,
  .project-information dt,
  .site-footer p {
    font-size: 17px;
  }

  .project-information p {
    font-size: 30px;
  }

  .project-information {
    padding: 0 18px;
  }

  .project-information dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

}

@media (max-width: 900px) {
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}