/* Photographic page heroes: copy and photo share the page container (same edges as the logo, breadcrumbs and price cards); nothing is laid over the photo */
.hero--photo { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 4vw, 64px); align-items: stretch;
  box-sizing: border-box; min-height: 0; padding: 0 var(--gutter); background: var(--bg, #f2f0e9); text-align: start; }
.hero--photo::after { content: none; }
.hero--photo .hero-3d { display: none; }
.hero--photo > .hero-bg { grid-column: 2; grid-row: 1 / span 8; position: relative; inset: auto; z-index: 0; margin: 0; align-self: stretch; min-height: 100%; }
.hero--photo > .hero-bg picture, .hero--photo > .hero-bg img, .hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* title on one line across the full container; intro and buttons under it beside the photo */
.hero--photo > .wrap { display: contents; }
.hero--photo > .hero-bg { grid-row: 1 / span 5; aspect-ratio: 4 / 3; min-height: 0; align-self: center; }
.hero--photo h1, .article-head.hero--photo > h1 { grid-column: 1; grid-row: 2; box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 0 0 clamp(16px, 2vw, 28px);
  font-size: clamp(28px, 3.1vw, 48px); line-height: 1.12; white-space: normal; text-align: start; }
.hero--photo .intro, .hero--photo .wk-intro, .hero--photo .btn-row, .article-head.hero--photo > :not(.hero-bg):not(h1) { grid-column: 1; box-sizing: border-box; width: 100%; max-width: 52ch; margin-inline: 0; padding-inline: 0; text-align: start; }
.hero--photo .intro, .hero--photo .wk-intro, .article-head.hero--photo > .intro { color: var(--fg); font-size: clamp(16px, 1.3vw, 18px); margin-top: 0; }
.hero--photo .btn-row { justify-content: flex-start; margin-top: 24px; max-width: none; }
/* copy block centred vertically against the photo beside it */
.hero--photo .intro, .hero--photo .wk-intro, .article-head.hero--photo > .intro { grid-row: 3; }
.hero--photo .btn-row, .hero--photo .updated, .hero--photo .article-meta { grid-row: 4; }
.hero--photo .updated, .hero--photo .article-meta { margin-top: 18px; }
.hero--photo { grid-template-rows: 1fr auto auto auto 1fr; grid-auto-rows: min-content; align-content: start; padding-block: clamp(8px, 1.5vw, 20px) clamp(32px, 5vw, 64px); }
html[dir="rtl"] .hero--photo h1, html[dir="rtl"] .article-head.hero--photo > h1 { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.3; letter-spacing: 0; }
.article-head.hero--photo { width: auto; max-width: none; margin: 0; }
@media (max-width: 860px) {
  /* phones and small tablets: copy first, then the photo at the container width, one column */
  .hero--photo, .hero--photo.wk-head, .article-head.hero--photo { display: flex; flex-direction: column; min-height: 0; width: auto; padding: 4px var(--gutter) clamp(28px, 7vw, 44px); }
  .hero--photo > .wrap { display: block; padding-block: clamp(20px, 5vw, 32px) 0; }
  .hero--photo h1, .article-head.hero--photo > h1 { white-space: normal; padding: 0; }
  .hero--photo .intro, .hero--photo .wk-intro, .article-head.hero--photo > :not(.hero-bg):not(h1) { max-width: none; }
  .hero--photo { padding-block: 4px clamp(28px, 7vw, 44px); }
  .article-head.hero--photo > h1 { padding-top: clamp(20px, 5vw, 32px); }
  .article-head.hero--photo > :last-child:not(.hero-bg) { padding-bottom: 0; }
  .hero--photo > .hero-bg { order: 99; grid-column: auto; width: 100%; aspect-ratio: 1 / 1; max-height: 70vh; min-height: 0; margin: clamp(24px, 6vw, 36px) 0 0; border-radius: 0; overflow: hidden; }
  .hero--photo > .wrap h1, .article-head.hero--photo > h1 { font-size: clamp(30px, 8.4vw, 44px); max-width: none; }
  html[dir="rtl"] .hero--photo h1, html[dir="rtl"] .article-head.hero--photo > h1 { font-size: clamp(26px, 7.2vw, 38px); }
  .hero--photo .btn-row { margin-top: 20px; }
}

/* phones and small tablets: the photo is the section background, copy sits over it (flat tint, no blur, no shadow, no boxes) */
@media (max-width: 860px) {
  .hero--photo, .hero--photo.wk-head, .article-head.hero--photo { position: relative; isolation: isolate; overflow: hidden; justify-content: flex-end; min-height: min(86svh, 680px); padding: clamp(150px, 42vw, 260px) var(--gutter) clamp(28px, 7vw, 44px); }
  .hero--photo > .hero-bg { position: absolute; inset: 0; z-index: -2; order: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; margin: 0; }
  .hero--photo > .hero-bg picture, .hero--photo > .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
  .hero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13, 16, 15, .46); pointer-events: none; }
  .hero--photo > .wrap { padding-block: 0; position: relative; }
  .hero--photo h1, .article-head.hero--photo > h1, .hero--photo .intro, .hero--photo .wk-intro, .article-head.hero--photo > .intro, .hero--photo .updated, .hero--photo .article-meta { color: #f6f4ec; }
  .article-head.hero--photo > h1 { padding-top: 0; }
  .hero--photo .btn { background: #f6f4ec; color: #1d1f1c; }
  .hero--photo .text-link { color: #f6f4ec; }
  .hero--photo .btn-row { margin-top: 20px; }
}

/* desktop: the photo is not a framed box; every edge feathers into the page background */
@media (min-width: 861px) {
  .hero--photo > .hero-bg {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    border-radius: 0;
  }
  html[dir="rtl"] .hero--photo > .hero-bg { transform: none; }
}

/* phones: no breadcrumb row, and a shorter photo band so less empty space sits above the copy */
@media (max-width: 860px) {
  .breadcrumb { display: none !important; }
  .hero--photo, .hero--photo.wk-head, .article-head.hero--photo { min-height: min(58svh, 460px); padding-top: clamp(84px, 22vw, 130px); }
}

/* About hero on phones: pale photo, so dark copy and solid black buttons instead of the dark tint */
@media (max-width: 860px) {
  .hero--photo.hero--light::after { background: rgba(242, 240, 233, .58); }
  .hero--photo.hero--light h1, .hero--photo.hero--light .intro, .hero--photo.hero--light .intro strong.kw, .hero--photo.hero--light .intro * { color: #1d1f1c; }
  .hero--photo.hero--light .btn { background: #1d1f1c; color: #fff; border-color: #1d1f1c; }
  .hero--photo.hero--light .text-link { color: #1d1f1c; }
}

/* phones: the photo band fades out at its bottom edge so it melts into the Prices section below */
@media (max-width: 860px) {
  .hero--photo { padding-bottom: clamp(44px, 11vw, 64px); }
  .hero--photo > .hero-bg, .hero--photo::after {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - clamp(44px, 11vw, 64px)), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - clamp(44px, 11vw, 64px)), transparent 100%);
  }
}
/* desktop: less dead space between the photo and the Prices heading */
@media (min-width: 861px) {
  .hero--photo { padding-bottom: clamp(8px, 1.5vw, 20px); }
}

/* phones: first-section copy reads clearly over the photo (stronger tint behind the text, soft shadow, slightly heavier intro) */
@media (max-width: 860px) {
  html body .hero--photo:not(.hero--light)::after { background: linear-gradient(to bottom, rgba(13, 16, 15, .42) 0, rgba(13, 16, 15, .64) 40%, rgba(13, 16, 15, .8) 100%); }
  html body .hero--photo:not(.hero--light) h1,
  html body .article-head.hero--photo:not(.hero--light) > h1 { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 22px rgba(0, 0, 0, .55); }
  html body .hero--photo:not(.hero--light) .intro,
  html body .hero--photo:not(.hero--light) .wk-intro,
  html body .article-head.hero--photo:not(.hero--light) > .intro,
  html body .hero--photo:not(.hero--light) .updated,
  html body .hero--photo:not(.hero--light) .article-meta { color: #fbf9f3; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 1px 14px rgba(0, 0, 0, .5); }
  html body .hero--photo .intro, html body .hero--photo .wk-intro, html body .article-head.hero--photo > .intro { font-size: clamp(16.5px, 4.4vw, 19px); line-height: 1.55; }
  html body .hero--photo.hero--light::after { background: linear-gradient(to bottom, rgba(244, 241, 233, .7) 0, rgba(244, 241, 233, .84) 45%, rgba(244, 241, 233, .9) 100%); }
  html body .hero--photo.hero--light h1,
  html body .hero--photo.hero--light .intro, html body .hero--photo.hero--light .intro *, html body .hero--photo.hero--light .wk-intro { color: #0f0d0a; text-shadow: 0 0 18px rgba(247, 244, 236, .9), 0 0 6px rgba(247, 244, 236, .7); }
  html body .hero--photo.hero--light .intro, html body .hero--photo.hero--light .wk-intro { font-weight: 500; }
}

/* About on phones: breathing room between the title and the intro copy */
@media (max-width: 860px) {
  html body .hero--photo.hero--light h1 { margin-bottom: 18px; padding-bottom: 0; }
}

/* About on phones: title and intro aligned to the start edge; the intro reads as a quotation (side rule, serif italic, regular weight) */
@media (max-width: 860px) {
  html body .hero--photo.hero--light h1, html body .hero--photo.hero--light .intro { text-align: start !important; }
  html body .hero--photo.hero--light .intro, html body .hero--photo.hero--light .intro * { font-weight: 400 !important; }
  html[lang="en"] body .hero--photo.hero--light .intro { font-family: 'EB Garamond', Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(19px, 5.2vw, 22px); line-height: 1.5; border-inline-start: 3px solid var(--accent, #a86022); padding-inline-start: 16px; margin-inline: 0; }
  html[dir="rtl"] body .hero--photo.hero--light .intro { border-inline-start: 3px solid var(--accent, #a86022); padding-inline-start: 16px; font-style: normal; }
}

/* About on desktop: the whole photo is shown (head to book), not a 4:3 crop */
@media (min-width: 861px) {
  html body .hero--photo.hero--light > .hero-bg { aspect-ratio: 1200 / 1248; max-height: 640px; width: auto; justify-self: end; }
  html body .hero--photo.hero--light > .hero-bg img, html body .hero--photo.hero--light > .hero-bg picture { object-fit: contain; }
}
