/* Project detail page: hero, heading, overview text, gallery, pager.
   Content sits in one proportionally-narrower container (not edge-to-edge,
   not a fixed pixel width) matching the site's show-reel page.

   Colors are hardcoded rather than reusing Framer's --token-* variables:
   those flip value under prefers-color-scheme, so reusing them here would
   make text invisible for any visitor whose system is in light mode. This
   page is always dark, regardless of the visitor's OS preference. */

:root {
  --sg-bg: #0f0f0f;
  --sg-fg: #ffffff;
  --sg-muted: #9a9a9a;
}

body {
  background: var(--sg-bg) !important;
}

.sg-project {
  width: 60%;
  margin: 0 auto;
  padding: calc(var(--nav-height, 84px) + 40px) 0 120px;
  color: var(--sg-fg);
  font-family: "Inter Placeholder", Inter, sans-serif;
  position: relative;
  z-index: 1;
}

.sg-project__breadcrumb {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sg-muted);
  margin-bottom: 24px;
}

.sg-project__breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.sg-project__breadcrumb a:hover {
  color: var(--sg-fg);
}

.sg-project__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.sg-project__meta {
  font-size: 14px;
  color: var(--sg-muted);
}

.sg-project__video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 24px;
  background: #000;
}

.sg-project__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sg-project__media {
  width: 100%;
  margin-bottom: 40px;
}

.sg-project__hero {
  margin-bottom: 40px;
}

.sg-project__hero img {
  width: 100%;
  height: auto;
  display: block;
}

.sg-project__heading {
  margin-bottom: 40px;
}

.sg-project__overview {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.sg-project__overview p {
  margin-bottom: 20px;
}

.sg-project__overview p:last-child {
  margin-bottom: 0;
}

.sg-project__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.sg-project__gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.sg-project__pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.sg-project__pager a {
  color: inherit;
  text-decoration: none;
}

.sg-project__pager a:hover {
  text-decoration: underline;
}

.sg-project__pager .sg-pager__next {
  text-align: right;
}

@media (max-width: 1200px) {
  .sg-project {
    width: 80%;
  }
}

@media (max-width: 700px) {
  .sg-project {
    width: 90%;
    padding: calc(var(--nav-height, 64px) + 30px) 0 80px;
  }
  .sg-project__title {
    font-size: 28px;
  }
  .sg-project__gallery {
    grid-template-columns: 1fr;
  }
}
