html, body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

header {
  margin: 18px 0 8px;
}

/* SVG logo container */
.brand {
  display: inline-block;
  line-height: 0;
}

/* SVG image itself */
.brand img {
  display: block;
  width: 63px;
  height: auto;
}

/* ------------------------------- */
/* PROJECT DETAIL LAYOUT           */
/* ------------------------------- */

.project-page {
  margin-top: 24px;
}

.project-page .project-header {
  margin-bottom: 32px;
}

.project-page .meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
}

.project-page .meta-column {
  display: flex;
  flex-direction: column;
}

.project-page .meta-column-left .meta-row,
.project-page .meta-column-right .meta-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-top: 1px solid #000;
  padding-top: 4px;
  padding-bottom: 4px;
}

.project-page .meta-label {
  font-family: "Maison Mono","NB Architekt Neue", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Inter, Roboto, Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 11px;
  line-height: 1.3;
  padding-right: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-page .meta-value,
.project-page .meta-value-description {
  font-family: "Maison Mono","NB Architekt Neue", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Inter, Roboto, Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}

.project-page .meta-row-description {
  border-top: 1px solid #000;
  padding-top: 4px;
  padding-bottom: 4px;
}

.project-page .project-image,
.project-page .project-image--full {
  margin-top: 32px;
}

.project-page .project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-page .project-image--full img {
  width: 1200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .project-page .meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------- */
/* PROJECT GALLERY LAYOUT          */
/* ------------------------------- */

.project-gallery {
  margin-top: 32px;
}

.project-gallery .gallery-hero {
  width: 100%;
  margin: 16px 0;
}

.project-gallery .gallery-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.project-gallery .gallery-hero--full img {
  width: 1200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.project-gallery .gallery-caption {
  font-family: "Maison Mono","NB Architekt Neue", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Inter, Roboto, Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 0;
}

.project-gallery .gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}

.project-gallery .gallery-item {
  flex: 1 1 calc(50% - 8px);
}

.project-gallery .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.project-gallery .gallery-item--overlay {
  position: relative;
}

.project-gallery .gallery-item--overlay .gallery-caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  margin: 0;
  color: #fff;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .project-gallery .gallery-row {
    flex-direction: column;
    gap: 16px;
  }

  .project-gallery .gallery-item {
    width: 100%;
  }
}

/* ------------------------------- */
/* NATIVE-SIZE CENTERED VIDEO      */
/* ------------------------------- */

.project-video {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.project-video-inner {
  position: relative;
  display: inline-block;
}

/* desktop-only scale */
@media (min-width: 769px) {
  .project-video-inner {
    transform: scale(0.9);
    transform-origin: center;
  }
}

/* native video */
.project-video-inner video {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
}

/* white mask */
.project-video-inner::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 20px solid #fff;
  pointer-events: none;
}

/* mobile constraints */
@media (max-width: 768px) {
  .project-video {
    margin: 16px 0;
  }

  .project-video-inner {
    max-width: 100vw;
  }

  .project-video-inner video {
    max-width: 100vw;
    max-height: 60vh;
    object-fit: contain;
  }
}

/* ------------------------------- */
/* FULL-WIDTH VIDEO (1200PX MAX)   */
/* ------------------------------- */

.project-video-full {
  position: relative;
  margin: 32px auto;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}

.project-video-full video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-video-full::after {
  display: none;
}

@media (max-width: 768px) {
  .project-video-full {
    margin: 16px auto;
  }
}
