/* project.css */

@font-face {
  font-family: "Aktiv Grotesk Regular";
  src: url(Aktiv_Grotesk/Aktiv_Grotesk_Regular.otf);
}

.project-page {
  padding-bottom: 6rem;
}

/* ─── LAYOUT ── */
.project-content {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ─── META ── */
.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
  width: 100%;
}

.project-name {
  font-family: "Aktiv Grotesk Regular", sans-serif;
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: normal;
  letter-spacing: -0.01em;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.detail-item {
  display: flex;
  gap: 1rem;
}

.detail-label {
  opacity: 0.4;
  min-width: 70px;
}

/* details + image stacked in right col */
.project-details-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-details-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── DESCRIPTION ROW ── */
.project-description-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ─── SIDE TEXT ── */
.side-text {
  font-family: "Aktiv Grotesk Regular", sans-serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.6;
  color: #111;
  text-align: justify;
}

/* ─── IMAGES (default — left half) ── */
.project-images {
  max-width: 50vw;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-images > img {
  width: 100%;
  height: auto;
  display: block;
}

.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ─── BACK LINK ── */
.site-header .name {
  text-decoration: none;
  color: inherit;
}

.site-header .name:hover {
  color: var(--accent);
}

/* ─── HERO: IMAGE + VIDEO SIDE BY SIDE ── */
.project-hero {
  max-width: 50vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

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

/* ─── SPLIT: hero image left, portrait gallery right ── */
.project-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

.project-split > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.portrait-gallery img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

/* ─── 5 ACROSS PORTRAIT GALLERY ── */
.img-gallery-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.img-gallery-5 img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

/* ─── COVER ROW ── */
.cover-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

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

.cover-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cover-side img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── ARCHIVE GALLERY ── */
.archive-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 2rem 1.25rem 4rem;
}

.archive-gallery img {
  width: auto;
  object-fit: cover;
  display: block;
}

/* ─── IMAGE + TEXT SIDE BY SIDE ── */
.image-with-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.image-with-text img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── IMAGE LEFT, PDF RIGHT ── */
.image-with-pdf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  height: 80vh;
}

.image-with-pdf img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── RESPONSIVE ── */
@media (max-width: 800px) {
  .project-images,
  .project-hero {
    max-width: 100%;
  }
  .img-gallery-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .project-meta,
  .project-description-row,
  .project-split,
  .project-hero,
  .cover-row,
  .image-with-text,
  .image-with-pdf {
    grid-template-columns: 1fr;
    height: auto;
  }
  .image-with-pdf iframe {
    height: 60vh;
  }
  .project-images {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .img-gallery-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}