/* ── PHOTOGRAPHS INDEX PAGE ── */

#photographs-index {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* ── SERIES GRID ── */
.photograph-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 32px;
}

.photograph-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* ── PHOTO STACK ── */
.stack {
  position: relative;
  aspect-ratio: 4/3;
}

.stack-ghost {
  position: absolute;
  inset: 0;
  border: 1px solid #444;
  transition: transform 0.12s ease;
}

.stack-ghost:nth-child(1) {
  transform: rotate(-4deg) translate(-3px, 4px);
  z-index: 1;
}
.stack-ghost:nth-child(2) {
  transform: rotate(2.5deg) translate(4px, 2px);
  z-index: 2;
}

.stack-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid #555;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.stack-front canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

/* Subtle print-border effect */
.stack-front::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 6px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

/* Hover: fan the stack */
.photograph-item:hover .stack-front {
  transform: rotate(-1deg) translateY(-4px);
  box-shadow: 4px 6px 0 rgba(0,255,255,0.15);
}
.photograph-item:hover .stack-ghost:nth-child(1) {
  transform: rotate(-6deg) translate(-5px, 7px);
}
.photograph-item:hover .stack-ghost:nth-child(2) {
  transform: rotate(4deg) translate(6px, 4px);
}

/* Flag badge */
.stack-flag {
  position: absolute;
  top: -6px;
  right: -8px;
  z-index: 10;
  width: 48px;
  height: 32px;
  image-rendering: pixelated;
  border: 1px solid #555;
  display: block;
}

/* ── SERIES LABEL ── */
.photograph-label {
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
}

.photograph-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 1px;
  line-height: 1.5;
}
.photograph-meta .year { color: var(--yellow); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .photograph-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 480px) {
  .photograph-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .photograph-item:hover .stack-front,
  .photograph-item:hover .stack-ghost:nth-child(1),
  .photograph-item:hover .stack-ghost:nth-child(2) {
    transform: none;
    box-shadow: none;
  }

  /* index-notice: right-aligned beneath section-header, smaller text */
  #photographs-index .index-notice {
    margin-left: auto;
    margin-bottom: 16px;
    padding: 12px 10px;
  }
  #photographs-index .index-notice__label { font-size: var(--text-xs); }
  #photographs-index .index-notice__text  { font-size: var(--text-xs); margin-top: 0; }
}
