/* =============================================================
   ART-SHARED.CSS
   Shared styles for all Fine Art sub-pages:
   Paintings · Olympic Story · Sports Art · Artist in Residence
   ============================================================= */

/* ── CSS VARIABLES ── */
:root {
  --art-bg:     #0d0b09;
  --art-text:   #f0ece4;
  --art-muted:  #a09880;
  --art-accent: #c8a96e;
  --art-card:   #1a1713;
}

/* ── PAGE WRAPPER ── */
.art-page { background: var(--art-bg); color: var(--art-text); min-height: 100vh; }

/* ── SUB-PAGE HERO ── */
.sub-hero { position: relative; height: 60vh; min-height: 440px; overflow: hidden; }

.sub-hero__bg { position: absolute; inset: 0; }
/* background-image is set per-page in the template's own <style> block */

.sub-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,8,6,0.15) 0%, rgba(10,8,6,0.95) 100%);
}

.sub-hero__inner {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  padding: 2.5rem 5rem 3rem; box-sizing: border-box;
}

.sub-hero__back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--art-accent);
  text-decoration: none; margin-bottom: 2.5rem; opacity: 0.75; transition: opacity 0.2s;
}
.sub-hero__back:hover { opacity: 1; }

.sub-hero__eyebrow {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; line-height: 2.2;
  text-transform: uppercase; color: var(--art-accent); margin-bottom: 1.4rem;
}

.sub-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300;
  color: #fff; margin: 0 0 0.8rem; line-height: 1.1;
}

.sub-hero__sub {
  font-size: 0.9rem; color: rgba(255,255,255,0.55);
  max-width: 560px; line-height: 1.75; margin: 0;
}

@media (max-width: 700px) {
  .sub-hero__inner { padding: 2rem 1.5rem 2.5rem; }
}

/* ── STATS BAND ── */
.art-highlights {
  background: var(--art-bg);
  padding: 2rem 4rem;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.art-highlight { display: flex; flex-direction: column; align-items: center; }
.art-highlight__num {
  display: block; font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--art-accent); line-height: 1; margin-bottom: 0.4rem;
}
.art-highlight__label {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #fff; margin-bottom: 0.25rem;
}
.art-highlight__sub {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); line-height: 1.5;
}
@media (max-width: 500px) {
  .art-highlights { grid-template-columns: repeat(2, 1fr); padding: 2.5rem 1.5rem; }
}

/* ── CONTENT SECTIONS ── */
.art-section { padding: 3rem 4rem 3.5rem; }
.art-section--dark { background: rgba(0,0,0,0.3); }
@media (max-width: 600px) { .art-section { padding: 2rem 1.5rem 2.5rem; } }

.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--art-accent); margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.3rem, 2.8vw, 2rem); font-weight: 300; margin: 0 0 0.4rem; }
@media (max-width: 675px) {
  .section-title span { display: block; margin-top: 0.2rem; }
}
.section-sub { font-size: 1rem; color: var(--art-muted); margin: 0 0 2.5rem; line-height: 1.75; max-width: 760px; }

/* ── BUTTONS ── */
.btn-gold {
  display: inline-block; background: var(--art-accent); color: #0d0b09;
  padding: 0.85rem 2rem; font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; font-weight: 600; transition: opacity 0.2s;
}
.btn-gold:hover { opacity: 0.85; }

.btn-outline {
  display: inline-block; background: transparent; color: var(--art-text);
  border: 1px solid rgba(240,236,228,0.3); padding: 0.85rem 2rem;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--art-text); }

/* ── AGORA (Olympic Agora — Paintings + Olympic pages) ── */
.agora-group-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--art-accent); opacity: 0.65; margin-bottom: 0.6rem;
}
.agora-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.5rem; }
@media (max-width: 680px) { .agora-panels { grid-template-columns: 1fr; } }

.agora-panel { position: relative; aspect-ratio: 12/5; overflow: hidden; cursor: pointer; background: var(--art-card); }
.agora-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 0.4s; display: block; }
.agora-panel:hover img { transform: scale(1.03); }
.agora-panel__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.8rem; background: linear-gradient(transparent, rgba(0,0,0,0.72));
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; transition: opacity 0.3s;
}
.agora-panel:hover .agora-panel__label { opacity: 1; }

.agora-squares { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 700px) { .agora-squares { grid-template-columns: repeat(3, 1fr); } }

.agora-sq { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--art-card); }
.agora-sq img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; display: block; }
.agora-sq:hover img { transform: scale(1.06); }
.agora-sq__label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 0.4rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 0.68rem; opacity: 0; transition: opacity 0.25s; text-align: center;
}
.agora-sq:hover .agora-sq__label { opacity: 1; }

