/* lga-clone-v2 — structural clone of lgamanagement.com
   Aesthetic notes:
   - Lowercase, white background, no borders
   - Wordmark: italic serif (Cormorant Garamond as a free Raleway/Gotham-adjacent stack)
   - UI: Raleway 200 (sidebar names, body) + Inter 300 uppercase (labels)
   - No fixed-aspect grid; masonry instead
   - Hamburger is the only nav
*/

:root {
  --bg: #f8f9f6;
  --ink: #000000;
  --ink-mid: #555555;
  --ink-soft: #999999;
  --rule: #ececec;
  --accent: #2a4fa8;          /* the deep navy of the "Load more" button */
  --gutter: 28px;
  --label-letter: 0.18em;
  --font-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-body: "Raleway", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-label: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-weight: 200;
  font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* ---------- Header (every page) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
}
.header-left  { justify-self: start; }
.header-mark  { justify-self: center; }
.header-right { justify-self: end; display: flex; align-items: center; gap: 36px; }

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hamburger {
  display: inline-flex; flex-direction: column; justify-content: space-between;
  width: 26px; height: 18px;
  cursor: pointer; padding: 0; background: none; border: 0;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
}

/* Breadcrumb header on artist pages */
.crumb-name {
  font-family: var(--font-label); font-weight: 300;
  text-transform: uppercase; letter-spacing: var(--label-letter);
  font-size: 13px;
}
.crumb-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: 17px; color: var(--ink);
}

/* ---------- Hamburger panel (open state) ---------- */
.menu-panel {
  position: fixed; top: 84px; right: 24px; z-index: 200;
  background: rgba(255,255,255,0.96);
  padding: 14px 18px;
  width: max-content;
  text-align: right;
  display: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.menu-panel.open { display: block; }
.menu-panel a {
  display: block;
  font-family: var(--font-label); font-weight: 300;
  text-transform: uppercase; letter-spacing: var(--label-letter);
  font-size: 12px; padding: 6px 0;
  color: var(--ink);
}
.menu-panel a:hover { opacity: 0.55; }

/* ============================================================
   HOMEPAGE — 4-tile asymmetric mosaic
   ============================================================ */
.mosaic {
  display: grid;
  /* 3-tile layout: Photography big-left (both rows), Video top-right, Collaborations bottom-right */
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  height: calc(100vh - 100px);
  min-height: 720px;
}
.mosaic .tile {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  cursor: pointer;
}
.mosaic .tile-photo  { grid-column: 1 / 2; grid-row: 1 / 3; } /* large, both rows */
.mosaic .tile-motion { grid-column: 2 / 3; grid-row: 1 / 2; } /* top right */
.mosaic .tile-collab { grid-column: 2 / 3; grid-row: 2 / 3; } /* bottom right */

.mosaic .tile-bg, .mosaic .tile-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  background-size: cover; background-position: center;
  transition: transform 600ms ease;
}
.mosaic .tile:hover .tile-bg,
.mosaic .tile:hover .tile-video {
  transform: scale(1.025);
}

/* YouTube-loop tile: overscan the iframe so YouTube's logo/controls
   fall outside the visible tile. The iframe is sized 250% × 250% and
   shifted -75%/-75% so only the centered ~40% of the YT player remains
   visible — that crops out the corner-watermark, controls bar, and
   most of the cued-state info card. */
.tile-yt-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #000;
}
.tile-yt-wrap iframe {
  position: absolute;
  width: 250%; height: 250%;
  top: -75%; left: -75%;
  border: 0;
  pointer-events: none; /* clicks pass through to the parent <a> */
}
.tile-yt-poster {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #000;        /* fallback if the image fails to load */
  z-index: 5;                    /* above the iframe, below the tile-label */
  opacity: 1;
  /* Asymmetric transition: snap back into view (0ms) the moment the
     player blips out of PLAYING — masks any YouTube overlay flash —
     but fade out smoothly when video resumes. */
  transition: opacity 350ms ease;
  pointer-events: none;
}
.tile-yt-poster.cover-now {
  transition: opacity 0ms;
}
.mosaic .tile-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-label); font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 10;
}

@media (min-width: 1100px) {
  /* At desktop: emphasize Photography even more (wider hero), keep Video / Collab stacked right */
  .mosaic {
    grid-template-columns: 1.8fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  /* Phone: stack vertically */
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 1.4fr 1fr 1fr;
    height: auto;
    min-height: 0;
  }
  .mosaic .tile-photo  { grid-column: 1; grid-row: 1; }
  .mosaic .tile-motion { grid-column: 1; grid-row: 2; }
  .mosaic .tile-collab { grid-column: 1; grid-row: 3; }
  .mosaic .tile { aspect-ratio: 4/3; }
}

/* ============================================================
   SECTION PAGES — sidebar + masonry grid
   ============================================================ */
.section-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  padding: 24px var(--gutter) 80px;
  align-items: start;
}

