// site-images.jsx, TEMPORARY stock imagery for the placeholder blocks.
//
// `PH` looks up SS_IMAGES[label] by exact label string. Any label not listed
// here (e.g. the service-page galleries you'll supply later) keeps its styled
// [ ... ] placeholder automatically. If an image URL fails to load, PH also
// falls back to the placeholder, so nothing ever appears broken.
//
// Source: Pexels (free for commercial use, no attribution required). These are
// best-fit stand-ins, swap the URLs for final photography. Keys = PH `label`.

const PX = (id, w) =>
  'https://images.pexels.com/photos/' + id + '/pexels-photo-' + id +
  '.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=' + (w || 1280);

const SS_IMAGES = {
  // ── Home ──────────────────────────────────────────────────────────────
  'ceremony arch, garden florals': PX(2788494),
  'hero, couple beneath floral arch, soft light': PX(31567377, 1600),
  'tablescape, blush linen, candlelight': PX(28976220),
  'founder arranging florals, candid': PX(5409700),
  'reception, long tables, garden room': PX(6479604),
  'featured wedding, first dance, drapery & light': PX(6779901, 1400),
  'baby shower, pastel florals': PX(7802432), // shared with Portfolio
  'samia tayar, portrait': 'assets/team/samia.webp',
  'flatlay, invitation suite, ribbon': PX(7718804),
  'ballroom, empty, morning light': PX(19351564), // shared with Journal
  'planner desk, swatches & timeline': PX(669619),

  // ── About ─────────────────────────────────────────────────────────────
  'samia tayar, portrait, studio': 'assets/team/samia.webp',

  // ── Portfolio ─────────────────────────────────────────────────────────
  'wedding, ballroom, chandeliers': PX(16043728),
  'corporate gala, branded stage': PX(33852660),
  'engagement, rooftop at dusk': PX(36536729),
  'reception, long tables, candlelight': PX(11160491),
  'birthday, intimate dinner': PX(5116976),
  'wedding, garden ceremony arch': PX(15242526),
  'wedding, sparkler exit': PX(15964966),
  'corporate, client dinner': PX(3755084),
  'case study, ballroom wedding': PX(16043728),
  'case study, launch gala': PX(33852660),

  // ── Journal ───────────────────────────────────────────────────────────
  'flatlay, invitation suite, ribbon, florals': PX(7718804),
  'palette, swatches & florals': PX(6193017),
  'planner desk, timeline & swatches': PX(669619),
  'boardroom, agenda & coffee': PX(7511751),
  'consultation, notebook & tea': PX(4195334),
  'venue collage, three rooms': PX(33852660),

  // ── Journal post ──────────────────────────────────────────────────────
  'hero, planning flatlay, timeline & swatches': PX(669619, 1400),
  'samia, portrait': 'assets/team/samia.webp',

  // ── Contact ───────────────────────────────────────────────────────────
  'map, service area, manhattan & tri-state': PX(34642898, 1000),
};

// Service-page hero (main) images — premium stock; galleries supplied later.
Object.assign(SS_IMAGES, {
  'engagement party, rooftop toast at dusk': PX(36536729, 1400),
  'corporate gala, branded stage, ambient wash': PX(33852660, 1400),
  'baby shower, pastel tablescape, florals': PX(7802432, 1400),
  'reception, candlelit long tables, drapery': 'assets/portfolio/receptions/reception-03.webp',
  'birthday dinner, intimate private room': 'assets/portfolio/birthdays/birthday-01.webp',
});

// Real client photography (JPGs converted to WebP in assets/portfolio/<service>/).
// To add a service: drop a pack, convert, and add one line to SS_GALLERY below.
const galSrc = (service, n) => 'assets/portfolio/' + service + '/' + service.slice(0, -1) + '-' + String(n).padStart(2, '0') + '.webp';
const buildGallery = (service, nums, alts) => nums.map((n, i) => ({
  src: galSrc(service, n),
  alt: 'Sam Set Events ' + service.slice(0, -1) + ' in New York — ' + alts[i % alts.length],
}));
const SS_GALLERY = {
  // wedding-11 is the founder portrait (used elsewhere), so it's omitted here.
  weddings: buildGallery('weddings', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20],
    ['floral centerpiece', 'reception tablescape', 'head-table florals', 'ceremony styling', 'outdoor celebration', 'candlelit dinner', 'venue styling', 'bridal florals']),
  birthdays: buildGallery('birthdays', [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],
    ['dessert table', 'cake display', 'table styling', 'décor detail', 'party setup', 'celebration styling', 'floral accents']),
  receptions: buildGallery('receptions', [1, 2, 3],
    ['head-table florals', 'candlelit tablescape', 'floral runner', 'reception styling']),
};

Object.assign(window, { SS_IMAGES, SS_GALLERY });
