html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Design tokens */
:root {
  --ink: #ffffff;
  --bg: #700d36; 
  --chip-ink: #231f20;
  --frame: max(70ch, min(92vw, 1350px));
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Base typography & background */
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans", 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;
}

/* Subtle decorative background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url("Image_Gallery/Monument.png") bottom center / contain no-repeat,
    radial-gradient(1100px 550px at 15% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(900px 500px at 110% 35%, rgba(0, 0, 0, 0.18), transparent 65%);
  opacity: 0.1;
  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: #fff;
  margin-top: 8px;
}

.subtitle {
  margin: 0;
  opacity: 0.9;
  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: #fff;
  color: var(--chip-ink);
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.chip .divider {
  width: 1px;
  height: 16px;
  background: var(--chip-ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

/* 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, 0.25);
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gal-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.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 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 64px);
  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 #fff;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  line-height: 1.3;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}
.cta:hover {
  background-color: #ffffff22;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.cta:active {
  transform: translateY(0);
  box-shadow: none;
}
.cta.ghost {
  background: transparent;
  border-style: dashed;
  opacity: 0.9;
}

/* Additional links */
.additional a {
  color: #fff;
  text-decoration: underline;
  word-break: break-word;
  white-space: normal;
}

.info-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: flex-start;
  margin-top: 32px;
}

.product-photo img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* 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, 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: 0.9;
}
.print-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.print-modal .cta {
  height: 56px;
  padding: 0 16px;
}
.print-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* 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, 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 0.15s ease, background-color 0.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;
  }
}

/* Narrow layouts */
@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 1fr;
  }
  .brand-block {
    align-items: flex-start;
  }
  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
