/* Greg Rogers Photography — grogers.ca static rebuild
   Palette taken from the original Showit site: black / white / near-black
   charcoal (25,25,26), slate accent #4b5665, light grey #f9f9f9.
   Type: Bentham for display headings, Lato for body/nav, PT Serif for quotes.
*/
:root {
  --black: #000;
  --ink: #19191a;
  --grey: #333;
  --slate: #4b5665;
  --light: #f9f9f9;
  --white: #fff;
  --serif: "Bentham", "PT Serif", Georgia, serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --quote: "PT Serif", Georgia, serif;
  --header-h: 84px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }
.eyebrow {
  font-family: var(--body); font-weight: 400; text-transform: uppercase;
  letter-spacing: .35em; font-size: .75rem; color: var(--slate); margin-bottom: .75em;
}
.eyebrow.light { color: rgba(255,255,255,.85); }
.button {
  display: inline-block; padding: .8em 2.2em; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); text-decoration: none;
  text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; font-weight: 400;
  cursor: pointer; transition: background .2s, color .2s;
}
.button:hover, .button:focus { background: var(--ink); color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header .header-inner {
  max-width: 1240px; margin: 0 auto; padding: .6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand img { height: 64px; width: auto; }
.logo-colour { display: none; }
/* Over a hero image: transparent, white logo + white links */
.site-header.over-hero:not(.scrolled) { background: transparent; }
.site-header.over-hero:not(.scrolled) .logo-white { display: block; }
.site-header.over-hero:not(.scrolled) .logo-colour { display: none; }
.site-header.over-hero:not(.scrolled) .site-nav a { color: var(--white); }
.site-header.over-hero:not(.scrolled) .menu-toggle span { background: var(--white); }
/* Solid state (scrolled, or pages without a hero): white bar, colour logo */
.site-header.scrolled, .site-header:not(.over-hero) {
  background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.site-header.scrolled .logo-white, .site-header:not(.over-hero) .logo-white { display: none; }
.site-header.scrolled .logo-colour, .site-header:not(.over-hero) .logo-colour { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; font-weight: 400; color: var(--ink); padding: .25em 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.active { border-bottom-color: currentColor; }
.site-nav a.galleries-link { border: 1px solid currentColor; padding: .45em .9em; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- hero / slideshow ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; color: var(--white); text-align: center; overflow: hidden; background: var(--ink); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.hero-content { position: relative; z-index: 2; padding: 6rem 1.25rem 4rem; max-width: 900px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .45em; font-size: .85rem; margin-bottom: 1rem; }
.hero h1 { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-sub { font-family: var(--quote); font-style: italic; font-size: 1.15rem; }
.hero-scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--white); font-size: 1.6rem; text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { bottom: 1.4rem; } 50% { bottom: 1rem; } }

/* ---------- sections ---------- */
.intro { padding: 5rem 0 3rem; text-align: center; }
.intro p { font-size: 1.05rem; }
.about { padding: 5rem 0; background: var(--white); }
.about-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.about-photos { display: grid; gap: 1rem; }
.about-photo img { width: 100%; }
.about-text blockquote {
  font-family: var(--quote); font-style: italic; font-size: 1.5rem;
  margin: 0 0 .5rem; padding: 0; border: 0; color: var(--ink);
}
.about-text blockquote cite { display: block; font-size: .9rem; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin-top: .4rem; }
.about-text .tagline { font-family: var(--quote); font-style: italic; color: var(--slate); }
.portfolio-band {
  position: relative; background-size: cover; background-position: center;
  background-attachment: fixed; color: var(--white); text-align: center;
  padding: 7rem 1.25rem;
}
.portfolio-band-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.portfolio-band-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.category-list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; justify-content: center; }
.category-list a { color: var(--white); text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; border-bottom: 1px solid transparent; }
.category-list a:hover { border-bottom-color: var(--white); }
.portfolio-tiles { padding: 4rem 0; }
.tiles { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile { position: relative; display: block; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute; inset: auto 0 0 0; padding: 2.2em 1em .8em; color: var(--white);
  text-transform: uppercase; letter-spacing: .25em; font-size: .85rem; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.prints-band { background: var(--light); padding: 4.5rem 0; text-align: center; }

/* ---------- gallery grid (masonry) ---------- */
.gallery-section { padding: 0 0 4rem; }
.gallery-wrap { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.gallery-grid { columns: 3 300px; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; }
.gallery-item img { width: 100%; }
.gallery-item a { display: block; }

/* ---------- image loading placeholders (fade-in) ----------
   width/height attributes on every content <img> reserve the space
   (no layout shift); while an image loads it shows a subtle grey
   placeholder, then fades in. The opacity rule only applies once
   site-content.js has run (html.site-content-js), so images are never
   hidden if that script fails to load. */
.gallery-item img, .about-photo img, .tile img { background: #ededed; }
html.site-content-js .gallery-item img,
html.site-content-js .about-photo img,
html.site-content-js .tile img { opacity: 0; transition: opacity .5s ease-in; }
html.site-content-js .gallery-item img.is-loaded,
html.site-content-js .about-photo img.is-loaded,
html.site-content-js .tile img.is-loaded { opacity: 1; }

/* ---------- watermark overlay ----------
   Small "© Greg Rogers" mark over displayed photos, added as an
   overlay by site-content.js (the image files are untouched, so it
   shows in screenshots). Shown when the watermark_enabled site
   setting is on (the default); the admin toggles it in the site
   content editor. */
.gallery-item, .about-photo { position: relative; }
.wm-mark {
  position: absolute; right: 10px; bottom: 8px; z-index: 3;
  color: rgba(255,255,255,.65); font-size: 12px; letter-spacing: .08em;
  text-shadow: 0 1px 4px rgba(0,0,0,.5); pointer-events: none;
  user-select: none; white-space: nowrap;
}
.tile .wm-mark {
  /* Beat the .tile span category-label rule above. */
  inset: auto; left: auto; right: 10px; bottom: 8px; padding: 0;
  background: none; text-align: right; text-transform: none;
  letter-spacing: .08em; font-size: 12px;
  color: rgba(255,255,255,.65);
}
.lb-img-wrap { position: relative; display: inline-block; line-height: 0; }

/* ---------- contact band / form ---------- */
.contact-band { background: var(--ink); color: var(--white); text-align: center; padding: 5rem 0; }
.contact-band-inner { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }
.contact-band h2 { color: var(--white); }
.contact-band a { color: var(--white); }
.contact-band .button { border-color: var(--white); color: var(--white); }
.contact-band .button:hover { background: var(--white); color: var(--ink); }
.contact-links { display: flex; flex-direction: column; gap: .25rem; }
.contact-sub { font-family: var(--quote); font-style: italic; }
.form-section { padding: 1rem 0 5rem; }
.contact-form { max-width: 640px; margin: 0 auto; padding: 0 1.25rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; margin-bottom: .35rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: .8em 1em; border: 1px solid #bbb; background: var(--white);
  font: inherit; font-weight: 300; color: var(--ink); border-radius: 0;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--slate); border-color: var(--slate); }
.form-status { min-height: 1.5em; font-weight: 400; }
.form-status.success { color: #1e6b34; }
.form-status.error { color: #a11; }

/* ---------- footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid #e5e5e5; text-align: center; padding: 3.5rem 1.25rem 2.5rem; }
.footer-thanks { font-family: var(--serif); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .15em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: center; margin-bottom: 1.2rem; }
.footer-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; }
.footer-social { display: flex; flex-direction: column; gap: .2rem; font-size: .95rem; }
.footer-social a { text-decoration: none; }
.footer-credit { font-size: .85rem; color: var(--grey); margin-top: 1.5rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; font-size: 2.4rem; line-height: 1; padding: .5rem .8rem; }
.lightbox-close { top: .5rem; right: .8rem; }
.lightbox-prev { left: .4rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .4rem; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .tiles { grid-template-columns: 1fr; }
  .tile img { aspect-ratio: 16 / 10; }
  .portfolio-band { background-attachment: scroll; }
  .menu-toggle { display: block; z-index: 60; }
  .site-nav {
    position: fixed; inset: 0; background: rgba(255,255,255,.98); z-index: 55;
    display: none; align-items: center; justify-content: center;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 1.4rem; }
  .site-nav a { color: var(--ink) !important; font-size: 1.05rem; }
  .site-header.menu-open { background: transparent; box-shadow: none; }
  .site-header.menu-open .logo-white { display: none; }
  .site-header.menu-open .logo-colour { display: block; }
  .site-header.menu-open .menu-toggle span { background: var(--ink); }
  .gallery-grid { columns: 2 160px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .gallery-grid { columns: 1; }
  .brand img { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-scroll { animation: none; }
  html.site-content-js .gallery-item img,
  html.site-content-js .about-photo img,
  html.site-content-js .tile img { transition: none; }
  html { scroll-behavior: auto; }
}
