/* Julian Master photography site — faithful recreation of julianmaster.com */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #ffffff;
  color: #1f1f1f;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1f1f1f;
  text-decoration: none;
}

a:hover {
  color: #000000;
}

a:focus-visible {
  outline: 1px solid #999;
  outline-offset: 2px;
}

/* Layout: fixed left sidebar + full-bleed content (desktop) */
.site {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Mobile-only top bar — hidden on desktop */
.mobile-header {
  display: none;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 230px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  z-index: 20;
  overflow-y: auto;
  color: #1f1f1f;
}

.site-title {
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #1f1f1f;
  font-family: "Times New Roman", Times, serif;
}

.site-title a {
  color: inherit;
}

.nav {
  flex: 1;
}

.nav-section {
  margin: 0 0 18px;
}

/* Desktop accordion folders (Work / Commissions) */
.nav-label {
  display: block;
  margin: 0 0 4px;
  color: #1f1f1f;
  font-size: 13px;
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.nav-label:hover {
  color: #000000;
}

.nav-label[aria-expanded="true"] {
  color: #1f1f1f;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
}

/* Collapsed folder hides children on desktop */
.nav-section:not(.is-open) > .nav-list {
  display: none;
}

.nav-section.is-open > .nav-list {
  display: block;
}

.nav-list li {
  margin: 0 0 2px;
}

.nav-list a {
  display: inline-block;
  padding: 1px 0;
  font-size: 13px;
  color: #1f1f1f;
}

/* Selected = grey; unselected = black (matches live julianmaster.com desktop) */
.nav-list a.is-active,
.nav-top-link.is-active {
  color: #a3a3a3;
}

.nav-list a:hover:not(.is-active),
.nav-top-link:hover:not(.is-active) {
  color: #000000;
}

.nav-top-link {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  font-size: 13px;
  color: #1f1f1f;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #1f1f1f;
}

.social-icon:hover {
  color: #000000;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-icon svg.icon-cart {
  fill: none;
  overflow: visible;
}

.social-icon svg.icon-cart circle {
  fill: currentColor;
  stroke: none;
}

/* Main content */
.main {
  margin-left: 230px;
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: #ffffff;
}

/* Gallery slideshow (desktop) */
.gallery {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.gallery-intro {
  flex: 0 0 auto;
  padding: 28px 40px 0;
  max-width: 52rem;
  color: #1f1f1f;
  font-size: 15px;
  line-height: 1.5;
}

.gallery-intro p,
.gallery-intro h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.gallery-intro em {
  font-style: italic;
}

.gallery-intro a {
  color: #1f1f1f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gallery-intro a:hover {
  color: #000;
}

.gallery-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px 8px;
  min-height: 0;
  user-select: none;
}

.gallery-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-stage img.is-active {
  opacity: 1;
}

.gallery-stage.has-stack img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 64px);
  max-height: calc(100% - 48px);
}

.gallery.has-intro .gallery-stage.has-stack img {
  max-height: calc(100% - 24px);
}

.gallery-caption {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  color: #1f1f1f;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  z-index: 6;
}

