/* TAC Photo Landing — page styles, adapted from the prototype.
   Scoped: tokens live on .tac-pl (not :root), generic element selectors are
   prefixed, and editor-state classes ride the .tac-pl root instead of body.
   Page-specific class names (.pslot, .bigsearch, .coll-card…) are left
   unprefixed; audit against the active theme if a collision ever appears. */
/* ============================================================
   TAC PHOTOS — LANDING PAGE PROTOTYPE
   Brand: The Air Current. Archivo heads, Source Serif standfirst,
   JetBrains Mono metadata. Blue #1870ff = navigation/axis,
   Gold #feab40 = commerce/scope. Dark bg #0d1117.
   ============================================================ */
.tac-pl,.cta {
  /* TAC Brand Colors */
  --tac-blue-dark: #1976D2;
  --tac-navy: #1B365D;
  --tac-black: #1A1A1A;
  --tac-white: #FFFFFF;
  
  /* Secondary Colors */
  --tac-purple: #6B2D7B;
  --tac-berry: #A13D63;
  --tac-orange: #E94E35;
  --tac-yellow: #F5A623;
  
  /* Grays */
  --tac-gray-dark: #5C5C5C;
  --tac-gray: #8C8C8C;
  --tac-steel: #6B7280;
  --tac-gray-light: #BEBEBE;
  --tac-gray-lighter: #E8E8E8;
  --tac-gray-lightest: #F5F5F5;
  --tac-border: #D1D5DB;
  
  /* Functional colors */
  --tac-success: #2D9A5D;
  --tac-error: #E94E35;
  
  /* Typography */
  /*--font-display: 'DM Sans', -apple-system, sans-serif;*/
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  /*--font-body: 'DM Sans', -apple-system, sans-serif;*/
  --font-body: 'elza', -apple-system, 'Segoe UI', sans-serif
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 54, 93, 0.08);
  --shadow-md: 0 4px 12px rgba(27, 54, 93, 0.12);
  --shadow-lg: 0 12px 40px rgba(27, 54, 93, 0.2);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);


  --tac-blue: #1870ff;
  --tac-blue-deep: #002e8d;
  --tac-blue-mid: #0059eb;
  --tac-gold: #feab40;
  --tac-red: #f35841;

  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --bg-3: #eeeeee;
  --ink: #131313;
  --ink-2: #5c5c5c;
  --ink-3: #959595;
  --line: #e2e4e8;
  --card: #ffffff;
  --overlay-grad: linear-gradient(180deg, rgba(20,20,20,0) 35%, rgba(20,20,20,.88) 100%);
  --shadow: 0 1px 3px rgba(20,20,20,.08), 0 8px 28px rgba(20,20,20,.10);
  --shadow-lg: 0 2px 6px rgba(20,20,20,.12), 0 18px 50px rgba(20,20,20,.18);
  --cta-bg: radial-gradient(120% 160% at 15% 0%, #0b3aa5 0%, #002e8d 45%, #001a52 100%);

  /* The masthead is theme-independent: always dark gray, in light and dark
     mode alike. Only the page body switches. These are deliberately NOT
     redefined under [data-theme] — that constancy is the point. */
  --header-bg: #1c1c1c;
  --header-ink: #f2f2f2;
  --header-ink-2: #a8a8a8;
  --header-line: #363636;
  --header-surface: #262626;

  --ink-light: #eee;
}
.tac-pl[data-theme="dark"] {
  --bg: #282828;          /* body surface — matches TAC's own dark gray */
  --bg-2: #222222;        /* recessed bands (search) */
  --bg-3: #333333;        /* image placeholders */
  --ink: #eeeeee;
  --ink-2: #b3b3b3;
  --ink-3: #8c8c8c;
  --line: #3a3a3a;
  --card: #2e2e2e;        /* lifted surfaces */
  --shadow: 0 1px 3px rgba(0,0,0,.5), 0 8px 28px rgba(0,0,0,.45);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.55), 0 18px 50px rgba(0,0,0,.55);
}
.tac-pl, .tac-pl * { margin:0; padding:0; box-sizing:border-box; }
/* Anchor targets must clear the sticky topbar, or a jump lands with the
   section heading hidden underneath it. (The curate bar scrolls away, so
   only the topbar's own height counts here.) */
.tac-pl { --topbar-h:65px; }
#search, #collections, #latest, #license {
  scroll-margin-top: calc(var(--topbar-h) + 18px);
}
.tac-pl {
  font-family:'Archivo',system-ui,sans-serif;
  background:var(--bg); color:var(--ink);
  -webkit-font-smoothing:antialiased;
  transition: background .25s ease, color .25s ease;
  padding-top: 69px;
}

@media only screen and (min-width: 860px) {
  .admin-bar .tac-pl {
    padding-top: 69px;
  }
}

@media only screen and (max-width: 859px) {
  .tac-pl {
    padding-top: 0;
  }
}

#tacPl .tac-pl-editorbar,
#tacPl .hero-section,
#tacPl #latest,
#tacPl #collections,
#tacPl #license,
#license {
  padding-left: 30px;
  padding-right: 30px;
}

#tacPl.hide {
  display: none;
}
#tacPl #latest {
  padding-bottom: 45px;
}


.tac-pl img { display:block; }
.tac-pl a { color:inherit; text-decoration:none; }
.tac-pl button { font-family:inherit; cursor:pointer; }

.mono { 
  /*font-family:'JetBrains Mono',monospace; */
  font-family: 'Archivo', sans-serif;
}

