/* Measurements taken from dannychan.co.uk at a 1280px-wide window:
   100px side margins, header top at 100px, content starts at 208px,
   34px column gutter, 84px vertical spacing between stills. */

body {
  background: #fcfcfc;
  color: #575757;
  font-family: 'Figtree', proxima-nova, 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}
/* "body strong" beats Tailwind's reset (strong { font-weight: bolder }), which loads after this file */
body strong { font-weight: 600; }
a { color: #111; }

.site-wrap { padding-left: 100px; padding-right: 100px; }

/* ---------- Header ---------- */
.site-header {
  padding-top: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.logo {
  margin: 0;
  font-family: 'Jost', Futura, futura-pt, sans-serif;
  font-weight: 700;
  font-size: 35px;
  line-height: 42px;
  text-transform: uppercase;
  color: #222;
}
.logo a { color: #222; text-decoration: none; }
.tagline {
  margin-top: 13px;
  font-family: 'Libre Caslon Text', adobe-caslon-pro, Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 1px;
  color: #d21e33;
}
.main-nav { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  margin-left: 30.6px;
  font-family: 'Jost', Futura, futura-pt, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 42px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #999;
}
.main-nav a:first-child { margin-left: 0; }
.main-nav a:hover,
.main-nav a.is-active { color: #111; }

.site-main { padding-top: 35px; padding-bottom: 100px; }

/* ---------- Moving Image: thin banners ---------- */
.project-list { display: flex; flex-direction: column; gap: calc((100vw - 200px) * .005); padding-top: 5px; }
.project { position: relative; display: block; text-decoration: none; background: #eee; }
.project-image { position: relative; aspect-ratio: 3.125 / 1; overflow: hidden; }
.project-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .14s ease-out;
}
.project:hover .project-image img { opacity: .7; }
.project-title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content; max-width: 90%;
  text-align: center;
  font-family: 'Jost', Futura, futura-pt, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .84px;
  text-transform: uppercase;
  color: rgba(255,255,255,0);
  transition: color .14s ease-out;
}
.project:hover .project-title { color: #fff; }

/* ---------- Project page ---------- */
.video-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-caption { margin-top: 34px; }
.project-caption:empty, .project-caption.is-empty { display: none; }

/* ---------- Stills: rows of 1, 2 or 3 columns ---------- */
/* Each photo + caption is one block; blocks are 34px apart (as on the live site). */
.s-row { display: flex; gap: 34px; }
.s-row + .s-row { margin-top: 34px; }
.s-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.still-item { margin: 0; }
/* Caption: same size, weight, line height and spacing as the live captions (12px / 20.16px, 18px above). */
.still-caption {
  padding-top: 10px;
  font-family: 'Figtree', proxima-nova, 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 20.16px;
  text-align: left;
  text-transform: uppercase;
  color: #999;
}
/* Caption sits 10px under its photo; the extra 8px moves below it so the gap to the next photo is unchanged. */
.still-caption:not(:empty) { margin-bottom: 20px; }
.still-caption:empty { padding-top: 18px; }
.still {
  display: block; width: 100%; padding: 0; border: 0;
  background: transparent; cursor: pointer; overflow: hidden;
}
.still img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 34px; }
.about-image { grid-column: 1 / span 7; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.about-text { grid-column: 9 / span 4; }

/* ---------- Contact ---------- */
.contact p { margin: 0 0 15px 80px; white-space: pre-wrap; }

/* ---------- Narrow screens ---------- */
@media (max-width: 640px) {
  .site-wrap { padding-left: 16px; padding-right: 16px; }
  .site-header { padding-top: 40px; }
  .main-nav { margin-left: 0; margin-top: 16px; justify-content: flex-start; }
  .main-nav a { margin-left: 0; margin-right: 20px; }
  .s-row, .s-col { flex-direction: column; gap: 34px; }
  .s-row + .s-row { margin-top: 34px; }
  .about { display: block; }
  .about-text { margin-top: 34px; }
  .contact p { margin-left: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(252,252,252,.98);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-stage {
  margin: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 96px;
}
@media (max-width: 640px) { .lb-stage { padding: 56px 16px; } }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lb-btn {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  color: #222; background: transparent; border: 0; cursor: pointer; opacity: .7;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 12px; right: 12px; }
.lb-prev  { left: 8px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 8px; top: 50%; transform: translateY(-50%); }
body.lb-lock { overflow: hidden; }

/* ---------- Hide the badge Netlify's free plan injects (e.g. .nl-badge-label) ---------- */
[class^="nl-badge"],
[class*=" nl-badge"] { display: none !important; }
/* The badge is injected as an iframe at the end of <body> */
iframe[data-nl-ready],
iframe[src*="about:srcdoc"],
iframe[title*="Netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
