:root {
  --bg: #f4f5f7;           /* soft off-white page */
  --panel: #ffffff;        /* cards */
  --panel-2: #eef1f4;      /* secondary surfaces / inputs */
  --text: #1f2a33;         /* dark ink */
  --muted: #5a6470;
  --accent: #4c86b4;       /* Prime Cameras brand blue */
  --accent-2: #356b96;     /* darker blue for links/hover on light */
  --danger: #c0392b;
  --border: #e2e5ea;
  --radius: 10px;
}

/* Header & footer stay dark: re-scope the theme variables back to dark values
   so everything inside them (text, borders, links) renders for a dark surface. */
.site-header, .site-footer {
  --panel: #16181d;
  --panel-2: #1d2027;
  --text: #e8e9ec;
  --muted: #9aa0ab;
  --accent-2: #79aad0;
  --border: #2a2e37;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- Header (two rows) --- */
.site-header { background: #0a0b0d; border-bottom: 1px solid var(--border); position: relative; }

/* Row 1: logo · brand name · actions */
.header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 20px; }
.brand { justify-self: start; display: inline-flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.site-title { justify-self: center; color: #fff; font-size: 1.4rem; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
.site-title:hover { text-decoration: none; }
.bp-prime { font-weight: 800; letter-spacing: 1px; }
.bp-sep { font-weight: 300; margin: 0 .42em; color: rgba(255, 255, 255, .8); }
.bp-cameras { font-weight: 300; letter-spacing: 3px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 20px; }

/* Row 2: main navigation (no divider, one continuous header block) */
.header-nav-inner { display: flex; justify-content: center; gap: 34px; padding: 4px 20px 12px; }
.header-nav a { position: relative; color: #fff; font-weight: 400; font-size: .95rem; line-height: 1; }
.header-nav a:hover { color: var(--accent-2); text-decoration: none; }
.header-nav a.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -8px; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

/* Shared header bits */
.nav-cta { color: var(--accent) !important; font-weight: 600; }
.nav-cta:hover { color: var(--accent-2) !important; text-decoration: none; }
.nav-basket { position: relative; display: inline-flex; align-items: center; color: #fff; }
.nav-basket svg { width: 23px; height: 23px; display: block; }
.nav-basket:hover { color: var(--accent-2); }
.basket-count { position: absolute; top: -7px; right: -11px; background: var(--accent); color: #fff; border-radius: 20px; min-width: 17px; height: 17px; padding: 0 4px; font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 0; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* --- Hero (legacy, kept for any other page) --- */
.hero { padding: 48px 0 28px; text-align: center; }
.hero h1 { font-size: 2.4rem; margin: 0 0 10px; }
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* --- Editorial hero --- */
.hero-editorial {
  position: relative;
  min-height: 66vh;                 /* ~2/3 of the viewport */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #0a0b0d; }
.hero-graphic { background: #0b0d11 url('../img/hero-waves-v2.svg') center / cover no-repeat; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,9,11,.55) 0%, rgba(8,9,11,.35) 40%, rgba(8,9,11,.85) 100%);
}
/* Fallback look when there are no featured shots yet */
.hero-plain .hero-bg {
  background: radial-gradient(120% 120% at 50% 0%, #1a2a38 0%, #0d1218 55%, #0a0b0d 100%);
}
.hero-content { position: relative; z-index: 2; padding: 40px 20px; max-width: 960px; }
.hero-content h1 {
  font-size: clamp(1rem, 4.6vw, 3.1rem);
  line-height: 1.15; margin: 0 0 18px; white-space: nowrap;
  color: #fff; font-weight: 700; letter-spacing: -.5px;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #d7dbe0; margin: 0 auto 28px; max-width: 620px;
  text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cta {
  display: inline-block; background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.7); color: #fff;
  font-weight: 700; padding: 14px 30px; border-radius: 40px;
  font-size: 1.02rem; backdrop-filter: blur(3px); transition: all .15s ease;
}
.hero-cta:hover { background: #fff; color: #0e0f12; text-decoration: none; }
.hero-cta.solid { background: var(--accent); border-color: var(--accent); }
.hero-cta.solid:hover { background: #fff; border-color: #fff; color: var(--accent); }
@media (max-width: 520px) {
  .hero-ctas { gap: 10px; }
  .hero-cta { padding: 11px 16px; font-size: .85rem; }
}

/* --- Checkout email capture --- */
.checkout-email { margin: 6px 0 14px; text-align: left; }
.checkout-email label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.checkout-email input { width: 100%; }
.email-note { color: var(--muted); font-size: .78rem; margin: 6px 0 0; }
.email-err { color: #f3b6b1; font-size: .78rem; margin: 6px 0 0; }

/* --- Home sections --- */
.home-section { padding: 64px 20px 64px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 2rem; margin: 0 0 6px; }
.section-head p { color: var(--muted); margin: 0; }
.album-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.section-foot { text-align: center; margin-top: 30px; }

/* How it works (split: collage left, steps right) */
.how-section { padding-top: 56px; }
.how-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Left: overlapping photo collage */
.how-collage { position: relative; height: 400px; }
.collage-photo,
.collage-empty {
  position: absolute; border-radius: 12px; border: 3px solid var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5); object-fit: cover;
}
.collage-1 { top: 0; left: 0; width: 60%; height: 62%; transform: rotate(-3deg); z-index: 1; }
.collage-2 { top: 14%; right: 0; width: 50%; height: 56%; transform: rotate(3.5deg); z-index: 2; }
.collage-3 { bottom: 0; left: 16%; width: 58%; height: 60%; transform: rotate(-1.5deg); z-index: 3; }
.collage-empty { inset: 8% 6%; background: #0b0d11 url('../img/hero-waves-v2.svg') center / cover no-repeat; transform: none; }

/* Right: instructions + step graphics */
.how-steps h2 { font-size: 2rem; margin: 0 0 22px; }
.how-step { display: flex; gap: 18px; align-items: flex-start; padding: 14px 0; }
.how-step-art { flex: 0 0 64px; width: 64px; height: 64px; }
.how-step-art svg { width: 100%; height: 100%; display: block; }
.how-step-text h3 { font-size: 1.12rem; margin: 0 0 4px; }
.how-step-text p { color: var(--muted); font-size: .94rem; margin: 0; line-height: 1.55; }
.how-cta { display: inline-block; margin-top: 24px; background: var(--accent); color: #fff; font-weight: 700; padding: 12px 28px; border-radius: 999px; transition: background .12s ease; }
.how-cta:hover { background: #5e97c4; text-decoration: none; }

@media (max-width: 820px) {
  .how-split { grid-template-columns: 1fr; gap: 40px; }
  .how-collage { height: 320px; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .how-cta { margin-top: 20px; padding: 9px 18px; font-size: .88rem; }
}

/* --- Featured gear / case study --- */
.gear-section {
  margin-top: 56px;
  background: linear-gradient(180deg, #101722 0%, #0c1118 100%);
  border-top: 1px solid var(--border);
  padding: 72px 20px;
}
.gear-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.gear-kicker {
  text-transform: uppercase; letter-spacing: 3px; font-size: .82rem;
  color: var(--accent-2); font-weight: 700; margin: 0 0 14px;
}
.gear-inner h2 { font-size: 2.1rem; margin: 0 0 14px; }
.gear-inner p { color: var(--muted); font-size: 1.05rem; margin: 0 0 26px; }

/* --- Camera store launch popup --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  overflow-y: auto;
  background: rgba(6, 8, 11, .72); backdrop-filter: blur(2px);
  animation: modal-fade .2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  --card-pad-x: 32px;
  position: relative; width: 100%; max-width: 440px; overflow: hidden;
  background: linear-gradient(180deg, #141b24 0%, #0e141c 100%);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 42px var(--card-pad-x) 34px; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: modal-pop .25s ease;
}
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 32px; height: 32px; padding: 0; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: #5a6470;
}
.modal-close:hover { background: #ffffff; color: #1f2a33; }
.modal-card h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin: 0 0 12px; }
.popup-title { font-weight: 800; letter-spacing: -.5px; }
.modal-card p { color: var(--muted); margin: 0 0 22px; }

/* Split popup: scattered photo strip (left 60%) + signup (right 40%), 16:9 */
.modal-card.modal-split {
  display: flex; padding: 0; text-align: left;
  width: 880px; max-width: calc(100vw - 40px); aspect-ratio: 1.62;
}
.popup-media {
  flex: 0 0 50%; height: 100%; overflow: hidden; position: relative;
  background: #0e141c; border-right: 1px solid var(--border);
}
/* Single hero photo */
.popup-hero { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup-content {
  flex: 0 0 50%; min-width: 0; padding: 32px 36px 34px;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; position: relative;
}
/* Error message floats in the empty space below the button so it never
   shifts the centred column when it appears. */
.modal-split .notify-msg { position: absolute; left: 24px; right: 24px; bottom: 12px; margin: 0; }
.popup-content .popup-title {
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-weight: 700; letter-spacing: 0; line-height: 1;
  font-size: clamp(2.3rem, 7vw, 3.1rem); margin: 0 0 4px;
}
.popup-squiggle { width: 150px; height: 11px; display: block; margin: 2px auto 12px; color: var(--accent); }
.popup-content .popup-sub { margin: 0 auto 18px; max-width: 280px; font-size: .95rem; line-height: 1.45; }
.popup-content > p { margin: 0 0 22px; }
.perks {
  list-style: none; margin: 14px 0 26px; padding: 0; width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.perks li {
  flex: 0 0 calc((100% - 20px) / 3);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: #f3f7fb; border: 1px solid #e3ecf4; border-radius: 12px;
  padding: 14px 6px; font-size: .76rem; font-weight: 600; color: var(--text); line-height: 1.2;
}
.perk-icon {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: rgba(76, 134, 180, .12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.perk-icon svg { width: 22px; height: 22px; }
/* Highlight the "First image free" perk in gold so it catches the eye */
.perks li:first-child { background: rgba(200, 146, 15, .10); border-color: rgba(200, 146, 15, .45); }
.perks li:first-child .perk-icon { background: rgba(200, 146, 15, .18); color: #c8920f; }

/* White popup theme (scoped to the popup only) */
.modal-card.modal-split { background: #ffffff; }
.modal-split .popup-media { border-color: #d7dbe1; }
.modal-split .popup-title { color: #1f2a33; }
.modal-split .popup-content > p { color: #5a6470; }
.modal-split .modal-close { color: #5a6470; }
.modal-split .modal-close:hover { color: #1f2a33; }
.modal-split .notify-form input {
  background: transparent; border: none; border-bottom: 2px solid #d4d8dd;
  border-radius: 0; padding: 10px 2px; color: #1f2a33; text-align: center;
}
.modal-split .notify-form input:focus { outline: none; border-bottom-color: var(--accent); }
.modal-split .notify-msg.is-ok { color: #2e7d46; }
.modal-split .notify-msg.is-err { color: #c0392b; }

/* Stack on small screens (a 16:9 popup would be too short to be usable) */
@media (max-width: 600px) {
  .modal-card.modal-split { flex-direction: column; width: 420px; aspect-ratio: auto; }
  .popup-media { display: none; }
  .popup-content { flex: none; padding: 28px 24px 28px; }
  .modal-split .notify-msg { position: static; left: auto; right: auto; bottom: auto; margin: 10px 0 0; }
}
.ct-kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: 3px;
  font-size: .82rem; color: var(--accent-2); font-weight: 700; margin: 0 0 14px;
}
.notify-form { display: flex; flex-direction: column; gap: 10px; }
.notify-form input { width: 100%; max-width: none; flex: none; }
.notify-btn { width: 100%; white-space: nowrap; }
.notify-msg { margin: 16px 0 0; font-size: .95rem; }
.notify-msg.is-ok { color: #b7e6c2; }
.notify-msg.is-err { color: #f3b6b1; }

/* Animated success checkmark (replaces the form after signup) */
.notify-success { text-align: center; animation: modal-fade .25s ease; }
.check-svg { width: 64px; height: 64px; display: block; margin: 0 auto 10px; }
.check-circle {
  fill: none; stroke: var(--accent); stroke-width: 3;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: check-draw .5s ease-out forwards;
}
.check-tick {
  fill: none; stroke: var(--accent); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: check-draw .3s .42s ease-out forwards;
}
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.notify-success p { color: #2e7d46; font-weight: 600; margin: 0; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .modal-card { --card-pad-x: 22px; padding: 38px var(--card-pad-x) 28px; }
  .notify-btn { width: 100%; flex: 1 1 100%; }
}

/* --- Album grid --- */
.album-grid {
  display: grid; gap: 22px; padding: 10px 0 50px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.album-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .12s ease, border-color .12s ease; }
.album-card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.album-thumb { position: relative; aspect-ratio: 3/2; background: var(--panel-2); overflow: hidden; }
.free-badge { position: absolute; top: 10px; left: 10px; z-index: 3; background: #4f9e62; color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Event Galleries cards: details overlaid on the cover */
.gallery-cards .album-card { transition: box-shadow .18s ease, border-color .18s ease; }
.gallery-cards .album-card:hover { transform: none; box-shadow: 0 18px 38px rgba(0,0,0,.5); border-color: var(--accent); }
.gallery-cards .album-thumb img { transition: transform .6s ease; }
.gallery-cards .album-card:hover .album-thumb img { transform: scale(1.03); }

/* Permanent gradient so overlaid text is always legible */
.album-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%); }

/* Always-on info (name + date + count), fades out on hover */
.album-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; transition: opacity .25s ease; }
.album-info h3 { margin: 0 0 2px; color: #fff; font-size: 1.05rem; }
.album-info p { margin: 0; color: rgba(255,255,255,.82); font-size: .85rem; }
.gallery-cards .album-card:hover .album-info { opacity: 0; }

/* "View Gallery →" bottom-right, fades in on hover */
.album-view { position: absolute; right: 16px; bottom: 14px; color: #fff; font-weight: 700; font-size: .95rem;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.gallery-cards .album-card:hover .album-view { opacity: 1; transform: translateY(0); }
.album-thumb-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .9rem; }

/* Coming-soon teaser tile */
.album-card.coming-soon { cursor: default; }
.album-card.coming-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.album-card.coming-soon .album-thumb img { filter: grayscale(1) brightness(.55); }
.album-card.coming-soon .album-thumb-empty { background: linear-gradient(135deg, #3a3f49 0%, #20242c 100%); }
.album-card.coming-soon .album-info { opacity: 1 !important; }
.album-card.coming-soon .album-info h3,
.album-card.coming-soon .album-info p { color: rgba(255, 255, 255, .9); }
.coming-soon-badge {
  display: inline-block;
  background: rgba(15, 18, 24, .8); color: #fff; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: .9rem; padding: 9px 20px; border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .3);
}
.coming-soon-badge-static { display: inline-block; margin: 0 0 16px; }
.coming-soon-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.notify-me-btn {
  pointer-events: auto; background: var(--accent); color: #fff; border: none;
  font-weight: 700; font-size: .82rem; padding: 8px 18px; border-radius: 30px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: background .12s ease;
}
.notify-me-btn:hover { background: #5e97c4; }

/* "Notify me" modal (coming-soon galleries) */
.ns-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto; background: rgba(6, 8, 11, .72); backdrop-filter: blur(2px);
  animation: modal-fade .2s ease;
}
.ns-overlay[hidden] { display: none; }
.ns-card {
  position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 14px;
  padding: 34px 28px 30px; text-align: center; color: #1f2a33;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: modal-pop .25s ease;
}
.ns-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #98a0ab; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 2px 8px; }
.ns-close:hover { color: #1f2a33; }
.ns-card h2 { margin: 0 0 8px; font-size: 1.45rem; }
.ns-card > p:first-of-type { color: #5a6470; margin: 0 0 20px; font-size: .95rem; line-height: 1.5; }
.ns-form { display: flex; flex-direction: column; gap: 20px; }
.ns-form input {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid #d4d8dd;
  border-radius: 0; padding: 10px 2px; color: #1f2a33; text-align: center; font-size: .95rem;
}
.ns-form input:focus { outline: none; border-bottom-color: var(--accent); }
.ns-msg { margin: 12px 0 0; font-size: .9rem; }
.ns-msg.is-err { color: #c0392b; }
.ns-fineprint, .popup-fineprint { margin: 12px 0 0; font-size: .72rem; color: #98a0ab; line-height: 1.4; }
.ns-fineprint a, .popup-fineprint a { color: #98a0ab; text-decoration: underline; }
.ns-fineprint { margin-top: 28px; }
.album-meta { padding: 14px 16px; }
.album-meta h3 { margin: 0 0 4px; color: var(--text); }
.album-meta p { margin: 0; color: var(--muted); font-size: .88rem; }

/* --- Breadcrumbs / heads --- */
.crumbs { color: var(--muted); font-size: .9rem; padding: 22px 0 6px; }
.page-head { padding: 40px 0 24px; text-align: center; }
.page-head h1 { font-size: 2.2rem; margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; }
.search-wrap { max-width: 440px; margin: 6px auto 0; }
.search-wrap input { width: 100%; }

/* Event Galleries hero banner */
.gallery-hero {
  background: radial-gradient(125% 135% at 50% -15%, #2f6b97 0%, #173a52 35%, #0c1219 72%, #0a0b0d 100%);
  border-bottom: 1px solid var(--border);
  min-height: 30vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 44px 0;
}
.gallery-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 8px; color: #fff; }
.gallery-hero-sub { color: rgba(255, 255, 255, .72); margin: 0 0 22px; }
.gallery-hero .search-wrap { margin: 0 auto; }
.gallery-body { padding-top: 26px; }
.album-head { padding: 6px 0 22px; }
.album-head h1 { margin: 0 0 6px; }
.album-date { color: var(--muted); margin: 4px 0; }
.album-hint { color: var(--muted); }

/* --- Photo grid --- */
.photo-grid {
  columns: 4;
  column-gap: 14px;
  padding: 8px 0 50px;
}
.photo-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); margin-bottom: 14px; break-inside: avoid; }
.photo-tile img { width: 100%; height: auto; display: block; background: var(--panel-2); transition: transform .2s ease; }
.photo-tile:hover img { transform: scale(1.04); }
/* Smooth fade-in once loaded (only when JS is active, so images never stay hidden) */
.js .photo-tile img { opacity: 0; transition: opacity .45s ease, transform .2s ease; }
.js .photo-tile img.loaded { opacity: 1; }
@media (max-width: 1000px) { .photo-grid { columns: 3; } }
@media (max-width: 640px)  { .photo-grid { columns: 2; } }
.photo-price { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.7); color: var(--accent-2); font-weight: 700; padding: 4px 10px; border-radius: 20px; font-size: .85rem; }

/* --- Photo detail --- */
.photo-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 10px 0 60px; align-items: start; }
.photo-detail-img { position: relative; }
.photo-detail-img img { width: 100%; border-radius: var(--radius); display: block; }
.photo-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; line-height: 1; padding-bottom: 3px; transition: background .15s ease; }
.photo-nav:hover { background: var(--accent); text-decoration: none; }
.photo-nav.prev { left: 12px; }
.photo-nav.next { right: 12px; }
.photo-buy { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.photo-buy h1 { font-size: 1.4rem; margin: 0 0 8px; }
.price-big { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin: 0 0 14px; }
.photo-sku { color: var(--muted); font-size: .8rem; letter-spacing: .5px; margin: 0 0 16px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.order-item-sku { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .5px; margin: 6px 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.buy-desc { color: var(--muted); font-size: .95rem; }

/* --- Download tiers --- */
.tier { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.tier-highlight { border-color: var(--accent); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tier-name { font-weight: 700; font-size: .95rem; }
.tier-price { font-size: 1.4rem; font-weight: 800; color: var(--accent); white-space: nowrap; }
.tier-price.tier-free { color: #74d089; }
.tier-desc { color: var(--muted); font-size: .85rem; margin: 4px 0 14px; }
.tier-btn { display: block; text-align: center; width: 100%; }
.shot-on { color: var(--muted); font-size: .9rem; }

/* --- EXIF spec list --- */
.exif-specs { list-style: none; margin: 0; padding: 0; }
.exif-specs li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.exif-specs li:last-child { border-bottom: none; }
.exif-specs span { color: var(--muted); }
.exif-specs strong { color: var(--text); font-weight: 600; }

/* --- More from this event --- */
.more-from-event { margin-top: 24px; padding-bottom: 50px; border-top: 1px solid var(--border); padding-top: 34px; }
.more-from-event h2 { font-size: 1.4rem; margin: 0 0 18px; }

/* --- Buttons --- */
.buy-btn { background: var(--accent); color: #fff; border: none; font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; padding: 13px 18px; border-radius: var(--radius); cursor: pointer; width: 100%; transition: background .12s ease; }
.buy-btn:hover:not(:disabled) { background: #5e97c4; }
/* Brief pop + colour flash when the button switches to "View Cart" */
@keyframes buy-btn-pop {
  0%   { transform: scale(1);    background: var(--accent); }
  35%  { transform: scale(1.06); background: #79aad0; }
  100% { transform: scale(1);    background: var(--accent); }
}
.buy-btn-pop { animation: buy-btn-pop .4s ease; }
.buy-btn:disabled { opacity: .5; cursor: not-allowed; }
.buy-btn-link { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.buy-btn-link:hover { text-decoration: none; }
.buy-note { color: var(--muted); font-size: .82rem; text-align: center; margin: 10px 0 0; }
.buy-or { color: var(--muted); font-size: .85rem; text-align: center; margin: 16px 0 10px; position: relative; }
.buy-or::before, .buy-or::after { content: ""; position: absolute; top: 50%; width: 26%; height: 1px; background: var(--border); }
.buy-or::before { left: 0; } .buy-or::after { right: 0; }
.ghost-btn { display: inline-block; border: 1px solid var(--border); color: var(--text); padding: 9px 14px; border-radius: var(--radius); font-weight: 600; font-size: .9rem; }
.ghost-btn:hover { border-color: var(--accent); text-decoration: none; }
.danger-btn { background: transparent; border: 1px solid var(--danger); color: var(--danger); padding: 9px 14px; border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.danger-btn:hover { background: var(--danger); color: #fff; }
.link-danger { background: none; border: none; color: var(--danger); cursor: pointer; padding: 0; font-size: .85rem; }

hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* --- Flash --- */
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-weight: 600; }
.flash-success { background: rgba(96,180,110,.15); border: 1px solid #4f9e62; color: #b7e6c2; }
.flash-error { background: rgba(224,86,75,.15); border: 1px solid var(--danger); color: #f3b6b1; }

/* --- Admin --- */
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 4px; }
.admin-bar h1, .admin-bar h2 { margin: 0; }
.admin-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 18px 0; }
.admin-panel h2 { margin-top: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input[type=text] { flex: 1; min-width: 220px; }
input, select { background: var(--panel-2); border: 1px solid var(--border); color: var(--text); padding: 11px 13px; border-radius: var(--radius); font-size: .95rem; }
input[type=file] { padding: 9px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }

/* Orders page */
.orders-summary { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0 28px; }
.orders-summary div { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; min-width: 150px; }
.orders-summary span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 4px; }
.orders-summary strong { font-size: 1.7rem; color: var(--accent); }
.orders-table td { vertical-align: top; }
.order-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.order-photos img { width: 48px; height: 34px; object-fit: cover; border-radius: 4px; display: block; }
.order-meta { color: var(--muted); font-size: .78rem; margin-top: 4px; word-break: break-all; }

/* Orders: customer download link cell */
.delivery-cell { min-width: 220px; }
.link-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; margin-bottom: 8px; }
.link-badge.is-active { background: rgba(96,180,110,.16); border: 1px solid #4f9e62; color: #b7e6c2; }
.link-badge.is-expired { background: rgba(224,86,75,.16); border: 1px solid var(--danger); color: #f3b6b1; }
.delivery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.delivery-actions form { margin: 0; }
.admin-photo-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 14px; }
.admin-photo { position: relative; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-photo img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--panel-2); display: block; }
.admin-photo-meta { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; font-size: .78rem; }
.admin-photo-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-photo-sku { color: var(--accent-2); font-size: .72rem; letter-spacing: .5px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.admin-photo-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.admin-photo-dl { color: var(--muted); font-size: .72rem; letter-spacing: .3px; }

/* Most-downloaded table */
.downloads-table td { vertical-align: middle; }
.dl-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; display: block; }
.dl-sku { color: var(--accent-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }

/* Admin preview lightbox */
.admin-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 30px; }
.admin-lightbox[hidden] { display: none; }
.admin-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 12px 50px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 16px; right: 24px; background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }
.link-feature { background: none; border: none; color: var(--accent-2); cursor: pointer; padding: 0; font-size: .85rem; font-weight: 600; }
.featured-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.cover-badge { position: absolute; top: 8px; right: 8px; z-index: 2; background: #2a2e37; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.link-muted { color: var(--muted); font-size: .85rem; }

/* Gallery type (free/paid) admin control */
.gallery-type-badge { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-left: 8px; vertical-align: middle; }
.gallery-type-badge.is-free { background: rgba(79,158,98,.18); color: #8fe0a3; border: 1px solid #4f9e62; }
.gallery-type-badge.is-paid { background: rgba(76,134,180,.18); color: var(--accent-2); border: 1px solid var(--accent); }
.mode-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; max-width: 620px; }
.mode-opt input { margin-top: 3px; }
.price-row { margin: 6px 0 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.price-row input { width: 100px; }

/* --- Upload progress --- */
.upload-progress { margin-top: 16px; }
.upload-bar { width: 100%; height: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.upload-bar-fill { width: 0; height: 100%; background: var(--accent); border-radius: 20px; transition: width .2s ease; }
.upload-bar-fill.processing { animation: upload-pulse 1.2s ease-in-out infinite; }
@keyframes upload-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.upload-status { color: var(--accent-2); font-size: .88rem; font-weight: 600; margin: 10px 0 0; }
.admin-login { max-width: 380px; margin: 60px auto; background: var(--panel); border: 1px solid var(--border); padding: 30px; border-radius: var(--radius); }
.admin-login form { display: flex; flex-direction: column; gap: 12px; }
.admin-login label { color: var(--muted); font-size: .9rem; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); background: #0a0b0d; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; padding: 48px 20px 40px; }
.footer-brand { max-width: 280px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo { height: 40px; width: auto; display: block; }
.footer-name { color: #fff; font-size: 1.2rem; text-transform: uppercase; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--muted); display: inline-flex; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 21px; height: 21px; display: block; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom p { color: var(--muted); font-size: .8rem; margin: 0; text-align: center; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.empty { color: var(--muted); padding: 30px 0; }

/* --- Shop under construction --- */
.soon-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding: 50px 20px 72px; }
.soon-art { width: 100%; max-width: 380px; height: auto; margin: 0 auto 12px; display: block; }
.soon-wrap h1 { font-size: 2rem; margin: 6px 0 12px; }
.soon-wrap p { color: var(--muted); margin: 0 0 26px; line-height: 1.6; }

/* --- Legal / info pages --- */
.legal-page { max-width: 720px; margin: 0 auto; padding: 40px 0 60px; }
.legal-page h1 { margin: 0 0 6px; }
.legal-page h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.6; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-updated { font-size: .82rem; margin-top: 0; }
.legal-page .ghost-btn { margin-top: 6px; }

/* --- Mini-cart drawer --- */
.cart-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; transition: visibility 0s linear .28s; }
.cart-drawer.open { visibility: visible; transition: visibility 0s; }
.cart-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s ease; }
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }
.cart-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: 390px; max-width: 90vw; background: var(--panel); border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease; box-shadow: -10px 0 40px rgba(0,0,0,.4); }
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cart-drawer-head h2 { margin: 0; font-size: 1.25rem; }
.cart-drawer-close { background: none; border: none; color: var(--muted); font-size: 2rem; line-height: 1; cursor: pointer; padding: 0; }
.cart-drawer-close:hover { color: #fff; }
.cart-drawer-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 4px 20px; }
.cart-drawer-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-drawer-item img { width: 60px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.cdi-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cdi-gallery { color: var(--text); font-weight: 600; font-size: .92rem; }
.cdi-gallery:hover { color: var(--accent-2); text-decoration: none; }
.cdi-sku { color: var(--muted); font-size: .72rem; letter-spacing: .5px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.cdi-price { color: var(--accent-2); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.cdi-remove { background: none; border: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.cdi-remove:hover { color: var(--danger); }
.cart-drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-drawer-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; font-size: .92rem; }
.cart-drawer-total strong { color: var(--accent-2); }
.cart-drawer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cart-continue { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .88rem; padding: 0; font-family: inherit; text-decoration: underline; }
.cart-continue:hover { color: #fff; }
.cart-or { color: var(--muted); font-size: .85rem; }
.cart-drawer .proceed-btn { display: inline-block; width: auto; padding: 10px 18px; font-size: .9rem; text-decoration: none; }
.cart-drawer .proceed-btn:hover { text-decoration: none; }
.cart-drawer-empty { color: var(--muted); text-align: center; padding: 50px 24px; }
.cart-drawer-empty p { margin: 0 0 18px; }

/* --- Basket --- */
.cart { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; padding-bottom: 60px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.cart-thumb img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.cart-info { display: flex; flex-direction: column; }
.cart-info a { color: var(--text); font-weight: 600; }
.cart-sub { color: var(--muted); font-size: .82rem; }
.cart-price { color: var(--accent-2); font-weight: 700; }
.cart-summary { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 100px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.cart-total strong { font-size: 1.5rem; color: var(--accent); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: .9rem; }
.promo-form { display: flex; gap: 8px; margin-bottom: 16px; }
.promo-form input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-form .ghost-btn { white-space: nowrap; }
.promo-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(96, 180, 110, .12); border: 1px solid #4f9e62; color: var(--text);
  border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: .9rem;
}
.cart-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: .95rem; }
.cart-discount { color: #2e7d46; font-weight: 600; }
.cart-grand { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 1.1rem; }
.cart-grand strong { font-size: 1.5rem; color: var(--accent); }

/* --- Order receipt --- */
.success-card.wide { max-width: 620px; }
.order-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 22px 0; }
.order-item { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.order-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 8px; }
.order-item .ghost-btn { display: block; text-align: center; }

/* --- Success page --- */
.success-wrap { display: flex; justify-content: center; padding: 40px 0 60px; }
.success-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width: 480px; text-align: center; }
.success-tick { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 16px; border-radius: 50%; background: rgba(96,180,110,.18); color: #74d089; font-size: 2rem; font-weight: 800; }
.success-card h1 { font-size: 1.5rem; margin: 0 0 8px; }
.success-sub { color: var(--muted); margin: 0 0 22px; }
.download-btn { display: block; text-align: center; }
.download-btn:hover { text-decoration: none; }
.success-thumb { margin: 22px 0 0; }
.success-thumb img { max-width: 220px; border-radius: var(--radius); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .album-grid.three-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .photo-detail { grid-template-columns: 1fr; }
  .photo-buy { position: static; }
  .cart { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .hero h1 { font-size: 1.8rem; }
  .album-grid.three-col { grid-template-columns: 1fr; }
  .hero-editorial { min-height: 45vh; }
  .hero-content h1 { margin-bottom: 32px; }
  .brand-logo { height: 42px; }
  .site-title { font-size: 1.1rem; letter-spacing: 1.5px; }

  /* Single row on mobile: collapse the nav row into a tap-to-open dropdown */
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-nav {
    position: absolute; top: 100%; right: 6px; z-index: 50;
    border-top: none; border: 1px solid var(--border); border-radius: 10px;
    background: #0a0b0d; box-shadow: 0 12px 30px rgba(0,0,0,.45);
    min-width: 210px; display: none;
  }
  .header-nav.open { display: block; }
  .header-nav-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 8px; }
  .header-nav a { padding: 11px 14px; width: 100%; font-size: 1rem; }
  .header-nav a.active::after { display: none; }
  .header-nav a.active { color: var(--accent-2); }
}
@media (max-width: 420px) {
  .site-title { display: none; }
}