/* ---------- Top bar ---------- */
/* logotype ships white — the masthead is dark in both themes, so never invert */
.iconbtn {
  width:36px; height:36px; border-radius:8px; border-radius: 6px; border:1px solid var(--header-line);
  background:var(--header-surface); color:var(--header-ink-2); display:grid; place-items:center;
  transition:all .15s;
}
.iconbtn:hover { color:var(--tac-blue); border-color:var(--tac-blue); }
.curate-toggle,.my-photos, .feeling-lucky-btn {
  display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase;
  border:1px solid var(--line);  color:var(--ink);
  padding:9px 14px; border-radius:8px; border-radius: 6px; transition:all .15s;
}
.curate-toggle.on { background:var(--tac-gold); border-color:var(--tac-gold); color:#131313; }

/* ---------- Curate bar ---------- */
.curatebar {
  display:none; background:linear-gradient(90deg, #fff7ea, #fffdf8);
  border-bottom:1px solid #f2ddb8; font-size:13px;
}
.tac-pl[data-theme="dark"] .curatebar { background:linear-gradient(90deg,#241b0c,#1a150c); border-color:#3a2f18; }
.tac-pl.curating .curatebar { display:block; }
.curatebar-inner { display:flex; align-items:center; gap:14px; padding:10px 0; flex-wrap:wrap; }
.curatebar .hint { color:var(--ink-2); }
.curatebar .hint b { color:var(--ink); }
.preset-group { display:flex; gap:6px; margin-left:auto; }
.preset-btn {
  font-size:12px; font-weight:700; padding:7px 12px; border-radius:7px; border-radius: 6px;
  border:1px solid var(--line); background:var(--card); color:var(--ink-2);
}
.preset-btn.active { background:var(--tac-blue); border-color:var(--tac-blue); color:#fff; }
.curatebar .util-btn {
  font-size:12px; font-weight:600; padding:7px 12px; border-radius:7px; border-radius: 6px;
  border:1px solid var(--line); background:var(--card); color:var(--ink-2);
}
.curatebar .util-btn:hover { color:var(--tac-blue); border-color:var(--tac-blue); }

/* ---------- Hero / front page grid ---------- */
.hero-section { padding:clamp(18px,2.5vw,30px) 0 10px; }

.hero-section h1 {
  color: var(--ink);
  margin: 0 auto 30px auto;
  text-align: center;
  margin: 0;
}

@media screen and (max-width: 1192px) {
  .hero-section h1 {
    font-size: 27px;
  }
}

@media screen and (max-width: 1078px) {
  .hero-section h1 {
    font-size: 22px;
  }
}

/*.hero-section .sec-head {
  padding-top: 45px;
}*/

@media screen and (max-width: 860px) {
  .hero-section .sec-head {
    flex-wrap: wrap;
    padding-top: 15px;
  }
  .hero-section .sec-head .curate-toggles {
    order: -1;
    width: 100%;
    flex-wrap: wrap;
  }
  .hero-section .sec-head .curate-toggles button {
    margin-bottom: 20px;
  }
}

.front-grid { display:grid; gap:14px; }
.front-grid.preset-frontpage {
  grid-template-columns:repeat(4,1fr);
  grid-template-areas:"lead lead lead lead" "s1 s2 s3 s4";
}
.front-grid.preset-frontpage .slot-0 { grid-area:lead; }
.front-grid.preset-split {
  grid-template-columns:1fr 1fr;
  grid-template-areas:"lead s1";
}
.front-grid.preset-split .slot-0 { grid-area:lead; }
.front-grid.preset-split .slot-1 { grid-area:s1; }
.front-grid.preset-mosaic {
  grid-template-columns:repeat(6,1fr);
  grid-template-areas:"lead lead lead lead s1 s1" "lead lead lead lead s2 s2" "s3 s3 s4 s4 s5 s5";
}
.front-grid.preset-mosaic .slot-0 { grid-area:lead; }
.front-grid.preset-mosaic .slot-1 { grid-area:s1; }
.front-grid.preset-mosaic .slot-2 { grid-area:s2; }
.front-grid.preset-mosaic .slot-3 { grid-area:s3; }
.front-grid.preset-mosaic .slot-4 { grid-area:s4; }
.front-grid.preset-mosaic .slot-5 { grid-area:s5; }

.pslot {
  position:relative; border-radius:10px; border-radius: 6px; overflow:hidden; background:var(--bg-3);
  box-shadow:var(--shadow); aspect-ratio:3/2; cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
}
/*.pslot:hover { 
  transform:translateY(-2px); 
  box-shadow:var(--shadow-lg); 
}*/
.preset-frontpage .slot-0, .preset-split .pslot, .preset-mosaic .slot-0 { aspect-ratio:16/9; }
/* MOSAIC: the lead spans rows 1–2, so let ITS ratio set their height and have
   the right-hand pair stretch to fill. Giving those two a 3/2 ratio of their
   own made the column compute taller than the lead and left dead space under
   it. Their images are object-fit:cover, so they just crop to the new box. */
.preset-mosaic .slot-1, .preset-mosaic .slot-2 { aspect-ratio:auto; min-height:0; }
/* absolutely positioned so the photo never contributes intrinsic height —
   the slot's box is set by its aspect-ratio, or by the grid row when it has
   none (the mosaic's right-hand pair, which stretches to the lead) */
.pslot img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.pslot .ov {
  position:absolute; inset:0; background:var(--overlay-grad);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:clamp(12px,2vw,26px); color:#fff;
}
.pslot .ov .tag {
  font-size:10.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--tac-gold); margin-bottom:6px;
}
.pslot .ov h2 {
  font-weight:700; letter-spacing:-.015em; line-height:1.15;
  font-size:clamp(15px,1.6vw,26px);
  text-shadow:0 1px 12px rgba(0,0,0,.4);
  color: var(--ink-light);
}
.pslot.lead .ov h2 { font-size:clamp(22px,3vw,42px); font-weight:800; max-width:18em; color: var(--ink-light); }
.pslot .ov .subhed {
  /*font-family:'Source Serif 4',serif; font-size:clamp(12px,1.1vw,16px);*/
  font-family: elza, -apple-system, 'Segoe UI', sans-serif;
  color:rgba(255,255,255,.82); margin-top:7px; line-height:1.35;
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}
.pslot.lead .ov .subhed { font-size:clamp(14px,1.4vw,19px); max-width:38em; }
.pslot .ov .meta-row {
  margin-top:9px; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.pslot .ov .exif {
  /*font-family:'JetBrains Mono',monospace; */
  font-family: 'Archivo', sans-serif;
  font-size:10px;
  background:rgba(13,17,23,.55); border:1px solid rgba(255,255,255,.18);
  padding:3px 8px; border-radius:5px; border-radius: 6px;
}
/* top-right stack: the related-story card sits above the hover actions so the
   two can't collide (both used to claim top:12px/right:12px) */
.pslot .slot-tr, .coll-card .slot-tr {
  position:absolute; top:12px; right:12px; z-index:4;
  display:flex; flex-direction:column; align-items:flex-end; gap:8px;
  max-width:min(64%, 300px);
}
.pslot .actions, .coll-card .actions { display:flex; gap:8px; opacity:0; transform:translateY(-4px); transition:all .2s; }
.pslot:hover .actions, .coll-card:hover .actions { opacity:1; transform:none; }

/* related story — overlay card (desktop) */
.related-card {
  display:block; text-align:left; max-width:270px;
  background:rgba(20,20,20,.72); backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.18); border-left:3px solid var(--tac-gold);
  border-radius:8px; border-radius: 6px; padding:11px 13px; color:#fff;
  box-shadow:0 4px 18px rgba(0,0,0,.35); transition:all .18s;
}
.related-card:hover { background:rgba(20,20,20,.88); border-color:rgba(255,255,255,.34); border-left-color:var(--tac-gold); transform:translateY(-1px); }
.rel-kicker {
  display:block; font-size:9px; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase; color:var(--tac-gold); margin-bottom:5px;
}
.rel-hed {
  display:block; font-size:13px; font-weight:600; line-height:1.3; letter-spacing:-.01em;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  color: var(--ink-light);
}
/* related story — text link (mobile) */
.related-mobile { display:none; }
/* Switch at the single-column breakpoint, not before: above it the grid still
   uses named template areas, and an extra unnamed child would be auto-placed
   into an implicit row at the bottom rather than under the lead. */
@media (max-width:640px){
  .pslot .related-card { display:none; }
  /* block flow, not flex: the arrow trails the last word of the headline
     instead of being pushed onto a line of its own */
  .related-mobile {
    display:block; grid-column:1 / -1; padding:12px 14px;
    background:var(--bg-2); border:1px solid var(--line);
    border-left:3px solid var(--tac-gold); border-radius:8px; border-radius: 6px;
  }
  .related-mobile .rel-kicker { display:block; margin-bottom:5px; }
  .related-mobile .rel-hed { display:inline; font-size:14px; color:var(--ink); }
  .related-mobile .rel-arrow { display:inline; margin-left:7px; color:var(--tac-blue); font-weight:800; }
  .related-mobile:hover .rel-hed { color:var(--tac-blue); }
}
.chip-btn {
  font-size:11.5px; font-weight:700; padding:7px 12px; border-radius:7px; border-radius: 6px; border:0;
  background:rgba(255,255,255,.94); color:#131313; box-shadow:0 2px 10px rgba(0,0,0,.25);
}
.chip-btn.gold { background:var(--tac-gold); }
/* Licensable badge rides the large frames only: the lead in Front Page and
   Mosaic, and both slots in Split (where both are lead-sized). On the small
   secondaries it just crowds the frame. */
.lic-badge { display:none; }
.pslot.lead .lic-badge,
.preset-split .pslot .lic-badge { display:flex; }
.lic-badge {
  position:absolute; top:12px; left:12px;
  align-items:center; gap:5px;
  font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  color:#fff; background:rgba(13,17,23,.55); border:1px solid rgba(255,255,255,.22);
  padding:4px 9px; border-radius:20px; border-radius: 6px; backdrop-filter:blur(4px);
}
.lic-badge .dot { width:6px; height:6px; border-radius:50%; background:#5fe8a1; }

.slot-blank {
  position:absolute; inset:0; display:grid; place-items:center;
  color:var(--ink-3); font-size:13px; font-style:italic; padding:16px; text-align:center;
}
.hed-arrow { color:var(--tac-gold); font-weight:800; }

/* lead carousel: stacked crossfading frames + dots */
.pslot img.car-img { opacity:0; transition:opacity .9s ease; }
.pslot img.car-img.active { opacity:1; }
.car-dots {
  position:absolute; right:16px; bottom:14px; display:flex; gap:7px; z-index:3;
}
.car-dot {
  width:8px; height:8px; border-radius:50%; border:0; padding:0; cursor:pointer;
  background:rgba(255,255,255,.45); transition:all .2s;
}
.car-dot:hover { background:rgba(255,255,255,.8); }
.car-dot.active { background:var(--tac-gold); transform:scale(1.25); }

/* curate mode slot dressing */
.tac-pl.curating .pslot { outline:2px dashed color-mix(in srgb, var(--tac-gold) 70%, transparent); outline-offset:3px; }
.tac-pl.curating .pslot.dragover { outline:3px solid var(--tac-blue); outline-offset:3px; }
.tac-pl.curating .pslot .ov { pointer-events:none; }
.drop-veil {
  position:absolute; inset:0; display:none; place-items:center; text-align:center;
  background:color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter:blur(2px);
  color:var(--ink-2); font-size:13px; font-weight:600; padding:18px;
}
.tac-pl.curating .pslot:hover .drop-veil, .tac-pl.curating .pslot.dragover .drop-veil { display:grid; }
.drop-veil .inner b { color:var(--tac-blue); }
.drop-veil .sub { margin-top:8px; font-size:11.5px; font-weight:500; color:var(--ink-3); }

/* ---------- Slot editor modal ---------- */
.editor-back {
  position:fixed; inset:0; z-index:80; display:none; place-items:center;
  background:rgba(13,17,23,.6); backdrop-filter:blur(3px);
}
.editor-back.open { display:grid; }
.editor {
  width:min(560px, calc(100vw - 32px)); background:var(--card); color:var(--ink);
  border:1px solid var(--line); border-radius:14px; border-radius: 6px; box-shadow:var(--shadow-lg);
  padding:24px; display:grid; gap:16px;
  max-height: 85vh;
  overflow-y: scroll;
}
.editor-inner {
  padding-bottom: 50px;
}
/* grid items default to min-width:auto, so a wide child (the cover strip's
   15 fixed columns) would blow the modal's track out past its fixed width
   and drag every input along with it */
.editor > * { min-width:0; }
.editor h4 { font-size:16px; font-weight:800; letter-spacing:-.01em; display:flex; align-items:center; gap:10px; }
.editor h4 .mono { font-size:10px; color:var(--tac-blue); background:color-mix(in srgb, var(--tac-blue) 12%, transparent); padding:3px 8px; border-radius:5px; border-radius: 6px; }
.editor .thumb { border-radius:9px; border-radius: 6px; overflow:hidden; aspect-ratio:3/1; }
.editor .thumb img { width:100%; height:100%; object-fit:cover; }
.editor label { display:grid; gap:6px; font-size:12px; font-weight:700; color:var(--ink-2); }
.editor input[type=text] {
  font-family:inherit; font-size:14px; padding:11px 13px; border-radius:8px; border-radius: 6px;
  border:1px solid var(--line); background:var(--bg-2); color:var(--ink); outline:none; width:100%;
}
.editor input[type=text].mono-in { 

  /*font-family:'JetBrains Mono',monospace; */
font-family: 'Archivo', sans-serif;
font-size:11.5px; }
.editor input[type=text]:focus { border-color:var(--tac-blue); }
.editor .check { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:600; color:var(--ink); cursor:pointer; }
.editor .check input { width:16px; height:16px; accent-color:var(--tac-blue); }
.editor .row { display:flex; gap:10px; justify-content:flex-end; }
.editor .row .util-btn { padding:10px 18px; font-size:13px; }
.editor .row .primary {
  background:var(--tac-blue); border-color:var(--tac-blue); color:#fff;
  font-weight:700; padding:10px 22px; font-size:13px; border-radius:7px; border-radius: 6px; border:1px solid var(--tac-blue);
}
.slot-num {
  position:absolute; bottom:10px; right:12px; display:none;
  font-family:'JetBrains Mono',monospace; 

  font-size:10px; color:#fff;
  background:var(--tac-blue); padding:2px 7px; border-radius:4px; border-radius: 6px;
}
.tac-pl.curating .slot-num { display:block; }

/* ---------- Search band ---------- */
/* Master search row: left-justified bar, editor's note + Feeling lucky
   right-aligned on the same line. Results render below the row and push
   the front page down. */
#search { position:relative; z-index:5; margin-bottom: 22px; }
.search-row { display:flex; align-items:center; gap:18px; flex-wrap:wrap; justify-content: space-between; }
/* Fixed comfortable width, shrinkable but never growing: bar + Feeling lucky
   + the purpose note must share one line across the whole desktop range.
   Crucially the row is NOWRAP on desktop — with wrap enabled, flexbox wraps
   the note to a second line before it ever asks the bar to shrink. */
.search-row .bigsearch-wrap { flex:0 1 560px; min-width:0; }
@media (min-width:1001px){
  .search-row { flex-wrap:nowrap; }
  .search-row .bigsearch-wrap { min-width:280px; }
}
@media (min-width: 1323px) {
  .search-row .bigsearch-wrap { flex: 0 1 650px; }
}
@media (min-width: 1495px) {
  .search-row .bigsearch-wrap { flex: 0 1 860px; }
}
/* Feeling lucky rides the bar's right shoulder */
/*#feelingLucky {
  display:inline-flex; align-items:center; gap:7px; flex:none;
  font-size:15px; font-weight:700; color:var(--tac-blue); cursor:pointer;
  white-space:nowrap;
}*/
/*#feelingLucky:hover { text-decoration:underline; }*/
/* the page's purpose statement, hard right */
.meta-note {
  margin-left:auto; font-size:18.5px; font-weight:600; color:var(--ink-2);
  white-space:nowrap;
}
@media (max-width:1000px){
  .search-row .bigsearch-wrap { flex-basis:100%; max-width:none; }
  /*#feelingLucky { font-size:13.5px; }*/
  .meta-note { font-size:15.5px; }   /* both wrap under the bar; note stays hard right */
}
/* The in-bar furniture yields before the input does — a search box you can't
   type into is worthless. The stat goes once the bar starts compressing
   (mid-desktop), the "/" hint goes where there's no physical keyboard. */
@media (max-width:1120px){
  .bigsearch .stat { display:none; }
}
@media (max-width:760px){
  .bigsearch .kbd { display:none; }
}

/* rotating suggestion ticker — stands in for the placeholder, cycling terms
   drawn from the library itself */
.sugg-ticker {
  position:absolute; left:62px; top:50%; transform:translateY(-50%);
  display:flex; align-items:baseline; gap:6px;
  font-size:18.5px; color:var(--ink-3); pointer-events:none; white-space:nowrap;
  max-width:calc(100% - 250px); overflow:hidden;
}
.bigsearch:focus-within .sugg-ticker, .bigsearch.has-value .sugg-ticker { display:none; }
.sugg-word {
  display:inline-block; font-weight:600; color:var(--tac-blue);
  transition:transform .3s ease, opacity .3s ease;
}
.sugg-word.out { transform:translateY(-110%); opacity:0; }
.sugg-word.in  { transform:translateY(110%);  opacity:0; transition:none; }
.bigsearch-wrap { position:relative; width: 100%; max-width: 900px; }
.bigsearch {
  display:flex; align-items:center; gap:15px;
  background:var(--card); border:2px solid var(--line); border-radius:14px; border-radius: 6px;
  padding:10px 10px 10px 23px; box-shadow:var(--shadow); transition:border-color .15s;
  background: #fff;
}
.bigsearch:focus-within { border-color:var(--tac-blue); }
.bigsearch svg { color:var(--tac-blue); flex:none; }
.bigsearch input {
  flex:1; border:0; background:transparent; outline:0; font-family:inherit;
  font-size:20.5px; color:var(--ink); min-width:0;
}
.bigsearch input::placeholder { color:var(--ink-3); }
.bigsearch .kbd {
  font-family:'JetBrains Mono',monospace; 
  font-family: 'Archivo', sans-serif;
  font-size:12.5px; color:var(--ink-3);
  border:1px solid var(--line); border-radius:6px; padding:4px 9px; flex:none;
}
.bigsearch .stat { font-family:'JetBrains Mono',monospace; 
font-family: 'Archivo', sans-serif;
font-size:11.5px; color:var(--ink-3); flex:none; color: #5d6168; }
.bigsearch .stat b { color:var(--tac-blue); font-weight:600; }
/* feeling lucky */
/* autocomplete */
.ac-drop {
  position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:60;
  background:var(--card); border:1px solid var(--line); border-radius:11px; border-radius: 6px;
  box-shadow:var(--shadow-lg); overflow:hidden; display:none;
}
.ac-drop.open { display:block; }
.ac-item {
  display:flex; align-items:center; gap:12px; padding:11px 18px; cursor:pointer;
  font-size:14px; border-bottom:1px solid var(--line);
}
.ac-item:last-child { border-bottom:0; }
.ac-item:hover, .ac-item.sel { background:color-mix(in srgb, var(--tac-blue) 8%, var(--card)); }
.ac-item .kind {
  flex:none; font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  padding:3px 8px; border-radius:4px; border-radius: 6px; background:var(--bg-3); color:var(--ink-2);
}
.ac-item .kind.tag { background:color-mix(in srgb, var(--tac-gold) 22%, var(--bg-3)); color:color-mix(in srgb, var(--tac-gold) 60%, var(--ink)); }
.ac-item .kind.location { 
  background: color-mix(in srgb, #3fa8fe 22%, var(--bg-3));
color: color-mix(in srgb, #3f79fe 60%, var(--ink));
}
.ac-item .term b, .ac-item .term mark { color:var(--tac-blue);
  background: transparent;
  padding: 0;
 }
.ac-item .n { margin-left:auto; font-family:'JetBrains Mono',monospace; 
font-family: 'Archivo', sans-serif;
font-size:10.5px; color:var(--ink-3); display: none; }
.ac-item .n.show {
  display: initial;
}
/* results */
.results-zone { margin-top:16px; }
.results-head {
  display:flex; align-items:baseline; gap:14px; margin-bottom:14px;
  font-size:13px; color:var(--ink-2);
}
.results-head .q { font-weight:800; color:var(--ink); }
.results-head .timing { font-family:'JetBrains Mono',monospace; 
font-family: 'Archivo', sans-serif;

font-size:10.5px; color:var(--ink-3); }
.results-head .all-link { margin-left:auto; font-size:13px; font-weight:700; color:var(--tac-blue); white-space:nowrap; }
.results-head .all-link:hover { text-decoration:underline; }
.results-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(170px,1fr)); gap:12px;
}
/* desktop: a fixed 5-across, 4-deep page of results (20 cards) */
@media (min-width:900px){
  .results-grid { grid-template-columns:repeat(5, 1fr); }
}
.r-card {
  border-radius:8px;border-radius: 6px; overflow:hidden; background:var(--card); border:1px solid var(--line);
  cursor:pointer; transition:transform .15s, box-shadow .15s;
  /*display: flex;
  flex-direction: column;*/
}
.r-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
/* curate mode: results become drag sources for the hero slots */
.tac-pl.curating .r-card { cursor:grab; }
.tac-pl.curating .r-card:active { cursor:grabbing; }
.tac-pl.curating .r-card::after {
  content:"⤒ drag to front page"; display:block; text-align:center;
  font-size:9.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  color:var(--tac-blue); background:color-mix(in srgb, var(--tac-blue) 9%, transparent);
  padding:4px 0 5px;
}
.tac-pl.curating.dragging-result .pslot { outline:3px dashed var(--tac-blue); outline-offset:3px; }
.curate-only { display:none; }
.tac-pl.curating .curate-only { display:inline; }
.r-card .ph { aspect-ratio:3/2; background:var(--bg-3); }
.r-card .ph img { width:100%; height:100%; object-fit:cover; }
.r-card .nm {
  font-size:11.5px; font-weight:600; line-height:1.3; padding:8px 10px;
  display:-webkit-box; 
  /*-webkit-line-clamp:2; */
  -webkit-box-orient:vertical; overflow:hidden;
  min-height:38px;
  flex: 1;
  /*-webkit-line-clamp: 4; */
}
.r-card .dt { font-family:'JetBrains Mono',monospace; 
font-family: 'Archivo', sans-serif;
font-size:11px; color:var(--ink-3); padding:0 10px 8px; }
.results-empty { text-align:center; color:var(--ink-3); font-size:14px; padding:30px 0 6px; }

/* ---------- Section scaffolding ---------- */
.section { padding:clamp(30px,4.5vw,58px) 0 0; }
.sec-head { display:flex; align-items:baseline; gap:16px; margin-bottom:18px; }
.sec-head h3 {
  font-size:clamp(19px,2vw,26px); font-weight:800; letter-spacing:-.02em;
  color: var(--ink);
}
.sec-head .rule { flex:1; height:1px; background:var(--line); }
.sec-head .more { font-size:13px; font-weight:700; color:var(--tac-blue); white-space:nowrap; }
.sec-head .more:hover { text-decoration:underline; }

/* ---------- Collections ---------- */
.coll-scroller {
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(250px,300px);
  gap:14px; overflow-x:auto; padding-bottom:14px;
  scroll-snap-type:x mandatory; scrollbar-width:thin;
}
.coll-card {
  position:relative; border-radius:10px;border-radius: 6px; overflow:hidden; aspect-ratio:4/3;
  background:var(--bg-3); box-shadow:var(--shadow); scroll-snap-align:start;
  cursor:pointer; transition:transform .2s, box-shadow .2s;
}
.coll-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.coll-card img { width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.coll-card:hover img { transform:scale(1.04); }
.coll-card .ov {
  position:absolute; inset:0; background:var(--overlay-grad);
  display:flex; flex-direction:column; justify-content:flex-end; padding:16px; color:#fff;
}
.coll-card .ov h4 { font-size:16px; font-weight:700; letter-spacing:-.01em; line-height:1.2; 
color: var(--ink-light);
}
.coll-card .ov .count {
  margin-top:5px; font-family:'JetBrains Mono',monospace; 
  font-family: 'Archivo', sans-serif;
  font-size:10.5px; color:var(--tac-gold);
}
.coll-card.new::after {
  content:"NEW"; position:absolute; top:10px; right:10px;
  font-size:9.5px; font-weight:800; letter-spacing:.1em;
  background:var(--tac-red); color:#fff; padding:3px 8px; border-radius:4px; border-radius: 6px;
  opacity: 1;
  transition: opacity .2s ease;
}
.coll-card.new:hover::after {
  opacity: 0;
}
.coll-empty { display:grid; place-items:center; height:100%; color:var(--ink-3); font-size:12px; font-style:italic; }
.coll-num {
  position:absolute; top:10px; left:10px; display:none;
  font-family:'JetBrains Mono',monospace; 
  font-family: 'Archivo', sans-serif;
  font-size:10px; color:#fff;
  background:var(--tac-blue); padding:2px 7px; border-radius:4px; border-radius: 6px;
}
.tac-pl.curating .coll-num { display:block; }
.tac-pl.curating .coll-card { outline:2px dashed color-mix(in srgb, var(--tac-gold) 70%, transparent); outline-offset:3px; }
.tac-pl.curating .coll-card.dragover { outline:3px solid var(--tac-blue); }
/* ghost card for creating an album — curate mode only */
.coll-card.add-coll { display:none; background:transparent; box-shadow:none; border:2px dashed var(--line); }
.tac-pl.curating .coll-card.add-coll { display:block; outline:none; }
.coll-card.add-coll .add-inner {
  display:grid; place-items:center; align-content:center; gap:6px; height:100%;
  color:var(--ink-3); font-size:26px;
}
.coll-card.add-coll .add-inner span { font-size:12.5px; font-weight:700; }
.coll-card.add-coll:hover { border-color:var(--tac-blue); }
.coll-card.add-coll:hover .add-inner { color:var(--tac-blue); }
/* collection editor extras */
.ce-count { display:block; margin-top:6px; font-size:10.5px; font-weight:400; color:var(--tac-blue); }
.ce-cover-label { font-size:12px; font-weight:700; color:var(--ink-2); margin-bottom:8px; }
.ce-cover-label span { color:var(--tac-blue); font-weight:600; }
.ce-covers {
  display:grid; grid-auto-flow:column; grid-auto-columns:96px; gap:8px;
  overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; min-height:64px;
}
.ce-covers .cvr {
  position:relative; aspect-ratio:3/2; border-radius:6px; overflow:hidden;
  background:var(--bg-3); cursor:pointer; border:2px solid transparent;
}
.ce-covers .cvr img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ce-covers .cvr.sel { border-color:var(--tac-blue); }
.ce-covers .cvr.sel::after {
  content:"COVER"; position:absolute; bottom:4px; left:4px; font-size:8px; font-weight:800;
  letter-spacing:.06em; background:var(--tac-blue); color:#fff; padding:1px 5px; border-radius:3px; border-radius: 6px;
}
.ce-covers .none { display:grid; place-items:center; color:var(--ink-3); font-size:11.5px; font-style:italic; }
.util-btn.danger { color:var(--tac-red); border-color:color-mix(in srgb, var(--tac-red) 40%, var(--line)); }
.util-btn.danger:hover { background:var(--tac-red); border-color:var(--tac-red); color:#fff; }
/* carousel manager in the lead editor */
.ce-covers .cvr .rm {
  position:absolute; top:3px; right:3px; width:17px; height:17px; z-index:2;
  border:0; border-radius:50%; background:rgba(20,20,20,.75); color:#fff;
  font-size:10px; line-height:1; cursor:pointer; display:grid; place-items:center;
}
.ce-covers .cvr .rm:hover { background:var(--tac-red); }
.ce-covers .cvr .ord {
  position:absolute; bottom:3px; left:3px; z-index:2;
  font-family:'JetBrains Mono',monospace; 
  font-family: 'Archivo', sans-serif;
  font-size:8.5px; font-weight:700;
  background:rgba(20,20,20,.7); color:#fff; padding:1px 5px; border-radius:3px; border-radius: 6px;
}
.ce-covers .cvr .ord.first { background:var(--tac-gold); color:#131313; }
/* drag-to-reorder */
.ce-covers .cvr[draggable="true"] { cursor:grab; }
.ce-covers .cvr.dragging { opacity:.35; cursor:grabbing; }
.ce-covers .cvr.drop-before::before,
.ce-covers .cvr.drop-after::before {
  content:""; position:absolute; top:0; bottom:0; width:3px; z-index:3;
  background:var(--tac-blue);
}
.ce-covers .cvr.drop-before::before { left:0; }
.ce-covers .cvr.drop-after::before  { right:0; }
.car-add-row { display:flex; gap:8px; margin-top:8px; }
.car-add-row input { flex:1; font-size:11.5px; padding:9px 11px; border-radius:7px; border-radius: 6px;
  border:1px solid var(--line); background:var(--bg-2); color:var(--ink); outline:none;
  font-family:'JetBrains Mono',monospace;
  font-family: 'Archivo', sans-serif;
   }
.car-add-row input:focus { border-color:var(--tac-blue); }

/* ---------- Latest from TAC ---------- */
.news-note { font-size:11.5px; color:var(--ink-3); font-style:italic; }
.news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.news-col .col-head {
  display:flex; align-items:center; gap:8px; padding-bottom:10px; margin-bottom:4px;
  border-bottom:2px solid var(--ink); font-size:12px; font-weight:800;
  letter-spacing:.14em; text-transform:uppercase;
}
.news-col .col-head .badge {
  font-size:9px; padding:2px 6px; border-radius:4px; border-radius: 6px; background:var(--tac-blue); color:#fff; letter-spacing:.06em;
}
.news-col .col-head .badge.gold { background:var(--tac-gold); color:#131313; }
.news-item { padding:13px 0; border-bottom:1px solid var(--line); display:block; }
.news-item .cat { font-size:10.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--tac-blue); }
.news-item h5 { font-size:14.5px; font-weight:600; line-height:1.35; margin-top:4px; letter-spacing:-.01em;
  color:var(--ink);
}
.news-item:hover h5 { color:var(--tac-blue); }
.news-item .when { font-family:'JetBrains Mono',monospace; 
font-family: 'Archivo', sans-serif;
font-size:10px; color:var(--ink-3); margin-top:5px; }
.news-item.locked h5::after { content:" 🔒"; font-size:11px; }

/* ---------- Subscribe CTA ---------- */
.cta { background:var(--cta-bg); color:#fff; overflow:hidden; position:relative; }
.cta::before {
  content:""; position:absolute; inset:0; opacity:.14; pointer-events:none;
  background-image:radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size:26px 26px;
  mask-image:linear-gradient(180deg, transparent, #000 40%);
}
/* padding-block, not the shorthand: these carry .wrap's horizontal gutter and
   a shorthand would reset it to 0, floating the whole band off the page edge
   while every other section stays inset */
.cta-inner { position:relative; padding-block:clamp(40px,6vw,76px) clamp(36px,5vw,60px); }
.cta .flag {
  display:inline-flex; align-items:center; gap:8px;
  font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
  color:var(--tac-gold); border:1px solid rgba(254,171,64,.45);
  padding:6px 12px; border-radius:20px; border-radius: 6px; margin-bottom:20px;
}
.cta h2 {
  font-size:clamp(30px,4.6vw,58px); font-weight:900; letter-spacing:-.03em; line-height:1.02;
  max-width:15em;
  color: #eee;
}
.cta h2 em { font-style:normal; color:var(--tac-gold); }
.cta .stand {
  /*font-family:'Source Serif 4',serif;*/
  font-family: elza, -apple-system, 'Segoe UI', sans-serif;
   font-size:clamp(15px,1.6vw,19px); line-height:1.55;
  color:rgba(255,255,255,.85); max-width:46em; margin-top:18px;
}
.cta .stats { display:flex; gap:28px; margin-top:24px; flex-wrap:wrap; }
.cta .stat .n { 
  /*font-family:'JetBrains Mono',monospace; */
  font-family: 'Archivo', sans-serif;
font-size:20px; font-weight:600; color:var(--tac-gold); }
.cta .stat .l { font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.6); margin-top:3px; }
.tier-row { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:36px; }
.tier {
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius:12px; border-radius: 6px; padding:22px; backdrop-filter:blur(6px);
  display:flex; flex-direction:column; transition:all .2s;
}
.tier:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.28); transform:translateY(-2px); }
.tier.hot { border-color:var(--tac-gold); box-shadow:0 0 0 1px var(--tac-gold), 0 14px 40px rgba(0,0,0,.35); }
.tier .t-name { font-size:15px; font-weight:800; letter-spacing:.02em; display:flex; align-items:center; gap:8px; }
.tier .t-name .pop {
  font-size:9px; font-weight:800; letter-spacing:.08em; background:var(--tac-gold); color:#131313;
  padding:2px 7px; border-radius:4px; border-radius: 6px;
}
.tier .t-price { 
  /*font-family:'JetBrains Mono',monospace; */
font-family: 'Archivo', sans-serif;
font-size:13px; color:var(--tac-gold); margin-top:6px; }
.tier ul { list-style:none; margin-top:14px; display:grid; gap:8px; font-size:13px; color:rgba(255,255,255,.85); }
.tier li { position:relative; padding-left:22px; line-height:1.4; }
.tier li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--tac-gold); font-weight:800; }
.cta-actions { display:flex; align-items:center; gap:18px; margin-top:34px; flex-wrap:wrap; }
.btn-big {
  display:inline-flex; align-items:center; gap:10px;
  background:var(--tac-gold); color:#131313; font-size:16px; font-weight:800;
  padding:16px 34px; border-radius:10px; border-radius: 6px; border:0; letter-spacing:-.01em;
  box-shadow:0 10px 30px rgba(254,171,64,.35); transition:all .2s;
}
.btn-big:hover { transform:translateY(-2px); box-shadow:0 14px 40px rgba(254,171,64,.5); }
.btn-ghost {
  font-size:14px; font-weight:700; color:#fff; padding:15px 26px;
  border:1px solid rgba(255,255,255,.35); border-radius:10px; border-radius: 6px; background:transparent; transition:all .2s;
}
.btn-ghost:hover { border-color:#fff; background:rgba(255,255,255,.08); }
.cta .fine { font-size:11.5px; color:rgba(255,255,255,.55); margin-top:16px; }

/* ---------- Footer ---------- */

/* ---------- Toast ---------- */
.toast {
  position:fixed; bottom:24px; left:50%; transform:translate(-50%, 20px);
  background:var(--ink); color:var(--bg); font-size:13px; font-weight:600;
  padding:12px 20px; border-radius:9px; border-radius: 6px; opacity:0; pointer-events:none;
  transition:all .25s; z-index:100; box-shadow:var(--shadow-lg);
}
.toast.show { opacity:1; transform:translate(-50%,0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .front-grid.preset-frontpage { grid-template-columns:repeat(2,1fr); grid-template-areas:"lead lead" "s1 s2" "s3 s4"; }
  .front-grid.preset-mosaic { grid-template-columns:repeat(2,1fr); grid-template-areas:"lead lead" "s1 s2" "s3 s4" "s5 s5"; }
  /* the lead stops spanning two rows here, so these need their ratio back or
     they collapse to zero height */
  .preset-mosaic .slot-1, .preset-mosaic .slot-2 { aspect-ratio:3/2; }
  .news-grid { grid-template-columns:1fr; gap:8px; }
  .tier-row { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .front-grid.preset-frontpage, .front-grid.preset-split, .front-grid.preset-mosaic {
    grid-template-columns:1fr;
    grid-template-areas:none;
  }
  .front-grid .pslot { grid-area:auto !important; }
}

/* ---------- plugin-only chrome ---------- */
.tac-pl-editorbar {
  display:flex; justify-content:flex-end; gap:10px; padding:10px 0 2px;
}
.tac-pl .curatebar { display:none; border:1px solid var(--line); border-radius:10px; border-radius: 6px; margin-bottom:12px; }
.tac-pl.curating .curatebar { display:block; }
.tac-pl .curatebar-inner { display:flex; align-items:center; gap:14px; padding:10px 14px; flex-wrap:wrap; }
.tac-pl .util-btn.primary-save { background:var(--tac-blue); border-color:var(--tac-blue); color:#fff; font-weight:700; }
.tac-pl .util-btn.primary-save[data-dirty="1"] { background:var(--tac-gold); border-color:var(--tac-gold); color:#131313; }
.tac-pl .save-state { font-size:10.5px; color:var(--ink-3); }
.tac-pl .lite { font-weight:400; }
.tac-pl-toast {
  position:fixed; bottom:24px; left:50%; transform:translate(-50%,20px);
  background:#131313; color:#fff; font-size:13px; font-weight:600;
  padding:12px 20px; border-radius:9px; border-radius: 6px; opacity:0; pointer-events:none;
  transition:all .25s; z-index:100000;
}
.tac-pl-toast.show { opacity:1; transform:translate(-50%,0); }


/* Custom edits */
.curate-toggles {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.curate-toggles button {
  margin-left: 15px;
  height: 39px;
}

    /* Lightbox Panel */
    .lightbox-panel {
      position: fixed;
      bottom: 0;
      left: 0px;
      right: 0;
      background: var(--tac-black);
      z-index: 90;
    }
    .lightbox-header {
      padding: 1rem 2rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      cursor: pointer;
    }
    .lightbox-header:hover { background: var(--tac-navy); }
    .lightbox-icon { color: var(--tac-blue); font-size: 1.25rem; }
    .lightbox-title { color: var(--tac-white); font-weight: 600; }
    .lightbox-count {
      background: var(--tac-blue);
      color: var(--tac-white);
      padding: 0.125rem 0.625rem;
      border-radius: 12px; border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 700;
    }
    .lightbox-toggle { margin-left: auto; color: var(--tac-gray); }
    .lightbox-content { padding: 0 2rem 1.5rem; display: none; }
    .lightbox-content.open { display: block; }
    .lightbox-empty { color: var(--tac-gray); padding: 1rem 0; }
    .lightbox-items { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.5rem 0; margin-bottom: 1rem; }
    .lightbox-item { position: relative; flex-shrink: 0; }
    .lightbox-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border-radius: 6px; }
    .lightbox-item .remove-btn {
      position: absolute;
      top: -6px;
      right: -6px;
      width: 20px;
      height: 20px;
      background: var(--tac-error);
      color: var(--tac-white);
      border: none;
      border-radius: 50%;
      font-size: 12px;
      cursor: pointer;
    }
    .lightbox-license {
      display: block;
      text-align: center;
      font-size: 0.625rem;
      font-weight: 600;
      color: var(--tac-gray);
      margin-top: 0.25rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .lightbox-license.lightbox-license-under-photo {
      margin-top: 0;
    }
    .lightbox-actions { display: flex; gap: 1rem; justify-content: flex-end; }
    .clear-btn {
      padding: 0.625rem 1.25rem;
      background: transparent;
      border: 1px solid var(--tac-gray-dark);
      color: var(--tac-gray);
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
    }
    .checkout-btn {
      padding: 0.625rem 1.5rem;
      background: var(--tac-blue);
      color: var(--tac-white);
      border: none;
      border-radius: 6px;
      font-weight: 700;
      cursor: pointer;
    }

    /* Modal */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(26, 26, 26, 0.95);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 2rem;
      backdrop-filter: blur(4px);
      overflow-y: auto;
    }
    .modal-backdrop.open { display: flex; }



    .modal-content {
      background: var(--tac-white);
      border-radius: 12px; border-radius: 6px;
      max-width: 95vw;
      max-height: 85vh;
      overflow: hidden;
      display: grid;
      grid-template-columns: auto minmax(320px, 400px);
      position: relative;

      /* shine.io */
      display: flex;
    }

    /* shine.io edit */
    .modal-close {
      position: absolute;
      top: 1rem;
      right: 15px;
      width: 40px;
      height: 40px;
      background: var(--tac-white);
      border: none;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 10;
      box-shadow: var(--shadow-md);
      color: var(--tac-black);
    }


    .modal-image-container {
      position: relative;
      background: var(--tac-black);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .modal-image-container img { 
      display: block;
      max-width: calc(95vw - 400px);
      max-height: 95vh;
      width: auto;
      height: auto;
      object-fit: contain;
      position: relative;
      z-index: 1;

      max-width: 100%;
      max-height: 100%;
    }

    .checkout-image-container {
      position: relative;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      color: #111;
      max-width: 500px;
      flex-direction: column;
      border-right: solid 1px #eee;
      max-height: 50vh;
      overflow-y: auto;
    }
    .checkout-image-container img {
      width: 200px !important;
      min-width: 200px;
      height: 100px !important;
      min-height: 100px !important;
      object-fit: cover;
      object-position: center;
      
      border-radius: 5px;
      border-radius: 6px;
    }

    .cart-preview-item {
      display: flex;
      padding: 15px;
    }

    .cart-preview-item p {
      display: block;
      font-size: 0.625rem;
      font-weight: 600;
      color: var(--tac-gray);
      margin-top: 0.25rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .cart-preview-image-details {
      padding-left: 15px;
    }

    @media screen and (max-width: 1024px) {
      .checkout-image-container {
        border-right: none;
        border-bottom: solid 1px #eee;
        align-items: center;
        max-width: unset;
        padding-right: 50px;
      }
      .cart-preview-item {
        width: 80%;
      }
      .modal-details#checkoutDetails {
        padding-right: 15px !important;
      }
      #checkoutDetails .download-btn {
        margin: 0 auto;
      }
      #checkoutDetails p {
        text-align: center;
      }
      .cart-preview-image-details {
        width: 50%;
      }
    }

     @media screen and (max-width: 550px) {
      .cart-preview-item {
        flex-direction: column;
      }
      .cart-preview-image-details {
        width: 100%;
        padding-left: 0;
        padding-top: 5px;
      }
     }



    
    /* Modal navigation arrows - hidden until hover */
    .modal-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      width: 50px;
      height: 80px;
      background: rgba(0, 0, 0, 0.5);
      border: none;
      color: white;
      font-size: 2.5rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.25s ease;
      opacity: 0;
      pointer-events: none;
    }
    .modal-image-container:hover .modal-nav {
      opacity: 1;
      pointer-events: auto;
    }
    .modal-nav:hover {
      background: rgba(0, 0, 0, 0.8);
    }
    .modal-nav:active {
      transform: translateY(-50%) scale(0.95);
    }
    .modal-nav-prev {
      left: 0;
      border-radius: 0 6px 6px 0;
      padding-right: 4px;
    }
    .modal-nav-next {
      right: 0;
      border-radius: 6px 0 0 6px;
      padding-left: 4px;
    }
    .modal-nav:disabled {
      opacity: 0 !important;
      cursor: not-allowed;
      pointer-events: none;
    }

    .modal-photo-counter {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      background: rgba(0, 0, 0, 0.6);
      color: white;
      padding: 0.375rem 0.75rem;
      border-radius: 20px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 500;
    }

    .modal-details { 
      padding: 1.5rem; display: flex; flex-direction: column; 
      gap: 1rem; 
      overflow-y: auto; 
      /* shine.io */
      max-width: 400px;
      padding-top: 40px;
    }

    .modal-details h2 { font-family: var(--font-display) !important; font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: var(--tac-black); }

    .modal-details #photoName h2 {
      margin-bottom: 5px;
    }
    .modal-details #photoName {
      margin-bottom: 1em;
    }
    .modal-details #photoName a {
      font-size: 13px;
      color: #111;
    }

    .modal-details#checkoutDetails {
      padding: 15px;
      padding-right: 60px;
      align-self: center;
    }

    .original-description {
      color: var(--tac-gray-dark);
      font-size: 0.875rem;
      line-height: 1.5;
      font-style: italic;
      white-space: pre-line;
    }

    .exif-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .exif-header h4 {
      margin: 0;
    }
    .exif-actions {
      display: flex;
      align-items: center;
      gap: 0.375rem;
    }
    .share-photo-btn {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.25rem 0.5rem;
      background: var(--tac-white);
      border: 1px solid var(--tac-gray-light);
      border-radius: 4px;
      border-radius: 6px;
      font-size: 0.6875rem;
      font-weight: 600;
      color: var(--tac-gray-dark);
      cursor: pointer;
      transition: var(--transition);
    }
    .share-photo-btn .share-icon {
      font-size: 0.625rem;
      width: 14px;
    }
    .share-photo-btn .share-text {
      font-size: 11px;
      text-transform: none;
      letter-spacing: normal;
    }
    .share-photo-btn:hover {
      background: var(--tac-blue);
      border-color: var(--tac-blue);
      color: var(--tac-white);
    }
    .share-photo-btn.copied {
      background: var(--tac-success);
      border-color: var(--tac-success);
      color: var(--tac-white);
    }

    .exif-section {
      background: var(--tac-gray-lighter);
      border-radius: 6px;
      padding: 0.75rem;
    }
    .exif-section h4 {
      font-size: 0.6875rem;
      font-weight: 600;
      color: var(--tac-gray-dark);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    
    /* Accordion styles */
    .exif-toggle-btn {
      display: flex;
      align-items: center;
      gap: 0.375rem;
      background: none;
      border: none;
      padding: 0.25rem 0.5rem;
      margin-left: -0.5rem;
      font-size: 0.6875rem;
      font-weight: 600;
      color: var(--tac-gray-dark);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      cursor: pointer;
      border-radius: 4px;
      border-radius: 6px;
      transition: var(--transition);
    }
    .exif-toggle-btn:hover {
      background: rgba(0,0,0,0.05);
      color: var(--tac-black);
    }
    .exif-toggle-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      height: 14px;
      font-size: 0.875rem;
      font-weight: 400;
      line-height: 1;
      color: var(--tac-gray);
      transition: transform 0.2s ease;
    }
    .exif-collapsible {
      overflow: hidden;
      max-height: 500px;
      transition: max-height 0.25s ease, opacity 0.2s ease;
      opacity: 1;
      margin-top: 0.5rem;
    }
    .exif-collapsible.collapsed {
      max-height: 0;
      opacity: 0;
      margin-top: 0;
    }
    
    .exif-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.375rem 1rem;
    }
    .exif-item { display: flex; flex-direction: column; gap: 0.125rem; }
    .exif-label { font-size: 0.625rem; color: var(--tac-gray); text-transform: uppercase; }
    .exif-value { font-size: 0.75rem; color: var(--tac-black); font-weight: 500; }

    .license-options { display: flex; flex-direction: column; gap: 0; }
    .license-options h3 { font-size: 0.875rem; font-weight: 600; color: var(--tac-black); }
    .license-btn {
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-rows: auto auto;
      gap: 0.125rem 1rem;
      padding: 0.75rem;
      background: var(--tac-white);
      border: 1px solid var(--tac-gray-light);
      border-radius: 6px;
      text-align: left;
      cursor: pointer;
      transition: var(--transition);
    }
    /*.license-btn:hover { border-color: var(--tac-blue); background: rgba(43, 143, 237, 0.05); }*/
    .license-name { font-weight: 600; font-size: 0.8125rem; color: var(--tac-black); }
    .license-price { font-weight: 700; color: var(--tac-blue); font-size: 0.9375rem; grid-row: span 2; align-self: center; }
    .license-desc {
      font-size: 11px;
      color: #333;
      font-weight: 400;
    }

    .license-btn:first-of-type {
      margin-top: 15px;
    }
    #subscriberSocialCheck .license-btn:first-of-type {
      margin-top: 0;
    }


    /* Download Options */
    .download-options { display: flex; flex-direction: column; gap: 0.5rem; }
    .download-options h3 { font-size: 0.875rem; font-weight: 600; color: var(--tac-black); margin-bottom: 0.25rem; }
    .download-btn {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem;
      background: linear-gradient(135deg, rgba(43, 143, 237, 0.08) 0%, rgba(45, 154, 93, 0.08) 100%);
      border: 1px solid var(--tac-blue);
      border-radius: 6px;
      text-decoration: none;
      transition: var(--transition);
    }
    .download-btn:hover { 
      background: linear-gradient(135deg, rgba(43, 143, 237, 0.15) 0%, rgba(45, 154, 93, 0.15) 100%);
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(43, 143, 237, 0.2);
    }
    .download-icon {
      font-size: 1.25rem;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--tac-blue);
      color: white;
      border-radius: 6px;
      flex-shrink: 0;
    }
    .download-info { display: flex; flex-direction: column; gap: 0.125rem; }
    .download-name { font-weight: 600; font-size: 0.8125rem; color: var(--tac-black); }
    .download-desc { font-size: 0.6875rem; color: var(--tac-gray); }
    .download-note { 
      font-size: 0.75rem; 
      color: var(--tac-gray); 
      margin-top: 0.5rem;
      padding: 0.5rem;
      background: rgba(0,0,0,0.03);
      border-radius: 4px;
      border-radius: 6px;
    }
    .download-note.backend-connected {
      background: rgba(45, 154, 93, 0.1);
      color: var(--tac-success);
      border-left: 3px solid var(--tac-success);
    }

    .add-lightbox-btn {
      padding: 0.75rem;
      background: var(--tac-black);
      color: var(--tac-white);
      border: none;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      /*margin-top: auto;*/
    }
    .add-lightbox-btn.active { background: var(--tac-error); }

    /* Footer */
    .footer { background: var(--tac-black); padding: 2rem; margin-top: auto; }
    .footer-content { max-width: 1800px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
    .footer-brand { display: flex; align-items: center; gap: 1.5rem; }
    .footer-brand img { height: 32px; width: auto; }
    .footer-brand p { color: var(--tac-gray); font-size: 0.875rem; }
    .footer-links { display: flex; gap: 2rem; }
    .footer-links a { color: var(--tac-gray); text-decoration: none; font-size: 0.875rem; }
    .footer-links a:hover { color: var(--tac-white); }

    /* Responsive */
    @media (max-width: 1024px) {
      .modal-content { 
        grid-template-columns: 1fr; max-height: 80vh; 

        /* shine.io */
        flex-direction: column; 
      }
      .modal-image-container img { max-width: 95vw; max-height: 55vh; }
      .modal-details { 
        max-height: 40vh; overflow-y: auto; 

        /* shine.io */
        max-width: unset;
      }
    }

    @media (max-width: 768px) {
      .hide-mobile { display: none !important; }
      
      /*.header { padding: 0.75rem 1rem; }*/
      .header-content { gap: 0.75rem; flex-wrap: wrap; }
      .logo { gap: 0.5rem; }
      .logo-mark { width: 32px; height: 32px; }
      .logo-text { font-size: 1rem; }
      .header-nav { gap: 0.75rem; font-size: 0.75rem; }
      .mode-toggle { padding: 0.25rem; gap: 0.25rem; }
      .mode-btn { padding: 0.25rem 0.5rem; font-size: 0.625rem; }
      .search-form { order: 10; max-width: 100%; width: 100%; margin-top: 0.5rem; }
      .search-form input { font-size: 0.875rem; }
      
      main { padding: 1rem; }
      .results-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
      .results-header h1 { font-size: 1.25rem; }
      .results-count { font-size: 0.8125rem; }
      
      .results-controls { width: 100%; flex-wrap: wrap; gap: 0.75rem; }
      .sort-selector, .per-page-selector { flex: 1; min-width: 120px; }
      .sort-selector label, .per-page-selector label { font-size: 0.75rem; }
      .sort-selector select, .per-page-selector select { padding: 0.375rem 0.5rem; font-size: 0.75rem; }
      .sort-order-btn { padding: 0.375rem 0.5rem; }
      .view-toggle { width: 100%; justify-content: stretch; }
      .view-toggle button { flex: 1; padding: 0.5rem 0.25rem; font-size: 0.75rem; }
      
      .title-index-header { flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 1rem; }
      .title-index-header h3 { font-size: 1rem; }
      .title-index-search { max-width: 100%; }
      .title-index-search input { font-size: 0.875rem; }
      .title-index-sort { margin-left: 0; justify-content: flex-start; }
      .title-index-list { max-height: 60vh; }
      .title-item { padding: 0.625rem 1rem; }
      .title-text { font-size: 0.8125rem; }
      .title-date { font-size: 0.6875rem; }
      .title-filter-active { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
      
      .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
      .photo-grid.large { grid-template-columns: 1fr; gap: 1rem; }
      .photo-card { border-radius: 6px; }
      .photo-info { padding: 0.625rem; }
      .photo-info h3 { font-size: 0.75rem; }
      .photo-grid.large .photo-info h3 { font-size: 0.875rem; }
      .photo-meta-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
      .photo-date { font-size: 0.625rem; }
      
      .modal { padding: 0.5rem; }
      .modal-content { border-radius: 8px; border-radius: 6px; max-height: 85vh; }
      .modal-close { top: 0.5rem; right: 0.5rem; width: 32px; height: 32px; font-size: 1.25rem; 

        font-size: 23px;
        line-height: 23px;
      }
      .modal-image-container img { max-width: 100vw; max-height: 50vh; }
      .modal-nav { display: none; } /* Hide nav buttons on mobile - use swipe instead */
      .modal-photo-counter { font-size: 0.6875rem; padding: 0.25rem 0.5rem; }
      .modal-details { padding: 1rem; gap: 0.75rem; max-height: 50vh; }
      .modal-details h2 { font-size: 1.125rem; }
      .exif-header { gap: 0.5rem; }
      .exif-toggle-btn { font-size: 0.625rem; padding: 0.2rem 0.375rem; }
      .exif-toggle-icon { width: 12px; height: 12px; font-size: 0.75rem; }
      .share-photo-btn { padding: 0.1875rem 0.375rem; font-size: 0.5625rem; }
      .share-photo-btn .share-icon { display: none; }
      .exif-row { gap: 0.5rem; flex-wrap: wrap; }
      .exif-item { font-size: 0.6875rem; }
      
      .download-options { gap: 0.5rem; }
      .download-btn { padding: 0.625rem; gap: 0.625rem; }
      .download-icon { width: 28px; height: 28px; font-size: 0.875rem; }
      .download-name { font-size: 0.75rem; }
      .download-desc { font-size: 0.625rem; }
      
      .license-options { gap: 0.5rem; }
      .license-btn { padding: 0.625rem 0.75rem; }
      .license-name { font-size: 0.8125rem; }
      .license-price { font-size: 0.875rem; }
      .license-desc { font-size: 0.625rem; }
      
      .footer { padding: 1.5rem 1rem; }
      .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
      .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
      
      .lightbox-panel { width: 100%; right: -100%; }
      .lightbox-panel.open { right: 0; }
      .lightbox-header { padding: 1rem; }
      .lightbox-header h3 { font-size: 1rem; }
      .lightbox-items { padding: 0.75rem; gap: 0.5rem; }
      .lightbox-item { width: 60px; height: 84px; }
      .lightbox-actions { padding: 0.75rem; }
      .checkout-btn { padding: 0.75rem 1rem; font-size: 0.875rem; }
      
      .load-more-container { padding: 1.5rem 1rem; }
      .load-more-btn { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
    }

    @media (max-width: 480px) {
      .header-nav a { display: none; }
      .mode-toggle { order: 2; }
      .logo-text { display: none; }
      
      .results-info { width: 100%; }
      .results-controls { justify-content: space-between; }
      
      .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
      .photo-info { padding: 0.5rem; }
      .photo-info h3 { font-size: 0.6875rem; line-height: 1.3; }
      
      .modal-details h2 { font-size: 1rem; }
      
      .refinement-section { padding: 0.75rem; }
      .refinement-header h3 { font-size: 0.75rem; }
      .refinement-keywords { gap: 0.375rem; }
      .refinement-keyword { padding: 0.25rem 0.5rem; font-size: 0.6875rem; }
    }

    /* Touch-friendly improvements */
    @media (hover: none) and (pointer: coarse) {
      .photo-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%); }
      .lightbox-btn { opacity: 0.9; }
      .photo-card:active { transform: scale(0.98); }
      .download-btn:active, .license-btn:active { transform: scale(0.98); }
      .modal-nav { display: none !important; } /* Hide arrows on touch - use swipe */
      .modal-image-container { cursor: grab; }
    }

    /* Tac Loader shine.io */
    .tac-loader {
      margin: 10px auto;
      display: block;
      position: relative;
      width: 80px;
      height: 80px;
    }
    .tac-loader div {
      position: absolute;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #393939;
      animation: tac-loader 1.2s linear infinite;
    }
    .tac-loader div:nth-child(1) {
      top: 8px;
      left: 8px;
      animation-delay: 0s;
    }
    .tac-loader div:nth-child(2) {
      top: 8px;
      left: 32px;
      animation-delay: -0.4s;
    }
    .tac-loader div:nth-child(3) {
      top: 8px;
      left: 56px;
      animation-delay: -0.8s;
    }
    .tac-loader div:nth-child(4) {
      top: 32px;
      left: 8px;
      animation-delay: -0.4s;
    }
    .tac-loader div:nth-child(5) {
      top: 32px;
      left: 32px;
      animation-delay: -0.8s;
    }
    .tac-loader div:nth-child(6) {
      top: 32px;
      left: 56px;
      animation-delay: -1.2s;
    }
    .tac-loader div:nth-child(7) {
      top: 56px;
      left: 8px;
      animation-delay: -0.8s;
    }
    .tac-loader div:nth-child(8) {
      top: 56px;
      left: 32px;
      animation-delay: -1.2s;
    }
    .tac-loader div:nth-child(9) {
      top: 56px;
      left: 56px;
      animation-delay: -1.6s;
    }
    @keyframes tac-loader {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0.5;
      }
    }
    .loading-hide {
      display: none !important;
    }





    #heroViewLicenses {
      position: absolute;
      top: 30px;
      right: 1.5rem;
      background: var(--tac-blue);
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      border-radius: 6px;
      font-size: 0.875rem;
      max-width: 350px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      cursor: pointer;
      transition: background 0.2s ease;
      z-index: 3;
      border: none;
    }

    .photo-tags-title {
      margin: 0;
      font-size: 13px !important;
      font-weight: 600 !important;
    }
    .photo-tags li a {
      color: #111;
      font-size: 13px;
      text-decoration: underline;
    }