.gallery-controls {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 22px;
  flex-wrap: wrap;
  max-width: 100%;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #999999;
  background: transparent;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.dot.is-active {
  background: #666666;
  border-color: #666666;
}

.dot:hover {
  border-color: #444444;
}

.dot:focus-visible {
  outline: 1px solid #666;
  outline-offset: 2px;
}

/* Left/right hit zones with directional arrow cursors (desktop) */
.gallery-nav-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 5;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.gallery-nav-hit.prev {
  left: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M18 6 L10 14 L18 22' fill='none' stroke='%231f1f1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      14 14,
    w-resize;
}

.gallery-nav-hit.next {
  right: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M10 6 L18 14 L10 22' fill='none' stroke='%231f1f1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      14 14,
    e-resize;
}

/* Contact page */
.contact-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-photo {
  max-width: min(420px, 42vw);
  max-height: 70vh;
}

.contact-photo img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.contact-copy {
  max-width: 320px;
  font-size: 13px;
  color: #1f1f1f;
  line-height: 1.55;
}

.contact-copy p {
  margin: 0 0 0.35em;
}

.contact-copy a {
  color: #1f1f1f;
}

.contact-copy a:hover {
  color: #000;
}

.contact-block {
  margin-top: 1.1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #1f1f1f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 8px 4px;
  cursor: pointer;
  line-height: 1;
}

.menu-backdrop {
  display: none;
}

/* ==========================================================================
   MOBILE — match julianmaster.com screenshots
   ========================================================================== */
@media (max-width: 800px) {
  body.is-menu-open {
    overflow: hidden;
  }

  .site {
    display: block;
    min-height: 0;
  }

  /* Top bar: title + icons left, Menu right */
  .mobile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 60; /* above full-screen menu so Menu/Close stays tappable */
    background: #ffffff;
    padding: 16px 18px 10px;
  }

  /* When menu is open, header becomes transparent over grey overlay */
  body.is-menu-open .mobile-header {
    background: transparent;
  }

  body.is-menu-open .mobile-header .site-title,
  body.is-menu-open .mobile-header .mobile-socials {
    visibility: hidden;
  }

  body.is-menu-open .menu-toggle {
    color: #ffffff;
  }

  .mobile-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mobile-header .site-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    color: #000000;
  }

  .mobile-header .mobile-socials {
    margin: 0;
    padding: 0;
    gap: 16px;
  }

  .mobile-header .social-icon {
    width: 18px;
    height: 18px;
    color: #000000;
  }

  .menu-toggle {
    display: block;
    margin-top: 2px;
    color: #000000;
    font-size: 15px;
  }

  /* Hide desktop sidebar chrome; reuse as full-screen menu overlay */
  .sidebar {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    background: #6e6e6e;
    color: #ffffff;
    z-index: 50;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: max(12vh, 64px);
    padding-bottom: 48px;
  }

  .sidebar.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
  }

  /* Title + socials live in mobile-header; hide duplicates inside overlay */
  .sidebar > .site-title,
  .sidebar > .sidebar-footer {
    display: none;
  }

  .sidebar .nav {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 0 24px;
  }

  .sidebar .nav-section {
    margin: 0 0 28px;
  }

  .sidebar .nav-label {
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
      sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .sidebar .nav-list {
    padding: 0;
    margin: 0;
  }

  .sidebar .nav-list li {
    margin: 0;
  }

  .sidebar .nav-list a {
    display: block;
    padding: 9px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
      sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.35;
  }

  .sidebar .nav-list a.is-active {
    color: rgba(255, 255, 255, 0.72);
  }

  .sidebar .nav-top-link {
    display: block;
    margin: 8px 0 0;
    padding: 9px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
      sans-serif;
    font-size: 15px;
    color: #ffffff;
    text-align: center;
  }

  .sidebar .nav-top-link.is-active {
    color: rgba(255, 255, 255, 0.72);
  }

  /* Dim page behind open menu (menu itself is opaque grey) */
  .menu-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 40;
  }

  .main {
    margin-left: 0;
    min-height: 0;
  }

  /* Vertical scrolling photo feed */
  .gallery {
    height: auto;
    min-height: 0;
    display: block;
    padding: 8px 0 40px;
  }

  .gallery-intro {
    padding: 8px 18px 16px;
    font-size: 14px;
    max-width: none;
  }

  .gallery-stage {
    display: block;
    padding: 0 18px;
    min-height: 0;
    position: relative;
  }

  .gallery-stage.has-stack img,
  .gallery.has-intro .gallery-stage.has-stack img {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    max-height: none;
    width: 100%;
    height: auto;
    opacity: 1;
    margin: 0 0 22px;
    pointer-events: auto;
    transition: none;
  }

  .gallery-stage.has-stack img:last-of-type {
    margin-bottom: 0;
  }

  /* Hide slideshow chrome on mobile */
  .gallery-nav-hit,
  .gallery-controls {
    display: none !important;
  }

  .gallery-caption {
    position: static;
    transform: none;
    display: block;
    margin: -14px 0 22px;
    padding: 0 4px;
    white-space: normal;
    font-size: 13px;
    color: #1f1f1f;
  }

  /* Per-image captions on mobile: each image can have a sibling caption via JS */
  .mobile-caption {
    display: block;
    margin: -14px 0 22px;
    padding: 0 4px;
    font-size: 13px;
    color: #1f1f1f;
    text-align: center;
  }

  .contact-page {
    padding: 24px 18px 48px;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    gap: 24px;
  }

  .contact-photo {
    max-width: 100%;
    max-height: none;
  }

  .contact-photo img {
    max-width: 100%;
    max-height: none;
    width: 100%;
  }
}

