/* =============================================================
   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: 56vh; min-height: 380px; 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: 1rem; opacity: 0.75; transition: opacity 0.2s;
}
.sub-hero__back:hover { opacity: 1; }

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

.sub-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); 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(3, 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: 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; }
.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; }

.lb__stage {
  display: grid; grid-template-columns: 1fr 280px;
  width: calc(100vw - 5rem); height: calc(100vh - 4rem);
  max-width: 1350px; gap: 2rem;
}
@media (max-width: 720px) {
  .lb__stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: calc(100vh - 3rem); }
}

.lb__img-wrap {
  position: relative; display: flex;
  align-items: center; justify-content: center; overflow: hidden; min-height: 0;
}
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.lb__prev, .lb__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(10,8,6,0.5); border: none; color: #fff;
  width: 2.8rem; height: 5rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; font-size: 1.3rem; padding: 0;
  border-radius: 2px; opacity: 0; transition: opacity 0.25s, background 0.2s;
}
.lb__prev { left: 0.75rem; }
.lb__next { right: 0.75rem; }
.lb.lb--show-arrows .lb__prev,
.lb.lb--show-arrows .lb__next { opacity: 1; }
.lb__prev:hover, .lb__next:hover { background: rgba(10,8,6,0.88); }
.lb.lb--no-series .lb__prev,
.lb.lb--no-series .lb__next { display: none; }

.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; }

@media (max-width: 720px) {
  .lb__info {
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 0.75rem; padding: 0.75rem 1.2rem;
    background: rgba(10,8,6,0.95); border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0; overflow: hidden;
  }
  .lb__info h2 { font-size: 0.82rem; margin: 0 0 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lb__meta { font-size: 0.7rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lb__series { display: none; }
  .lb__inquire-wrap { flex-direction: row; gap: 0.5rem; margin-top: 0; flex-shrink: 0; }
  .lb__inquire { font-size: 0.62rem; padding: 0.4rem 0.7rem; white-space: nowrap; }
}

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