/* =========================================================
   IMAGE PLACEHOLDERS — Portfolio-style
   Striped grey boxes with corner labels, matching the
   aesthetic of the Hyperdive portfolio PDF (pages 25, 30, 40, 50).
   Client will replace these with real images later.
   ========================================================= */

/* Base placeholder — striped grey background, dashed border */
.imgplaceholder {
  position: relative;
  background:
    repeating-linear-gradient(
      -45deg,
      #f0f0ee 0 12px,
      #e6e6e4 12px 24px
    );
  border: 1px solid #d4d4d2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a8a6;
  font-family: var(--f-display);
  min-height: 120px;
}

/* Corner label — small monospace tag in top-left, like the portfolio */
.imgplaceholder::before {
  content: attr(data-label);
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #9a9a98;
  z-index: 2;
}

/* Green dot in top-right corner (matches portfolio branding) */
.imgplaceholder::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--green);
  z-index: 2;
}

/* Center label — larger, describes what image goes there */
.imgplaceholder__label {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9a9a98;
  text-align: center;
  padding: 20px;
}

/* Dimension hint (optional, small text below main label) */
.imgplaceholder__hint {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 500;
  color: #b8b8b6;
  letter-spacing: .1em;
}

/* Size variants */
.imgplaceholder--16-9 { aspect-ratio: 16/9; }
.imgplaceholder--16-10 { aspect-ratio: 16/10; }
.imgplaceholder--4-3 { aspect-ratio: 4/3; }
.imgplaceholder--3-4 { aspect-ratio: 3/4; }
.imgplaceholder--1-1 { aspect-ratio: 1/1; }
.imgplaceholder--21-9 { aspect-ratio: 21/9; }

/* Dark variant for use on black sections */
.imgplaceholder--dark {
  background:
    repeating-linear-gradient(
      -45deg,
      #141414 0 12px,
      #0e0e0e 12px 24px
    );
  border-color: #222;
  color: #444;
}
.imgplaceholder--dark::before {
  color: #555;
}
.imgplaceholder--dark .imgplaceholder__label {
  color: #555;
}
.imgplaceholder--dark .imgplaceholder__hint {
  color: #333;
}

/* Placeholder grid for multi-image sections */
.imgplaceholder-grid {
  display: grid;
  gap: 20px;
}
.imgplaceholder-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
.imgplaceholder-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}
.imgplaceholder-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}
.imgplaceholder-grid--hero {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.imgplaceholder-grid--hero > *:first-child {
  grid-row: 1 / -1;
}
@media (max-width: 900px) {
  .imgplaceholder-grid--3col,
  .imgplaceholder-grid--4col,
  .imgplaceholder-grid--hero { grid-template-columns: 1fr; grid-template-rows: none; }
  .imgplaceholder-grid--hero > *:first-child { grid-row: auto; }
}

/* Section wrapper — for a placeholder gallery block */
.placeholder-gallery {
  padding: clamp(36px, 4vw, 64px) 0;
  background: var(--paper);
}
.placeholder-gallery__head {
  margin-bottom: 32px;
}
.placeholder-gallery__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 12px;
}
.placeholder-gallery__title .accent {
  color: var(--green);
}
.placeholder-gallery__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  max-width: 60ch;
}

/* Small helper — where to add an image in-flow (like a hero visual slot) */
.img-slot {
  position: relative;
  border: 1px solid #d4d4d2;
  background:
    repeating-linear-gradient(
      -45deg,
      #f0f0ee 0 10px,
      #e6e6e4 10px 20px
    );
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a09e;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.img-slot::before {
  content: attr(data-label);
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 9px;
  color: #9a9a98;
  letter-spacing: .15em;
}
.img-slot::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--green);
}
