/* =============================================================================
   Kirby Lum — portfolio site styles
   One stylesheet for the whole site. The look is a plain Times New Roman essay
   (a "paper" page on a light canvas). Edit values here to restyle every page.
   ========================================================================== */
:root {
  --ink: #000;
  --link: #1155cc;         /* google docs link blue */
  --canvas: #f9fbfd;       /* docs canvas */
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  font-family: "Times New Roman", Times, serif;
  color: var(--ink);
  font-size: 16px;              /* 12pt */
  line-height: 1.15;            /* google docs default */
  -webkit-font-smoothing: antialiased;
}
.page {
  background: #fff;
  max-width: 816px;             /* 8.5in @ 96dpi */
  margin: 40px auto;
  padding: 96px;                /* 1in margins */
  min-height: 1056px;           /* 11in */
  box-shadow: 0 1px 3px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
}
p { margin: 0; }
/* Headings carry document structure (SEO + screen readers) but render flat —
   same size/weight as body text — to preserve the plain-essay look. */
h1, h2, h3, h4, h5, h6 { font-size: 1em; font-weight: normal; margin: 0; }
a { color: var(--link); text-decoration: underline; }

/* ---- homepage ------------------------------------------------------------ */
.header p { margin: 0; }
#dateline { display: flex; justify-content: space-between; }  /* date left, time+city right (MLA-style) */
.section-title { text-align: center; margin: 1em 0; }        /* "Projects" */
.group-title { text-align: center; margin: 1.5em 0 0.75em 0; } /* optional category headings */
.project { display: block; margin: 0 0 0.5em 0; color: var(--ink); text-decoration: none; }
.project .name { display: block; }
.project .details { display: block; margin-left: 0.5in; color: var(--link); text-decoration: underline; }
.project .name:hover { text-decoration: none; }
.project:hover .details { text-decoration: underline; }
.placeholder .name { color: #666; }
.currently { margin-top: 1.5em; }
blockquote { margin: 1em 0 1em 0.5in; font-style: italic; }
.contact { margin-top: 1em; }
/* blinking essay caret — the 'active doc' tell */
.caret {
  display: inline-block; width: 2px; height: 1.05em; background: var(--ink);
  vertical-align: text-bottom; margin-left: 1px; animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- project page -------------------------------------------------------- */
.back { margin: 0 0 1.5em 0; }
.status { color: #666; font-style: italic; }
.cover { margin: 1.25em 0; text-align: center; }
.cover img { width: 100%; display: block; border: 1px solid #ccc; }
.body { margin-top: 1em; }
.body p { margin: 0 0 1em 0; }
.strengths { margin: 0; padding-left: 0.5in; }
.strengths p { margin: 0 0 0.75em 0; }
.credits { margin: 0; padding-left: 0.5in; }              /* optional "who made this" list */
.credits p { margin: 0 0 0.3em 0; }
.foot { margin-top: 2em; }

/* media blocks — framed like pictures inserted into the doc */
figure { margin: 1.5em auto; text-align: center; }
figure .frame {
  border: 1px solid #ccc; background: #fafafa; color: #999; height: 320px;
  display: flex; align-items: center; justify-content: center; font-style: italic;
}
figure img { max-width: 100%; display: block; margin: 0 auto; }
figure .video { position: relative; width: 100%; padding-top: 56.25%; border: 1px solid #ccc; background: #000; }
figure .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
figure video { width: 100%; aspect-ratio: 16 / 9; display: block; border: 1px solid #ccc; background: #000; }
figcaption { margin-top: 0.4em; color: #666; font-size: 0.9em; }

/* poster — a clickable thumbnail that links out (YouTube film / Instagram post) */
.poster { position: relative; display: block; line-height: 0; }
.poster-sm { max-width: 300px; margin-left: auto; margin-right: auto; }  /* portrait poster kept to one still's footprint */
.poster img { width: 100%; cursor: pointer; border: 1px solid #ccc; }
/* Instagram live embed — sized like a phone card, centered in the doc */
.igembed { max-width: 400px; margin: 0 auto; }
.igembed iframe { width: 100%; height: 720px; border: 1px solid #ccc; background: #fff; }

.poster .playbadge {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.68); border-radius: 10px;
  pointer-events: none;   /* click passes through to the link */
}
.poster .playbadge::before {   /* CSS-drawn triangle — renders identically on every platform (no emoji font) */
  content: ""; width: 0; height: 0;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;   /* optically centers the triangle in the box */
}
.medialink { margin-top: 0.3em; font-size: 0.95em; }

/* image grid — for painting series / stills sets */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.gallery figure { margin: 0; }
.gallery .frame { height: 220px; }

/* plates — one big image per row, extra space around each (painting showcase) */
.plates figure { margin: 2.5em auto; }
.plates figure:first-child { margin-top: 1em; }
.plates img { width: 100%; }
.plates .frame { height: 440px; }

/* ---- lightbox — click a photo to view it large without leaving the page -- */
.page figure img { cursor: zoom-in; }            /* signal that photos are clickable */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .93); padding: 5vh 5vw; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 82vh; object-fit: contain;
  border: 1px solid #333; cursor: default; background: #000;
}
.lightbox figcaption {
  color: #e6e6e6; margin-top: 0.7em; max-width: 90vw; text-align: center;
  font-family: "Times New Roman", Times, serif; font-size: 1em; font-style: italic;
}
.lightbox .close {
  position: absolute; top: 14px; right: 20px; width: 40px; height: 40px;
  color: #fff; font-size: 30px; line-height: 1; background: none; border: 0;
  cursor: pointer; font-family: inherit;
}

@media (max-width: 720px) {
  .page { margin: 0; padding: 40px 24px; min-height: 100vh; box-shadow: none; }
  figure .frame { height: 200px; }
  .gallery { grid-template-columns: 1fr; }
  .plates .frame { height: 260px; }
  .lightbox img { max-width: 96vw; max-height: 78vh; }
}