/* ==========================================================================
   First-Person Shooter — clickable article grid
   ========================================================================== */
.grid-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 36px 48px;
  box-sizing: border-box;
}

.grid-intro {
  max-width: 44rem;
  margin: 0 0 22px;
  color: #1f1f1f;
  font-size: 15px;
  line-height: 1.5;
}

.grid-intro p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
}

.grid-intro em {
  font-style: italic;
}

.grid-intro a {
  color: #1f1f1f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grid-intro a:hover {
  color: #000;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: start;
}

.photo-grid-item {
  margin: 0;
  padding: 0;
}

.photo-grid-link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  background: #f4f4f4;
  /* Portrait thumbs — full frame, no crop (source images are ~3:4) */
  aspect-ratio: auto;
}

.photo-grid-link img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  vertical-align: top;
  transition: opacity 0.2s ease;
}

.photo-grid-link:hover img {
  opacity: 0.88;
}

.photo-grid-link:focus-visible {
  outline: 1px solid #666;
  outline-offset: 2px;
}

.photo-grid-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.2s ease;
}

.photo-grid-link:hover::after {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1100px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  /* Mobile menu always shows all folder children */
  .sidebar .nav-section > .nav-list,
  .sidebar .nav-section:not(.is-open) > .nav-list {
    display: block;
  }

  .sidebar .nav-label {
    cursor: default;
    pointer-events: none;
    width: auto;
    text-align: center;
  }

  .grid-page {
    min-height: 0;
    padding: 12px 18px 48px;
  }

  .grid-intro {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ==========================================================================
   Go America case study
   Portfolio structure on photography-site white background
   ========================================================================== */

.case-study.ga-page {
  --ga-ink: #1f1f1f;
  --ga-muted: #666666;
  --ga-soft: #8a8a8a;
  --ga-line: #e6e6e6;
  --ga-line-2: #d0d0d0;
  --ga-panel: #f6f6f6;
  --ga-accent: #e85d3a;
  --ga-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ga-disp: "Times New Roman", Times, serif;
  --ga-narrow: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: var(--ga-ink);
  padding: 0 0 64px;
  min-height: 100vh;
  min-height: 100dvh;
}

.ga-page .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 36px;
}

.ga-page .ga-divider {
  border-top: none;
  padding: 36px 0 8px;
}

.ga-page .ga-kicker {
  font-family: var(--ga-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ga-muted);
  margin-bottom: 1.1rem;
}

.ga-page .ga-kicker .dot {
  color: var(--ga-accent);
}

.ga-page .ga-title {
  font-family: var(--ga-disp);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ga-ink);
  margin: 0;
}

.ga-page .ga-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.4rem;
}

.ga-page .ga-meta .item {
  font-family: var(--ga-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ga-muted);
}

.ga-page .ga-meta .item strong {
  display: block;
  color: var(--ga-ink);
  font-weight: 600;
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
  font-family: var(--ga-disp);
  font-size: 0.95rem;
  text-transform: none;
}

.ga-page .lead {
  margin: 0;
  max-width: 62ch;
  font-family: var(--ga-disp);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ga-ink);
}

.ga-page .lead strong {
  font-weight: 700;
}

.ga-page .ga-hero-media {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--ga-line);
  background: var(--ga-panel);
  overflow: hidden;
}

.ga-page .ga-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.ga-page .block {
  padding-top: clamp(2.2rem, 4vw, 3.4rem);
}

.ga-page .sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  margin-bottom: 0.4rem;
}

.ga-page .sec-head .idx {
  font-family: var(--ga-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ga-soft);
  padding-top: 0.35rem;
}

.ga-page .sec-head .title {
  margin: 0;
  font-family: var(--ga-disp);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  color: var(--ga-ink);
  text-transform: none;
  letter-spacing: 0;
}

.ga-page .ga-web-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 1.35rem;
}