/* ── COLLECTIONS (Paintings + Olympic pages) ── */
.art-collections { padding: 5rem 4rem 6rem; border-top: 1px solid rgba(255,255,255,0.06); }
.art-collections__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.art-coll-card { border-top: 2px solid rgba(201,168,110,0.25); padding-top: 1.4rem; }
.art-coll-card__region {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--art-accent); margin-bottom: 0.7rem;
}
.art-coll-card__name { font-size: 1rem; font-weight: 400; color: #fff; margin: 0 0 0.3rem; line-height: 1.3; }
.art-coll-card__desc { font-size: 0.82rem; color: rgba(255,255,255,0.42); line-height: 1.65; margin: 0; }
@media (max-width: 860px) {
  .art-collections__grid { grid-template-columns: 1fr 1fr; }
  .art-collections { padding: 4rem 1.5rem 5rem; }
}
@media (max-width: 500px) { .art-collections__grid { grid-template-columns: 1fr; } }

/* ── LIGHTBOX (Paintings + Olympic + Sports pages) ── */
.lb {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(10,8,6,0.98); display: none; opacity: 0;
  pointer-events: none; transition: opacity 0.25s ease;
  align-items: center; justify-content: center;
}
.lb.lb--open { display: flex; }
.lb.lb--vis { opacity: 1; pointer-events: auto; }

.lb__close {
  position: fixed; top: 1.1rem; right: 1.4rem;
  background: none; border: none; color: #fff; font-size: 1.9rem;
  cursor: pointer; z-index: 10; opacity: 0.6; transition: opacity 0.2s; line-height: 1;
}
.lb__close:hover { opacity: 1; }

/* Desktop: image+nav left, info right */
.lb__stage {
  display: grid; grid-template-columns: 1fr 280px;
  width: calc(100vw - 5rem); height: calc(100vh - 4rem);
  max-width: 1350px; gap: 2rem;
}

/* Left column: image stacked above nav arrows */
.lb__left {
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
}
.lb__img-wrap {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* Arrow row — centered below the painting */
.lb__nav {
  display: flex; flex-direction: row; justify-content: center; align-items: center;
  gap: 1.5rem; padding: 0.65rem 0; flex-shrink: 0;
}
.lb.lb--no-series .lb__nav { display: none; }

.lb__prev, .lb__next {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff;
  width: 3rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; padding: 0;
  border-radius: 2px; opacity: 0; transition: opacity 0.25s, background 0.2s;
}
.lb.lb--show-arrows .lb__prev,
.lb.lb--show-arrows .lb__next { opacity: 1; }
.lb__prev:hover, .lb__next:hover { background: rgba(255,255,255,0.18); }

/* Info panel */
.lb__info { display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 0; min-height: 0; }
.lb__info h2 { font-size: 1.25rem; font-weight: 500; color: #fff; margin: 0 0 0.35rem; }
.lb__medium { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin: 0 0 0.4rem; }
.lb__medium:empty { display: none; }
.lb__meta { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin: 0 0 0.5rem; }
.lb__series { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--art-accent); margin: 0 0 1rem; }
.lb__inquire-wrap { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.lb__inquire {
  display: block; text-align: center;
  padding: 0.65rem 1.4rem; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lb__inquire--original { background: var(--art-accent); color: #0d0b09; }
.lb__inquire--original:hover { background: #e0bb6a; color: #0d0b09; }
.lb__inquire--print { background: transparent; color: var(--art-accent); border: 1px solid rgba(201,168,76,0.45); }
.lb__inquire--print:hover { border-color: var(--art-accent); color: #fff; }

/* Sold badge */
.lb__sold-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.65rem 1.4rem; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}
.lb__sold-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.lb__sold-sub { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-top: 0.15rem; }
.lb__info-text { flex: 1; min-width: 0; }

/* Mobile: single scrollable column */
@media (max-width: 720px) {
  .lb__stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    width: 100%;
    height: calc(100vh - 3rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-content: start;
    gap: 0;
  }
  .lb__img-wrap { height: 40vh; flex-shrink: 0; }
  .lb__nav { padding: 0.5rem 0; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .lb__info {
    flex-direction: column; align-items: flex-start;
    padding: 1.2rem 1.5rem 2.5rem; gap: 0;
    background: rgba(10,8,6,0.95); flex-shrink: 0;
  }
  .lb__info h2 { font-size: 1rem; margin: 0 0 0.3rem; white-space: normal; }
  .lb__meta { font-size: 0.78rem; margin: 0 0 0.2rem; white-space: normal; }
  .lb__series { display: block; }
  .lb__inquire-wrap { flex-direction: column; gap: 0.55rem; margin-top: 1rem; width: 100%; }
  .lb__inquire { font-size: 0.72rem; padding: 0.6rem 1rem; }
}

/* Resurrection III — panoramic painting, show left side in all crop contexts */
img[src*="Resurection-III"],
img[src*="Resurrection-III"] {
  object-position: left center;
}
