/* Project detail page — To do List */
:root {
  --ink: #2b2b2b;
  --brown: #3b2a1e;
  --cream: #f6f1e4;
  --card: #fffdf5;
  --blue: #94c8e8;
  --purple: #b2a2d8;
  --green: #bbe2a1;
  --yellow: #fce688;
  --orange: #f8b182;
  --pink: #f3a8bd;
}

/* Fade the white speckles on the cream page background to ~40% */
body {
  background-image:
    linear-gradient(rgba(232, 228, 217, 0.6), rgba(232, 228, 217, 0.6)),
    url("../../../img/2.png");
}

.project-main {
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-top: 50px;
  padding: 6px 16px;
  background: #fce688;
  border: 2px solid #222;
  border-radius: 20px;
  font-family: sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  box-shadow: 3px 3px 0px #222;
  position: relative;
  z-index: 1001;
  align-self: flex-start;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px #222;
}
.hero-section {
  padding-top: 0;
}

/* Project Collection card */
.collection {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 3rem;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.12);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.collection-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--brown);
  margin: 0 0 4px;
}

.collection-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 6px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--blue));
}

/* Grid: tiles 01 + 02 in one row, tile 03 full width below */
.collection-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  align-items: stretch;
}

.tile {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.14);
}

.tile--image {
  aspect-ratio: 1 / 1;
}

.tile--image a {
  display: block;
  width: 100%;
  height: 100%;
}

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

.tile--video {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.tile--map {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f4f1e6;
}

.tile-num {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.22);
}

.zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}

/* Project map */
.map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.map-node {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 350px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.18);
  text-align: left;
}

.map-emoji {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.map-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.map-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}

.map-sub {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  line-height: 1.3;
  color: #4a4a4a;
}

.map-arrow {
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}

.map-node--blue {
  background: var(--blue);
}
.map-node--purple {
  background: var(--purple);
}
.map-node--green {
  background: var(--green);
}
.map-node--yellow {
  background: var(--yellow);
}
.map-node--orange {
  background: var(--orange);
}

/* Caption + description */
.collection-description {
  font-family: "Poppins", sans-serif;
  font-size: clamp(20px, 1.4vw, 14px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 620px;
  margin: 0 auto;
}

.collection-caption {
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0;
}

/* GitHub button */
.collection-link {
  align-self: center;
  display: inline-block;
  background: var(--brown);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.collection-link:hover {
  background: #57443a;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 16, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  width: 44px;
  height: 44px;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Mobile: stack everything */
@media (max-width: 600px) {
  .collection {
    padding: 20px;
    gap: 12px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12);
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
