html, body { margin: 0; padding: 0; height: 100%; width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* Theme tokens */
:root{
  --ink:#ffffff;                 /* text color */
  --bg:#5e095e;                  /* background color */
  --divider:#231f20;             /* divider color */
  --chip-bg:#ffffff;             /* chip color */
  --chip-ink:#231f20;            /* chip text color */
  --btn-ink:#ffffff;             /* button text */
  --btn-border:#ffffff;          /* button border */
  --frame:max(70ch, min(92vw, 1350px));
  --radius:12px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

/* Typography — Noto Sans only & fixed sizes per device */
body{
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;

  /* Best-effort anti-save surface */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Full-screen background image */
body::before{
  content:"";
  position:fixed; inset:0;
  background: url("Image_Gallery/chh_i01.jpeg") center/cover no-repeat fixed;
  opacity:.18;
  pointer-events:none; z-index:-1;
}

/* Page container */
.page{
  width: var(--frame);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 56px);
}

/* Masthead */
.masthead{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:start;
  gap: 16px;
  margin-bottom: 24px;
}

.title{
  font-weight: 700;
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
}
.title::after{
  content:"";
  display:block;
  width:100%;
  height:2px;
  background: var(--ink);
  margin-top:8px;
}

.subtitle{
  margin:0;
  opacity:.95;
  font-weight:600;
}

/* Right side */
.brand-block{
  display:flex; flex-direction:column; align-items:flex-end; gap:8px;
}
.craft-logo{ width: 140px; height:auto; display:block; }

/* Chip */
.chip{
  display:inline-flex; align-items:center; gap:12px;
  padding:10px 16px; border-radius:9999px;
  background:var(--chip-bg); color:var(--chip-ink);
  font-weight:700; line-height:1; border:1px solid rgba(0,0,0,.08);
}
.chip .divider{
  width:1px; height:16px; background:var(--divider);
}

/* Sections */
.section h3, .two-col h3, .additional h3{
  margin:0 0 10px; font-weight:700;
}
.section p, .two-col p{
  margin:0 0 16px; text-align: justify;
}

/* Gallery - interactive buttons (no captions) */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.gal-item{
  all: unset;
  position: relative;
  display:block;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.30);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gal-item:hover{ transform: scale(1.02); box-shadow: 0 10px 26px rgba(0,0,0,.38); }
.gal-item:active{ transform: scale(0.99); }
.gal-item img{
  width:100%; height:200px; object-fit:cover; display:block;
  -webkit-user-drag:none; pointer-events:none;
}
/* Transparent overlay that intercepts taps/long-press on the image */
.shield{
  position:absolute; inset:0; content:""; display:block;
  background: transparent; pointer-events:auto;
}

/* Two columns (Row 1 & Row 3) */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 64px);
  margin-bottom: 24px;
}

/* Single section (Row 2: Process) */
.section{ margin-bottom: 24px; }

/* CTAs */
.cta-row{
  display:flex; flex-wrap:wrap; gap:14px; margin-bottom:24px;
}
.cta{
  width: 150px; height: 96px;
  display:flex; justify-content:center; align-items:center; text-align:center;
  border:2px solid var(--btn-border); color:var(--btn-ink); text-decoration:none; font-weight:700;
  border-radius:10px; line-height:1.3;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.cta:hover{ background-color:#ffffff22; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.cta:active{ transform: translateY(0); box-shadow:none; }
.cta.ghost{
  background: transparent; border-style:dashed; opacity:.9; color:var(--btn-ink); border-color:var(--btn-border);
}

/* Additional links */
.additional a{
  color:var(--ink); text-decoration: underline; word-break: break-word; white-space: normal;
}

/* Print/Download modal */
.print-modal{ position:fixed; inset:0; display:none; z-index:9999; }
.print-modal[aria-hidden="false"]{ display:block; }
.print-modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.print-modal__dialog{
  position:relative; max-width:520px; margin:12vh auto; padding:20px;
  background:#1e1e1e; color:#fff; border-radius:12px; box-shadow: var(--shadow);
}
.print-modal__dialog h3{ margin:0 0 10px; }
.print-modal__dialog p{ margin:0 0 16px; opacity:.9; }
.print-modal__actions{ display:flex; gap:12px; flex-wrap:wrap; }
.print-modal .cta{ height:56px; padding:0 16px; }

/* Lightbox (no captions) */
.lightbox{ position:fixed; inset:0; z-index:10000; display:none; }
.lightbox[aria-hidden="false"]{ display:block; }
.lightbox__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.75); }
.lightbox__figure{
  position:absolute; inset:0;
  display:grid; place-items:center;
  padding: min(6vh, 48px) min(4vw, 32px);
}
.lightbox__figure img{
  max-width: 92vw; max-height: 84vh; border-radius:12px; box-shadow: var(--shadow);
  background:#000; -webkit-user-drag:none; pointer-events:none;
}
.lightbox__nav{
  position:absolute; top:50%; transform: translateY(-50%);
  background: #ffffff22; border:2px solid #fff; color:#fff;
  width:48px; height:48px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.lightbox__nav:hover{ transform: translateY(-50%) scale(1.06); background:#ffffff33; }
.lightbox__nav:active{ transform: translateY(-50%) scale(0.98); }
.lightbox__nav.prev{ left: clamp(10px, 3vw, 24px); }
.lightbox__nav.next{ right: clamp(10px, 3vw, 24px); }
.lightbox__close{
  position:absolute; top: clamp(8px, 3vh, 24px); right: clamp(8px, 3vw, 24px);
  width:44px; height:44px; border-radius:50%;
  background:#ffffff22; border:2px solid #fff; color:#fff; cursor:pointer;
}
.lightbox .shield{ position:absolute; inset:0; }

/* Utility */
.no-scroll{ overflow:hidden; }

/* Print */
@media print{
  body{ background:#fff; color:#000; }
  .page{ width:100%; padding: 0 24px; background:#fff; }
}

/* Responsive type & layout */
/* Mobile first */
.title{ font-size: 24px; }
.subtitle{ font-size: 16px; }
.section h3, .two-col h3, .additional h3{ font-size: 16px; }
.section p, .two-col p{ font-size: 14px; }

/* Desktop ≥700px */
@media (min-width: 700px){
  .title{ font-size: 36px; }
  .subtitle{ font-size: 20px; }
  .section h3, .two-col h3, .additional h3{ font-size: 20px; }
  .section p, .two-col p{ font-size: 16px; }
  .two-col{ grid-template-columns: 1fr 1fr; }
}

/* Narrow layouts */
@media (max-width: 900px){
  .masthead{ grid-template-columns: 1fr; }
  .brand-block{ align-items:flex-start; }
}
@media (max-width: 700px){
  .two-col{ grid-template-columns: 1fr; }
}
