/* ═══════════════════════════════════════════════════════════
   GALLERY DETAIL PAGE v2 — Premium editorial redesign
   Apple / Framer / Linear inspired: minimal, spacious, quiet.
   ═══════════════════════════════════════════════════════════ */

.ml-main { background: var(--bg); padding: 0 0 120px; min-height: 70vh; }

/* ── Compact breadcrumb bar ── */
.ml-bc-bar { background: var(--card); border-bottom: 1px solid var(--border); }
.ml-bc-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 2rem; height: 48px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.ml-bc-inner a { color: var(--sage); text-decoration: none; display: flex; align-items: center; gap: 5px; }
.ml-bc-inner a:hover { text-decoration: underline; }
.ml-bc-sep { color: var(--border2); font-size: 9px; }
.ml-bc-cur { color: var(--ink); font-weight: 500; }

/* ── Page shell ── */
.gd-wrap { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

/* ── Header row: title block + career overview card ── */
.gd-header-row {
  display: grid; grid-template-columns: 1fr 340px; gap: 40px;
  padding: 48px 0 40px; align-items: start;
}
.gd-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage); display: block; margin-bottom: 12px;
}
.gd-kicker.is-current { color: var(--blush2); }
.gd-title {
  font-family: var(--disp); font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--ink); line-height: 1.1; margin-bottom: 14px;
}
.gd-meta-row {
  display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px;
  font-size: 13px; color: var(--muted);
}
.gd-meta-row span { display: flex; align-items: center; gap: 7px; }
.gd-meta-row i { color: var(--sage); font-size: 12px; }
.gd-intro { font-size: 14.5px; color: var(--ink2); line-height: 1.75; max-width: 560px; margin-bottom: 26px; }

.gd-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.gd-stat {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 20px;
}
.gd-stat-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--sage-pal); color: var(--sage);
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
}
.gd-stat-num { font-family: var(--disp); font-size: 1.2rem; color: var(--ink); line-height: 1; }
.gd-stat-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.gd-overview-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px; position: sticky; top: 96px;
}
.gd-overview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; user-select: none;
}
.gd-overview-head-left { display: flex; align-items: center; gap: 10px; }
.gd-overview-icon {
  width: 32px; height: 32px; border-radius: 9px; background: var(--sage-pal); color: var(--sage);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.gd-overview-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.gd-overview-chevron { color: var(--muted); font-size: 12px; transition: transform .3s; }
.gd-overview-card.open .gd-overview-chevron { transform: rotate(180deg); }
.gd-overview-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.gd-overview-card.open .gd-overview-body { max-height: 600px; }
.gd-overview-list { padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.gd-overview-row {
  display: grid; grid-template-columns: 26px 90px 1fr; gap: 10px; align-items: start;
  font-size: 12.5px;
}
.gd-overview-row i { color: var(--sage); font-size: 12px; margin-top: 2px; }
.gd-overview-row .k { color: var(--muted); }
.gd-overview-row .v { color: var(--ink); font-weight: 500; line-height: 1.5; }
.gd-overview-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 12.5px; font-weight: 600; color: var(--sage); text-decoration: none;
}
.gd-overview-link:hover { gap: 9px; }

.gd-timeline-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 30px; margin-bottom: 40px;
  display: flex; align-items: flex-start; gap: 8px; overflow-x: auto;
}
.gd-timeline-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); flex-shrink: 0; padding-top: 8px; margin-right: 14px;
}
.gd-tl-step { display: flex; align-items: flex-start; flex-shrink: 0; min-width: 140px; }
.gd-tl-step-content { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gd-tl-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg2); border: 2px solid var(--border2); color: var(--muted); font-size: 11px;
}
.gd-tl-step.is-start .gd-tl-dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.gd-tl-title { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.gd-tl-sub { font-size: 11px; color: var(--muted); }
.gd-tl-connector { width: 40px; height: 2px; background: var(--border); margin: 15px 4px 0; flex-shrink: 0; }

.gd-featured {
  position: relative; border-radius: 22px; overflow: hidden; margin-bottom: 40px;
  aspect-ratio: 21/9; background: var(--bg2); cursor: pointer;
}
.gd-featured img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,7,10,.82) 0%, rgba(10,7,10,.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 32px;
}
.gd-featured-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 99px; margin-bottom: 14px;
}
.gd-featured-title { font-family: var(--disp); font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.gd-featured-loc { font-size: 12.5px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 6px; }
.gd-featured-btn {
  position: absolute; bottom: 28px; right: 32px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); color: var(--ink); font-size: 12.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 10px; border: none; cursor: pointer;
}

.gd-gallery-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.gd-gallery-label h2 { font-family: var(--disp); font-size: 1.4rem; color: var(--ink); }
.gd-masonry { columns: 3; column-gap: 16px; margin-bottom: 48px; }
@media(max-width: 900px) { .gd-masonry { columns: 2; } }
@media(max-width: 560px) { .gd-masonry { columns: 1; } }