.ga-page .ga-web-cell {
  background: var(--ga-panel);
  aspect-ratio: 1300 / 762;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ga-line);
}

.ga-page .ga-web-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.ga-page .ga-trip {
  margin-top: clamp(2.2rem, 4.5vw, 3.4rem);
}

.ga-page .ga-trip-label {
  font-family: var(--ga-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ga-accent);
  margin-bottom: 0.55rem;
}

.ga-page .ga-trip-name {
  font-family: var(--ga-narrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ga-ink);
  margin-bottom: 0.85rem;
}

.ga-page .ga-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.25rem;
  margin-bottom: 1.2rem;
}

.ga-page .ga-stop {
  font-family: var(--ga-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ga-ink);
  border: 1px solid var(--ga-line-2);
  background: #fff;
  padding: 0.4rem 0.7rem;
}

.ga-page .ga-arrow {
  color: var(--ga-accent);
  font-size: 1.55rem;
  font-weight: 700;
  padding: 0 0.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.ga-page .ga-carousel {
  position: relative;
  margin-top: 0.9rem;
}

.ga-page .ga-carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.ga-page .ga-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.ga-page .ga-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 99px;
}

.ga-page .ga-carousel-track figure {
  flex: 0 0 auto;
  width: min(70vw, 360px);
  max-width: min(70vw, 360px);
  scroll-snap-align: start;
  margin: 0;
  background: transparent;
  line-height: 0;
  cursor: zoom-in;
  align-self: flex-start;
  height: auto;
}

.ga-page .ga-carousel-track figure:focus-visible {
  outline: 2px solid var(--ga-accent);
  outline-offset: 2px;
}

.ga-page .ga-carousel-track img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  display: block;
  background: var(--ga-panel);
}

.ga-page .ga-carousel-nav {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.ga-page .ga-carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ga-line-2);
  background: #ffffff;
  color: var(--ga-ink);
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.ga-page .ga-carousel-btn:hover {
  border-color: var(--ga-accent);
  color: var(--ga-accent);
  background: #fff8f6;
}

.ga-page .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ga-page .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ga-page .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Lightbox (dark overlay works on white pages) */
.lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 2rem;
}

.lb.open {
  display: flex;
}

.lb-inner {
  position: relative;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-inner img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 10, 12, 0.75);
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
  z-index: 2002;
}

.lb-btn:hover {
  border-color: #e85d3a;
  background: rgba(20, 20, 24, 0.95);
}

.lb-prev {
  left: 1rem;
}

.lb-next {
  right: 1rem;
}

.lb-close {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 10, 12, 0.75);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2001;
}

.lb-close:hover {
  border-color: #e85d3a;
}

body.lb-lock {
  overflow: hidden;
}

@media (max-width: 800px) {
  .ga-page .wrap {
    padding: 0 18px;
  }

  .ga-page .ga-divider {
    padding-top: 18px;
  }

  .ga-page .ga-web-row {
    grid-template-columns: 1fr;
  }

  .ga-page .sec-head {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .lb {
    padding: 1rem;
  }

  .lb-prev {
    left: 0.4rem;
  }

  .lb-next {
    right: 0.4rem;
  }

  .lb-btn {
    width: 44px;
    height: 44px;
  }
}


/* Linked cover slide (e.g. Bear Suit → VICE article) */
.gallery-image-link {
  display: contents;
}

.gallery-stage.is-linked-slide .gallery-image-link img.is-active,
.gallery-stage.is-linked-slide > img.is-active[data-href] {
  cursor: pointer;
}

/* Center third of stage: pointer for external link; edges keep arrow cursors */
.gallery-stage.is-linked-slide .gallery-nav-hit.prev {
  width: 33.333%;
}
.gallery-stage.is-linked-slide .gallery-nav-hit.next {
  width: 33.333%;
  left: auto;
  right: 0;
}

.gallery-stage.is-linked-slide::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.333%;
  width: 33.333%;
  z-index: 4;
  cursor: pointer;
  pointer-events: none; /* click handled via hit zones / JS using clientX */
}

@media (max-width: 800px) {
  .gallery-image-link {
    display: block;
    width: 100%;
  }
  .gallery-image-link img {
    width: 100%;
    height: auto;
    display: block;
  }
}
