/* Alchemy Exhibition — hand-rebuilt static site
   Fonts: Oswald (headings) + Open Sans (body), matching original Divi build */

:root {
  --amber: #e09900;
  --amber-light: #fdb467;
  --charcoal: #1e1e1c;
  --charcoal-soft: #282624;
  --grey: #666;
  --grey-light: #999;
  --off-white: #f7f5f2;
  --white: #fff;
  --font-heading: "Oswald", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--charcoal); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
header#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 30, 28, 0.95);
  backdrop-filter: blur(6px);
}

header#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-logo {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-logo:hover { color: var(--amber-light); }

nav#main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav#main-nav a {
  color: var(--white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
nav#main-nav a:hover,
nav#main-nav a[aria-current="page"] { color: var(--amber-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  nav#main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    padding: 8px 24px 20px;
  }
  nav#main-nav ul.open { display: flex; }
  nav#main-nav li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 100%);
}
.hero-inner {
  position: relative;
  padding: 60px 24px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.hero h1 { color: var(--white); margin-bottom: 0.2em; }
.hero p.tagline {
  font-size: 1.15rem;
  max-width: 640px;
  color: rgba(255,255,255,0.9);
}

/* ---------- Sections ---------- */
section {
  padding: 70px 0;
}
section.alt { background: var(--off-white); }
section.dark { background: var(--charcoal); color: var(--white); }
section.dark h2, section.dark h1 { color: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 2em;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--amber);
  margin: 14px auto 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  border-radius: 2px;
  margin-top: 14px;
}
.btn:hover { background: var(--amber); color: var(--white); }

/* ---------- Artist cards ---------- */
.artist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .artist-grid { grid-template-columns: 1fr; }
}
.artist-card { text-align: center; }
.artist-card img {
  border-radius: 4px;
  margin: 0 auto 20px;
  max-height: 340px;
  object-fit: cover;
}
.social { margin-top: 14px; }
.social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-light);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin: 0 6px 0 0;
  color: var(--charcoal);
}
.social a svg { width: 16px; height: 16px; fill: currentColor; }
.social a:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Video embed ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.testimonial .quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}
.testimonial p { font-size: 1.3rem; font-style: italic; color: var(--charcoal); }

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.gallery-grid img:hover { opacity: 0.85; }

/* keeps the sticky header from covering the top row when a paginated
   gallery scrolls itself into view after Prev/Next */
.gallery-grid[data-paginate] { scroll-margin-top: 100px; }

.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.gallery-pagination .page-status {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  min-width: 90px;
  text-align: center;
}
.gallery-pagination button {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  background: none;
  border: 2px solid var(--amber);
  color: var(--amber);
  padding: 8px 18px;
  border-radius: 2px;
  cursor: pointer;
}
.gallery-pagination button:hover:not(:disabled) { background: var(--amber); color: var(--white); }
.gallery-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--grey-light);
  color: var(--grey-light);
}

/* ---------- Poem material sections ---------- */
.material-block {
  padding: 60px 0;
  border-top: 1px solid #eee;
}
.material-block .material-label {
  font-family: var(--font-heading);
  color: var(--amber);
  letter-spacing: 0.25em;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.material-block h2 { margin-bottom: 24px; }
.material-block audio {
  width: 100%;
  margin-top: 18px;
  max-width: 640px;
}

/* ---------- Contact form ---------- */
form.contact-form {
  max-width: 560px;
  margin: 0 auto;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
}
form.contact-form textarea { min-height: 120px; resize: vertical; }
form.contact-form button {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--amber);
  color: var(--white);
  border: none;
  padding: 12px 34px;
  border-radius: 2px;
  cursor: pointer;
}
form.contact-form button:hover { background: var(--charcoal); }

/* ---------- Places / long-form text ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 1.2em; }

/* ---------- 360 tour ---------- */
#panorama {
  width: 100%;
  height: 630px;
  max-height: 70vh;
  border-radius: 4px;
  background: #000;
}
@media (max-width: 700px) {
  #panorama { height: 400px; }
}
.tour-note {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--grey);
}

/* pannellum info hotspot labels — poem/artwork titles dotted through the tour */
.tour-label-hotspot {
  background: rgba(224, 153, 0, 0.85);
  border: 2px solid #fff;
  border-radius: 50%;
  width: 16px !important;
  height: 16px !important;
}
.tour-label-hotspot:hover { background: var(--amber-light); }

/* hotspots with an artwork image or audio clip behind them — slightly larger, pulses to invite a click */
.tour-media-hotspot {
  background: rgba(232, 31, 99, 0.9);
  border: 2px solid #fff;
  border-radius: 50%;
  width: 22px !important;
  height: 22px !important;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(232, 31, 99, 0.6);
  animation: tour-media-pulse 2.4s infinite;
}
.tour-media-hotspot:hover { background: #fff; border-color: var(--pink, #e81f63); }
@keyframes tour-media-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 31, 99, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(232, 31, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 31, 99, 0); }
}

/* ---------- Asymmetric split layout (About/Film, Rebecca, Heather) ---------- */
.split-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}
.split-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
}
.bg-panel {
  background-size: cover;
  background-position: center;
  min-height: 420px;
  border-radius: 4px;
}
@media (max-width: 800px) {
  .split-1-2, .split-2-1 {
    grid-template-columns: 1fr;
  }
  .bg-panel { min-height: 280px; order: -1; }
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-stage {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox-stage audio { width: min(90vw, 480px); }
.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  padding: 0 60px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 10px 18px;
}
.lightbox-prev { left: 6px; }
.lightbox-next { right: 6px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--amber-light); }

/* ---------- Footer ---------- */
footer#main-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 26px 0;
  font-size: 0.9rem;
}
footer#main-footer a { color: var(--amber-light); }