.sidebar { padding-top: 12px; }
.sidebar-title {
  font-family: var(--font-label); font-weight: 300;
  text-transform: uppercase; letter-spacing: var(--label-letter);
  font-size: 13px; margin: 0 0 18px;
  color: var(--ink);
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin: 0; padding: 0; }
.sidebar-list a {
  display: block;
  padding: 4px 0;
  font-family: var(--font-body); font-weight: 200;
  font-size: 15px; line-height: 1.5;
  color: var(--ink);
  text-transform: lowercase;
  transition: opacity 160ms ease;
}
.sidebar-list a:hover { opacity: 0.5; }
.sidebar-subhead {
  font-family: var(--font-body); font-weight: 400;
  font-size: 14px; margin: 18px 0 6px;
  color: var(--ink);
  text-transform: lowercase;
}
.sidebar-instagram {
  margin-top: 56px;
}
.sidebar-instagram .label {
  font-family: var(--font-label); font-weight: 300;
  text-transform: uppercase; letter-spacing: var(--label-letter);
  font-size: 13px; margin-bottom: 10px;
  color: var(--ink);
}
.sidebar-instagram .thumb {
  display: block; width: 130px; height: 60px;
  background: #ddd center/cover no-repeat;
  margin-bottom: 12px;
}
.sidebar-instagram .load-more {
  display: block; width: 100%;
  background: var(--accent); color: #fff;
  padding: 10px 0; text-align: center;
  font-family: var(--font-body); font-weight: 300;
  font-size: 13px;
  border: 0; cursor: pointer;
}

/* Masonry — using CSS columns (simpler than JS for this aesthetic) */
.masonry {
  column-count: 3;
  column-gap: 12px;
}
.masonry > a {
  display: block;
  margin: 0 0 12px;
  break-inside: avoid;
  background: #f3f3f3;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.masonry img,
.masonry video {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 220ms ease;
}
.masonry > a:hover img,
.masonry > a:hover video { opacity: 0.85; }

@media (max-width: 1024px) {
  .section-layout { grid-template-columns: 200px 1fr; }
  .masonry { column-count: 2; }
}
@media (max-width: 640px) {
  .section-layout { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
}

/* ============================================================
   ARTIST SLIDESHOW PAGE
   ============================================================ */
.slideshow {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 40px var(--gutter);
}
.slideshow-stage {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  padding: 0 80px;
  position: relative;
}
.slideshow-stage img,
.slideshow-stage video {
  display: block;
  max-width: calc(50% - 12px);
  max-height: 70vh;
  height: auto; width: auto;
  object-fit: contain;
}
/* Single-slide pages: let the lone image fill more of the stage instead
   of being capped at ~50% width like a paired layout. */
.slideshow-stage img:only-of-type,
.slideshow-stage video:only-of-type {
  max-width: min(100%, 1100px);
  max-height: 80vh;
}
.slideshow-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 28px; line-height: 1;
  color: var(--ink); opacity: 0.6;
  transition: opacity 150ms ease;
}
.slideshow-arrow:hover { opacity: 1; }
.slideshow-arrow.prev { left: 16px; }
.slideshow-arrow.next { right: 16px; }

.slideshow-toolbar {
  display: flex; align-items: center; justify-content: center;
  gap: 36px;
  padding: 28px 0 12px;
  font-family: var(--font-label); font-weight: 300;
  text-transform: uppercase; letter-spacing: var(--label-letter);
  font-size: 11px;
}
.slideshow-counter { color: var(--ink-soft); }
.slideshow-toolbar a { color: var(--ink); cursor: pointer; }
.slideshow-toolbar a:hover { opacity: 0.55; }
.slideshow-back { margin-left: auto; }

/* ============================================================
   CONTACT — department switcher
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 24px var(--gutter) 80px;
  align-items: start;
  max-width: 1100px;
}
.contact-layout > .sidebar { display: none; }
.dept-list { list-style: none; padding: 12px 0 0; margin: 0; }
.dept-list a {
  display: block;
  padding: 5px 0;
  font-family: var(--font-body); font-weight: 200;
  font-size: 15px;
  color: var(--ink-soft);
  text-transform: lowercase;
}
.dept-list a.active {
  font-weight: 300;
  color: var(--ink);
}
.dept-list a:hover { color: var(--ink); }

.dept-content .tagline {
  font-family: var(--font-body); font-weight: 200;
  font-size: 16px; line-height: 1.5;
  margin: 0 0 36px; max-width: 540px;
  color: var(--ink);
  white-space: pre-line;
}
.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 64px;
  max-width: 700px;
}
.office h3 {
  font-family: var(--font-label); font-weight: 300;
  text-transform: uppercase; letter-spacing: var(--label-letter);
  font-size: 13px; color: var(--ink-soft);
  margin: 0 0 12px;
}
.office p {
  margin: 0; padding: 0;
  font-family: var(--font-body); font-weight: 200;
  font-size: 14px; line-height: 1.55;
  color: var(--ink);
  text-transform: lowercase;
}
.office a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

@media (max-width: 640px) {
  .contact-layout { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
}

/* ---------- Contact minimap (grayscaled Google Maps embed) ---------- */
.contact-minimap {
  max-width: 1100px;
  margin: 0 var(--gutter) 80px;
  height: 360px;
  overflow: hidden;
  background: #e9e9e6;
}
.contact-minimap iframe {
  display: block;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(100%) contrast(1.05);
}
@media (max-width: 640px) {
  .contact-minimap { height: 260px; margin: 0 16px 48px; }
}
