﻿body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(122, 0, 0, 0.18), transparent 32%),
    linear-gradient(180deg, #130d0d 0%, #0b0b0b 100%);
  color: #f5f1ee;
  font-family: Arial, sans-serif;
}

.project-page {
  padding: 40px 40px 88px;
}

.project-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.project-back {
  display: inline-block;
  margin-bottom: 24px;
  color: #e9cb92;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.project-back:hover {
  color: #fff;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(260px, 0.75fr);
  gap: 30px;
  align-items: stretch;
  margin-bottom: 36px;
}

.project-hero > * {
  min-width: 0;
}

.project-hero-media {
  max-width: 100%;
  position: relative;
  margin: 0;
  min-height: clamp(320px, 34vw, 460px);
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.project-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(46, 6, 6, 0.84));
}

.project-hero-media--compact img {
  padding: 18px;
}

.project-hero-media--compact-strong img {
  padding: 18px;
}

.project-slideshow-image {
  transition: opacity 0.45s ease, transform 0.7s ease;
}

.project-slideshow-image.is-changing {
  opacity: 0.55;
  transform: scale(1.02);
}

.project-hero-copy {
  padding: 34px;
  background: linear-gradient(180deg, rgba(108, 0, 0, 0.32), rgba(14, 14, 14, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.project-kicker {
  margin: 0 0 10px;
  color: #c9a86b;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.project-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.project-summary {
  margin: 18px 0 0;
  color: rgba(245, 241, 238, 0.85);
  font-size: 1.04rem;
  line-height: 1.75;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.project-meta li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.project-meta strong,
.project-section h2 {
  display: block;
  margin-bottom: 6px;
}

.project-meta span {
  color: rgba(245, 241, 238, 0.75);
  line-height: 1.5;
}

.project-section {
  margin-top: 34px;
  padding: 28px 30px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(15, 15, 15, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
}

.project-section .project-section {
  margin-top: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.project-section h2,
.project-section h3 {
  margin: 0 0 14px;
  color: #f7f1e8;
  line-height: 1.2;
}

.project-section h2 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.project-section h3 {
  font-size: 1.15rem;
  color: #e9cb92;
}

.project-section p {
  max-width: min(100%, 104ch);
  margin: 0;
  color: rgba(245, 241, 238, 0.82);
  line-height: 1.82;
  text-wrap: pretty;
}

.project-section p + p {
  margin-top: 14px;
}

.project-section:empty,
.project-section > p:empty {
  display: none;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.project-gallery > .project-section {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 24px 28px 28px;
}

.project-gallery > .project-section:empty,
.project-gallery > p:empty {
  display: none;
}

.project-shot {
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.project-shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  background: #171717;
}

.project-shot-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.project-shot figcaption {
  padding: 14px 16px 16px;
  color: rgba(245, 241, 238, 0.76);
  line-height: 1.5;
}

.project-shot.contain img,
.project-hero-media.contain img {
  object-fit: contain;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(46, 6, 6, 0.8));
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 22px;
  border-radius: 18px;
  border: 1px solid rgba(201, 168, 107, 0.28);
  background: linear-gradient(180deg, rgba(108, 0, 0, 0.92), rgba(64, 0, 0, 0.92));
  color: #f5f1ee;
  text-decoration: none;
  line-height: 1.5;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.gallery-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 0, 0.75);
  background: linear-gradient(180deg, rgba(122, 0, 0, 0.96), rgba(84, 0, 0, 0.96));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.project-page-nav {
  position: fixed;
  top: 50%;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 16, 16, 0.78);
  color: #f5f1ee;
  text-decoration: none;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  transform: translateY(calc(-50% + var(--project-nav-offset, 0px)));
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
  opacity: 0.72;
}

.project-page-nav:hover {
  background: rgba(34, 34, 34, 0.96);
  border-color: rgba(201, 168, 107, 0.6);
  opacity: 1;
}

.project-page-nav span {
  pointer-events: none;
}

.project-page-nav-prev {
  left: max(28px, calc(50% - 700px));
}

.project-page-nav-next {
  right: max(28px, calc(50% - 700px));
}

@media (max-width: 920px) {
  .project-page {
    padding: 28px 20px 64px;
  }

  .project-hero,
  .project-meta,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-hero-copy {
    padding: 26px;
  }

  .project-section {
    padding: 22px;
  }

  .project-gallery > .project-section {
    padding: 20px 22px 22px;
  }

  .gallery-button {
    width: 100%;
  }

  .project-page-nav {
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
  }

  .project-page-nav-prev {
    left: 12px;
  }

  .project-page-nav-next {
    right: 12px;
  }

}







