:root {
  --ink: #1d1d1f;
  --gray-1: #6e6e73;
  --gray-2: #86868b;
  --hairline: #d2d2d7;
  --panel: #f5f5f7;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-item { position: relative; }

.gallery-grid img {
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-item::after {
  content: "View image";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover img {
  filter: brightness(0.72);
  transform: scale(1.025);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.gallery-grid img:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid img,
  .gallery-item::after { transition: none; }
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

.project-lightbox[hidden] { display: none; }

.project-lightbox img {
  width: auto;
  height: auto;
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  object-fit: contain;
}

.project-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 300 38px/1 var(--font);
  cursor: pointer;
}

.project-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