.gd-photo {
  break-inside: avoid; margin-bottom: 16px; border-radius: 16px; overflow: hidden;
  position: relative; cursor: pointer; background: var(--bg2); border: 1px solid var(--border);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
  display: block;
}
.gd-photo:hover { transform: translateY(-4px); box-shadow: 0 20px 56px rgba(44,31,38,.14); border-color: var(--border2); }
.gd-photo img { width: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.gd-photo:hover img { transform: scale(1.04); }
.gd-photo:nth-child(4n+1) img { aspect-ratio: 4/3; }
.gd-photo:nth-child(4n+2) img { aspect-ratio: 1/1; }
.gd-photo:nth-child(4n+3) img { aspect-ratio: 3/4; }
.gd-photo:nth-child(4n)   img { aspect-ratio: 4/3; }

.gd-photo-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(20,14,20,.55); backdrop-filter: blur(6px); color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px;
}
.gd-photo-cap {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,11,16,.82) 0%, rgba(14,11,16,.05) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  opacity: 0; transition: opacity .3s;
}
.gd-photo:hover .gd-photo-cap { opacity: 1; }
.gd-photo-cap-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.gd-photo-cap-date { font-size: 10.5px; color: rgba(255,255,255,.55); }
.gd-photo-arrow {
  position: absolute; bottom: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px;
  opacity: 0; transform: translateX(-6px); transition: all .3s;
}
.gd-photo:hover .gd-photo-arrow { opacity: 1; transform: translateX(0); }

.gd-info-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; margin-bottom: 48px; }
@media(max-width: 860px) { .gd-info-row { grid-template-columns: 1fr; } }

.gd-insights-card, .gd-about-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
}
.gd-card-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.gd-insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.gd-insight { display: flex; align-items: flex-start; gap: 10px; }
.gd-insight i { color: var(--sage); font-size: 14px; margin-top: 2px; }
.gd-insight-num { font-family: var(--disp); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.gd-insight-label { font-size: 11px; color: var(--muted); margin-top: 1px; }

.gd-about-card .gd-overview-chevron { cursor: pointer; }
.gd-about-body { max-height: 400px; overflow: hidden; transition: max-height .35s ease; }
.gd-about-card.collapsed .gd-about-body { max-height: 78px; }
.gd-about-text { font-size: 13.5px; color: var(--ink2); line-height: 1.8; }
.gd-about-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 12.5px; font-weight: 600; color: var(--sage); text-decoration: none; cursor: pointer;
  background: none; border: none; font-family: var(--sans); padding: 0;
}

.gd-continue { margin-bottom: 8px; }
.gd-continue-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.gd-continue-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media(max-width: 760px) { .gd-continue-row { grid-template-columns: 1fr; } }
.gd-continue-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  transition: all .2s;
}
.gd-continue-card:hover { border-color: var(--sage); background: var(--sage-pal); }
.gd-continue-logo {
  width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: var(--bg2); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border);
}
.gd-continue-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.gd-continue-logo.is-all { background: var(--sage-pal); color: var(--sage); font-size: 14px; }
.gd-continue-text strong { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.gd-continue-text span { font-size: 11px; color: var(--muted); }
.gd-continue-card i { margin-left: auto; color: var(--muted); font-size: 12px; }

.gd-sticky-nav {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 400; background: var(--card); border: 1px solid var(--border);
  border-radius: 99px; box-shadow: var(--shadow2);
  display: flex; align-items: center; gap: 4px; padding: 6px;
  max-width: 92vw;
}
.gd-sticky-btn {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 9px 16px; border-radius: 99px; font-size: 12px; color: var(--ink2);
  transition: background .2s; white-space: nowrap;
}
.gd-sticky-btn:hover { background: var(--bg2); }
.gd-sticky-btn.disabled { opacity: .35; pointer-events: none; }
.gd-sticky-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.gd-sticky-btn small { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gd-sticky-sep { width: 1px; height: 22px; background: var(--border); }
.gd-sticky-center { display: flex; flex-direction: column; align-items: center; padding: 0 6px; }
.gd-sticky-center i { color: var(--sage); font-size: 13px; }
.gd-sticky-center small { font-size: 9px; color: var(--muted); margin-top: 1px; }
@media(max-width: 640px) { .gd-sticky-btn span small { display: none; } }

.ml-lb {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,4,8,.97); backdrop-filter: blur(28px) saturate(1.4);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.ml-lb.open { display: flex; }
.ml-lb-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 960px; width: 100%; }
.ml-lb-img { max-height: 72vh; width: auto; max-width: 100%; border-radius: 16px; display: block; box-shadow: 0 40px 120px rgba(0,0,0,.7); object-fit: contain; }
.ml-lb-info { text-align: center; }
.ml-lb-title { font-family: var(--disp); font-size: 1.15rem; color: rgba(255,255,255,.92); margin-bottom: 4px; }
.ml-lb-desc { font-size: 12.5px; color: rgba(255,255,255,.42); }
.ml-lb-close, .ml-lb-nav {
  position: fixed; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.75); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; font-family: var(--sans);
}
.ml-lb-close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 17px; }
.ml-lb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 15px; }
.ml-lb-close:hover, .ml-lb-nav:hover { background: rgba(255,255,255,.18); color: #fff; }
.ml-lb-prev { left: 20px; }
.ml-lb-next { right: 20px; }
.ml-lb-counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.45); font-size: 11.5px; letter-spacing: .08em;
  padding: 6px 18px; border-radius: 99px; backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .gd-header-row { grid-template-columns: 1fr; }
  .gd-overview-card { position: static; }
}
