/* Sound Of Silence – responsive stylesheet */
:root {
  --bg: #000;
  --text: #fff;
  --muted: #a1a1a1;
  --line: #a7a7a7;
  --red: #d51d00;
  --red-bright: #fe2500;
  --frame: rgba(213, 28, 0, .55);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --brand-font: "Arial Unicode MS", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
}
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; }
.wrap { max-width: 700px; margin: 0 auto; }

/* ---------- header (scales with the screen, same composition as before) ---------- */
.site-header { container-type: inline-size; position: relative; }
.brand {
  display: block;
  position: relative;
  aspect-ratio: 700 / 162;
  text-decoration: none;
  color: rgb(210, 210, 210);
}
.brand img { position: absolute; display: block; max-width: none; height: auto; }
.brand .logo { left: 5.43%; top: 19.75%; width: 17.86%; z-index: 2; }
.brand .logo-reflection { left: 4.43%; top: 99.4%; width: 19.86%; z-index: 0; pointer-events: none; }
.brand .banner { left: 18.71%; top: 17.9%; width: 76.71%; z-index: 1; }
.brand-text {
  position: absolute; z-index: 3;
  left: 30.86%; top: 39%; width: 52.57%;
  text-align: center;
  font-family: var(--brand-font);
}
.brand-name { display: block; font-size: 5.14cqw; line-height: 1.2; }
.brand-tag { display: block; font-size: max(1.86cqw, 8px); line-height: 1.4; margin-top: .3em; }

/* ---------- navigation ---------- */
.site-nav { position: relative; z-index: 5; margin: 0 5%; border-bottom: 1px solid var(--line); }
.site-nav ul {
  list-style: none; margin: 0; padding: 4px 0 6px;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.site-nav li a {
  display: block; padding: 0 12px;
  font: 16px/30px var(--font);
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.site-nav li a:hover, .site-nav li a:focus-visible { color: #eee; }
.site-nav li.current a { color: #fff; font-weight: bold; }
.nav-toggle { display: none; }

.lang-bar { display: flex; justify-content: flex-end; margin: 10px 5% 0; position: relative; z-index: 5; }
.lang img { display: block; width: 41px; height: auto; }

/* ---------- content ---------- */
.page { padding: 0 5% 40px; }
.page h2 { font-size: 20px; line-height: 1.3; font-weight: normal; margin: 0 0 .7em; }
.page h3 { font-size: 15px; font-weight: bold; margin: 1.2em 0 .2em; }
.page p { margin: 0 0 1em; }
.page ul { margin: 0 0 1em; padding-left: 1.2em; }
.page .center { text-align: center; }
.page .red, .page .red a { color: var(--red); }
.page .em { font-style: italic; }
.page a:hover { color: #ddd; }
.img-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin: 1.5em 0; }
.img-row img { display: block; }

/* text pages with the showroom column */
.page.text.has-side {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
}
.page.text.has-side .side { grid-column: 1; grid-row: 1; }
.page.text.has-side .main { grid-column: 2; grid-row: 1; padding-top: 22px; }
.side { padding-top: 4px; font-size: 13px; }
.side p { margin: 0 0 .4em; }
.side a { text-decoration: none; }
.side-thumbs { display: grid; grid-template-columns: repeat(2, 45px); gap: 11px; }
.side-thumbs img { display: block; width: 45px; height: 45px; border: 1px solid var(--frame); }

/* album pages */
.album h2:first-child { text-align: center; margin: 14px 0 1.4em; }
.album .back { margin: 1.4em 0; }
.album .back a { font-weight: bold; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; margin-top: 1.5em; }
.photo { margin: 0; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; }
.photo a { display: block; }
.photo img { display: block; width: 100%; border: 2px solid var(--frame); }
.photo figcaption { margin-top: 6px; font-size: 14px; line-height: 1.35; }

/* album index pages */
.album-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 1.5em; }
.album-card { margin: 0; text-align: center; }
.album-card .cover { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--frame); background: #000; }
.album-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.album-card figcaption { margin-top: 6px; font-size: 14px; }
.album-card figcaption a { text-decoration: none; }
.album-card .meta { display: block; font-size: 12px; color: var(--muted); }

.site-footer { height: 60px; }

/* ---------- photo viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  display: none; flex-direction: column;
  touch-action: pan-y;
}
.viewer.open { display: flex; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.viewer-top a, .viewer-top button { color: #fff; }
.viewer-actions { display: flex; gap: 18px; align-items: center; }
.viewer button {
  background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 6px;
}
.viewer .viewer-close { font-size: 34px; line-height: 1; padding: 0 6px; }
.viewer-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 56px; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.viewer .viewer-prev, .viewer .viewer-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 72px; font-size: 48px; line-height: 1;
  color: #ddd; opacity: .8;
}
.viewer-prev { left: 4px; }
.viewer-next { right: 4px; }
.viewer-prev:hover, .viewer-next:hover { opacity: 1; }
.viewer-prev[disabled], .viewer-next[disabled] { opacity: .15; cursor: default; }
.viewer-caption { text-align: center; padding: 10px 16px 6px; font-size: 15px; min-height: 2.4em; }
.viewer-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 14px 14px; justify-content: safe center; scrollbar-width: thin; }
.viewer-thumbs button { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; opacity: .6; }
.viewer-thumbs button.active { border-color: rgb(30, 124, 253); opacity: 1; }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.viewer-open { overflow: hidden; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { max-width: none; }
  .brand-tag { display: none; }
  .brand-name { font-size: 6.2cqw; }
  .brand-text { top: 42%; }

  .site-nav { margin: 0 16px; }
  .nav-toggle {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 12px 4px; background: none; border: 0;
    color: #fff; font: bold 17px var(--font); cursor: pointer; text-align: left;
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 22px; height: 2px; background: #fff; position: relative; content: "";
  }
  .nav-toggle .bars::before { position: absolute; top: -7px; }
  .nav-toggle .bars::after { position: absolute; top: 7px; }
  .site-nav ul { display: none; flex-direction: column; padding: 0 0 8px; }
  .site-nav.open ul { display: flex; }
  .site-nav li a { font-size: 17px; line-height: 46px; padding: 0 4px; border-top: 1px solid #222; }

  .lang-bar { margin: 12px 16px 0; }
  .page { padding: 0 16px 32px; }
  .page h2 { font-size: 21px; }
  .page.text.has-side { display: block; }
  .page.text.has-side .main { padding-top: 6px; }
  .side { margin-top: 28px; font-size: 16px; }
  .side-thumbs { grid-template-columns: repeat(3, 64px); gap: 12px; }
  .side-thumbs img { width: 64px; height: 64px; }
  .img-row { justify-content: flex-start; gap: 20px 32px; }

  .photo-grid { gap: 22px 14px; }
  .album-grid { gap: 20px 14px; }
  .photo figcaption, .album-card figcaption { font-size: 14px; }

  .viewer-stage { padding: 0; }
  .viewer-prev, .viewer-next { display: none; }
}
@media (max-width: 380px) {
  .photo-grid, .album-grid { grid-template-columns: 1fr; }
}

/* ---------- light theme: black text on white (all pages except the Showroom section) ---------- */
body.light {
  --bg: #fff;
  --text: #000;
  --muted: #555;
  --line: #ccc;
  --red: #c41a00;
  background: #fff;
  color: #000;
}
body.light .site-nav li a:hover,
body.light .site-nav li a:focus-visible { color: #000; }
body.light .site-nav li.current a { color: #000; }
body.light .page a:hover { color: #444; }
body.light .nav-toggle { color: #000; }
body.light .nav-toggle .bars,
body.light .nav-toggle .bars::before,
body.light .nav-toggle .bars::after { background: #000; }
body.light .site-nav li a { border-color: #e5e5e5; }
body.light .photo figcaption,
body.light .album-card figcaption { color: #000; }
body.light .brand .logo-reflection { display: none; }

/* new logo with text on the white pages: logo left, banner to the right without overlap */
body.light .brand { aspect-ratio: 700 / 150; }
body.light .brand .logo { left: 5%; top: 6%; width: 26%; }
body.light .brand .banner { left: 33.5%; top: 15%; width: 61.5%; }
body.light .brand-text { left: 38%; top: 31%; width: 52%; }
body.light .brand-name { font-size: 4.15cqw; }
body.light .brand-tag { font-size: max(1.5cqw, 8px); }
@media (max-width: 640px) {
  body.light .brand-name { font-size: 5cqw; }
  body.light .brand-text { top: 36%; }
}

/* white pages: only the tagline in the banner */
body.light .brand-text { left: 33.5%; width: 61.5%; top: 45%; }
body.light .brand-tag { font-size: 1.9cqw; margin: 0; white-space: nowrap; }
@media (max-width: 640px) {
  body.light .brand-text { top: 43%; }
  body.light .brand-tag { display: block; font-size: max(2.3cqw, 8.5px); }
}

/* white pages: wider layout on computers (max 1000px) */
body.light .wrap { max-width: 1000px; }
body.light .site-nav { margin: 0 5%; }
body.light .lang-bar { margin-left: 5%; margin-right: 5%; }
@media (min-width: 641px) {
  body.light { font-size: 16px; }
  body.light .page h2 { font-size: 22px; }
  body.light .page h3 { font-size: 16px; }
  body.light .page.text.has-side { grid-template-columns: 200px minmax(0, 1fr); column-gap: 48px; }
  body.light .page.text .main { max-width: 680px; }
  body.light .page.album > p,
  body.light .page.album > h3,
  body.light .page.album > ul { max-width: 760px; }
  body.light .side-thumbs { grid-template-columns: repeat(2, 56px); gap: 12px; }
  body.light .side-thumbs img { width: 56px; height: 56px; }
  body.light .side { font-size: 14px; }
}
@media (min-width: 860px) {
  body.light .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
}

/* white pages: max 1200px; above 1000px the header keeps its 1000px size (logo left, banner right) */
body.light .wrap { max-width: 1200px; }
@media (min-width: 1001px) {
  body.light .brand { aspect-ratio: auto; height: 214px; }
  body.light .brand .logo { left: 5%; top: 13px; width: 260px; }
  body.light .brand .banner { left: auto; right: 5%; top: 32px; width: 615px; }
  body.light .brand-text { left: auto; right: 5%; width: 615px; top: 96px; }
  body.light .brand-tag { font-size: 19px; }
  body.light .page.text .main { max-width: 760px; }
  body.light .page.text.has-side { grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; }
}
@media (min-width: 1100px) {
  body.light .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
}

/* white pages: centred logo with the tagline underneath, no banner */
body.light .brand.brand-light {
  aspect-ratio: auto; height: auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 16px 16px;
  color: #333;
}
body.light .brand.brand-light .logo {
  position: static; display: block;
  width: clamp(170px, 24vw, 260px); height: auto;
}
body.light .brand.brand-light .brand-tag {
  display: block; position: static;
  margin-top: 12px;
  font: 16px/1.4 var(--font); letter-spacing: .02em;
  white-space: normal; text-align: center;
}
@media (max-width: 640px) {
  body.light .brand.brand-light { padding: 16px 16px 8px; }
  body.light .brand.brand-light .brand-tag { font-size: 14px; margin-top: 8px; }
}

/* white pages: tighter line spacing */
body.light { line-height: 1.4; }
body.light .page p { margin: 0 0 .7em; }
body.light .page ul { margin: 0 0 .7em; }
body.light .page h2 { margin: 0 0 .5em; }
body.light .page h3 { margin: .9em 0 .15em; }
body.light .viewer { line-height: 1.6; }

/* white pages: no red text */
body.light .page .red,
body.light .page .red a,
body.light .page a.red { color: #000; }

/* album pages with the showroom column (Custom Made, Pedal Boards) */
.page.album.has-side { display: grid; grid-template-columns: 185px minmax(0, 1fr); column-gap: 28px; align-items: start; }
.page.album.has-side .side { grid-column: 1; grid-row: 1; padding-top: 26px; }
.page.album.has-side .main { grid-column: 2; grid-row: 1; }
.page.album.has-side .main > p, .page.album.has-side .main > h3, .page.album.has-side .main > ul { max-width: 760px; }
@media (min-width: 641px) {
  body.light .page.album.has-side { grid-template-columns: 200px minmax(0, 1fr); column-gap: 48px; }
}
@media (min-width: 1001px) {
  body.light .page.album.has-side { grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; }
}
@media (min-width: 1100px) {
  body.light .page.album.has-side .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page.album.has-side { display: block; }
  .page.album.has-side .side { padding-top: 0; }
}

/* same text layout as Test your gear on Custom Made, Pedal Boards and Highlights */
body.light .lang-bar.lang-empty { height: 29px; }
body.light .page.album.has-side .main { padding-top: 22px; }
body.light .page.album.has-side .main > h2:first-child { text-align: left; margin: 0 0 .5em; }
@media (max-width: 640px) {
  body.light .page.album.has-side .main { padding-top: 6px; }
  body.light .lang-bar.lang-empty { height: 0; margin-top: 0; }
}

/* white pages: showroom column on the right, a bit further down */
@media (min-width: 641px) {
  body.light .page.has-side { grid-template-columns: minmax(0, 1fr) 200px; }
  body.light .page.has-side .main { grid-column: 1; grid-row: 1; }
  body.light .page.has-side .side { grid-column: 2; grid-row: 1; padding-top: 64px; }
}
@media (min-width: 1001px) {
  body.light .page.has-side { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (min-width: 641px) {
  body.light .page.text.has-side,
  body.light .page.album.has-side { grid-template-columns: minmax(0, 1fr) 200px; column-gap: 48px; }
  body.light .page.text.has-side .main,
  body.light .page.album.has-side .main { grid-column: 1; grid-row: 1; }
  body.light .page.text.has-side .side,
  body.light .page.album.has-side .side { grid-column: 2; grid-row: 1; padding-top: 64px; }
}
@media (min-width: 1001px) {
  body.light .page.text.has-side,
  body.light .page.album.has-side { column-gap: 64px; }
}

/* correction: showroom column back on the left, a bit further down */
@media (min-width: 641px) {
  body.light .page.text.has-side,
  body.light .page.album.has-side { grid-template-columns: 200px minmax(0, 1fr); }
  body.light .page.text.has-side .side,
  body.light .page.album.has-side .side { grid-column: 1; grid-row: 1; padding-top: 64px; }
  body.light .page.text.has-side .main,
  body.light .page.album.has-side .main { grid-column: 2; grid-row: 1; }
}
@media (min-width: 1001px) {
  body.light .page.text.has-side,
  body.light .page.album.has-side { grid-template-columns: 220px minmax(0, 1fr); }
}

/* Showroom section on the white theme: same text layout as the other pages */
@media (min-width: 641px) {
  body.light .page.album:not(.has-side),
  body.light .page.index { padding-top: 22px; }
}
body.light .page.album:not(.has-side) > h2:first-child,
body.light .page.index > h2:first-child { text-align: left; margin: 0 0 .5em; }
body.light .page.index > .center,
body.light .page.album:not(.has-side) > .center { text-align: left; }
body.light .page.album:not(.has-side) > p,
body.light .page.index > p { max-width: 760px; }
@media (min-width: 860px) {
  body.light .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (min-width: 1100px) {
  body.light .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* price list (Pedal Boards / Pedalbord) */
.page table.prices { border-collapse: collapse; margin: 0 0 .7em; font-weight: bold; }
.page table.prices th { text-align: left; font-weight: bold; padding: 0 2em 0 0; }
.page table.prices td { text-align: right; white-space: nowrap; padding: 0; }

/* Showroom / Showroom 2: centred title and intro */
body.light .page.index > h2:first-child,
body.light .page.index > p,
body.light .page.index > .center { text-align: center; margin-left: auto; margin-right: auto; }

/* Facebook / Instagram buttons */
.social { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.4em 0; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px 0 18px;
  border-radius: 999px;
  color: #fff !important; text-decoration: none;
  font: bold 16px/1 var(--font); letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.social-btn svg { flex: 0 0 auto; }
.social-btn.fb { background: #1877f2; }
.social-btn.ig { background: linear-gradient(45deg, #f9a825 0%, #e1306c 45%, #833ab4 100%); }
.social-btn:hover, .social-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.22); filter: brightness(1.05); }
@media (max-width: 640px) {
  .social-btn { flex: 1 1 140px; justify-content: center; }
}
.social-btn.li { background: #0a66c2; }

/* menu: rounded buttons (style B) */
@media (min-width: 641px) {
  body.light .site-nav { border-bottom: 0; }
  body.light .site-nav ul { gap: 6px; padding: 8px 0 14px; }
  body.light .site-nav li a {
    padding: 0 16px; font-size: 15px; line-height: 36px;
    border-radius: 999px; color: #333;
    transition: background .15s, color .15s;
  }
  body.light .site-nav li a:hover,
  body.light .site-nav li a:focus-visible { background: #f0f0f0; color: #000; }
  body.light .site-nav li.current a,
  body.light .site-nav li.current a:hover { background: #111; color: #fff; font-weight: bold; }
}
@media (max-width: 640px) {
  body.light .site-nav ul { gap: 4px; padding: 4px 0 12px; }
  body.light .site-nav li a { border-top: 0; border-radius: 10px; padding: 0 14px; color: #333; }
  body.light .site-nav li a:active { background: #f0f0f0; }
  body.light .site-nav li.current a { background: #111; color: #fff; }
}

/* keep the thin line under the menu */
body.light .site-nav { border-bottom: 1px solid var(--line); }

/* no red frames around images */
.photo img,
.album-card .cover,
.side-thumbs img { border: 0; }

/* Facebook / Instagram / LinkedIn one centimetre lower */
.social { margin-top: calc(1.4em + 1cm); }

/* Showroom photo viewer: white background, no download */
body.showroom .viewer { background: #fff; }
body.showroom .viewer-top,
body.showroom .viewer-top a,
body.showroom .viewer-top button,
body.showroom .viewer .viewer-close { color: #000; }
body.showroom .viewer-count { color: #555; }
body.showroom .viewer-caption { color: #000; }
body.showroom .viewer .viewer-prev,
body.showroom .viewer .viewer-next { color: #333; }
body.showroom .viewer-download { display: none; }

/* photo viewer: white background and no download on every page */
body.light .viewer { background: #fff; }
body.light .viewer-top,
body.light .viewer-top a,
body.light .viewer-top button,
body.light .viewer .viewer-close,
body.light .viewer-caption { color: #000; }
body.light .viewer-count { color: #555; }
body.light .viewer .viewer-prev,
body.light .viewer .viewer-next { color: #333; }
body.light .viewer-download { display: none; }

/* menu pages (not Showroom): text column centred on the page */
@media (min-width: 641px) {
  body.menu-page .page.text .main { margin-left: auto; margin-right: auto; }
  body.menu-page .page.album > h2,
  body.menu-page .page.album > p,
  body.menu-page .page.album > h3,
  body.menu-page .page.album > ul,
  body.menu-page .page.album > table,
  body.menu-page .page.album > .back { max-width: 760px; margin-left: auto; margin-right: auto; }
  body.menu-page .page.album > table.prices { margin-left: calc((100% - min(760px, 100%)) / 2); }
  body.menu-page .social { max-width: 760px; }
}
@media (min-width: 641px) {
  body.light.menu-page .page.album > h2:first-child { margin: 0 auto .5em; max-width: 760px; }
}

/* menu pages: every line centred */
@media (min-width: 641px) {
  body.menu-page .page.text .main,
  body.menu-page .page.album > h2,
  body.menu-page .page.album > p,
  body.menu-page .page.album > h3,
  body.light.menu-page .page.album > h2:first-child { text-align: center; }
  body.menu-page .social { justify-content: center; max-width: none; }
  body.menu-page .page ul { list-style-position: inside; padding-left: 0; }
  body.light.menu-page .page.album > table.prices { margin-left: auto; margin-right: auto; }
}
@media (min-width: 641px) {
  body.menu-page .page.album > ul { text-align: center; list-style-position: inside; padding-left: 0; max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* artist pages: centred text (like the menu pages) */
@media (min-width: 641px) {
  body.menu-page .page.album > .back { text-align: center; }
}

/* artist pages: all text and links centred, also on phones */
body.artist-page .page.album > h2,
body.artist-page .page.album > h3,
body.artist-page .page.album > p,
body.artist-page .page.album > .center,
body.artist-page .page.album > .back,
body.light.artist-page .page.album > h2:first-child { text-align: center; margin-left: auto; margin-right: auto; }
body.artist-page .page.album > ul { list-style-position: inside; padding-left: 0; text-align: center; }
body.light.artist-page .page.album:not(.has-side) > p,
body.light.artist-page .page.album:not(.has-side) > .center,
body.light.artist-page .page.album:not(.has-side) > h2,
body.light.artist-page .page.album:not(.has-side) > h3 { text-align: center; }

/* artist pages with only one or two photos: centre them */
body.artist-page .photo-grid:has(> .photo:only-child),
body.artist-page .photo-grid:has(> .photo:nth-child(2):last-child) {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 32px 24px;
}
body.artist-page .photo-grid:has(> .photo:only-child) > .photo,
body.artist-page .photo-grid:has(> .photo:nth-child(2):last-child) > .photo { width: calc((100% - 28px) / 2); }
@media (min-width: 860px) {
  body.artist-page .photo-grid:has(> .photo:only-child) > .photo,
  body.artist-page .photo-grid:has(> .photo:nth-child(2):last-child) > .photo { width: calc((100% - 48px) / 3); }
}
@media (min-width: 1100px) {
  body.artist-page .photo-grid:has(> .photo:only-child) > .photo,
  body.artist-page .photo-grid:has(> .photo:nth-child(2):last-child) > .photo { width: calc((100% - 72px) / 4); }
}
@media (max-width: 640px) {
  body.artist-page .photo-grid:has(> .photo:only-child),
  body.artist-page .photo-grid:has(> .photo:nth-child(2):last-child) { gap: 22px 14px; }
  body.artist-page .photo-grid:has(> .photo:only-child) > .photo,
  body.artist-page .photo-grid:has(> .photo:nth-child(2):last-child) > .photo { width: calc((100% - 14px) / 2); }
}
@media (max-width: 380px) {
  body.artist-page .photo-grid:has(> .photo:only-child) > .photo,
  body.artist-page .photo-grid:has(> .photo:nth-child(2):last-child) > .photo { width: 100%; }
}

/* artist pages: everything above the photos (name, links, back link) is always centred */
body.light.artist-page .page.album > *:not(.photo-grid) { text-align: center; margin-left: auto; margin-right: auto; }
body.light.artist-page .page.album > *:not(.photo-grid) a { display: inline-block; }

/* language switch (EN | SV) */
.lang-switch {
  display: inline-flex; border: 1px solid #111; border-radius: 999px; overflow: hidden;
  font: 600 13px/1 Arial, Helvetica, sans-serif; letter-spacing: .06em;
}
.lang-switch a, .lang-switch span { display: block; padding: 8px 14px; color: #111; text-decoration: none; }
.lang-switch span { background: #111; color: #fff; }
.lang-switch a:hover, .lang-switch a:focus-visible { background: #f0f0f0; color: #000; }

/* e-mail link above the social buttons (Home / Hem) */
.page .email-link { margin: calc(1.4em + 1cm) 0 0; }
.page .email-link + .social { margin-top: 16px; }
.email-link a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px 0 18px; border-radius: 999px;
  background: #111; color: #fff !important; text-decoration: none;
  font: bold 16px/1 var(--font); letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.email-link a:hover, .email-link a:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.22); }
@media (min-width: 641px) { body.menu-page .page .email-link { text-align: center; } }
body.light .page p.email-link { margin: calc(1.4em + 1cm) 0 0; }
body.light .page p.email-link.compact { margin: .4em 0 .6em; }
body.light .page p.email-link.compact { margin-top: 1.8em; }

/* photo captions always reserve two lines, so a caption that wraps doesn't push its photo up */
.photo figcaption { min-height: 2.7em; }

/* artist pages: all thumbnails the same 4:3 size (the full photo shows in the viewer) */
body.artist-page .photo-grid .photo a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
body.artist-page .photo-grid .photo img { width: 100%; height: 100%; object-fit: cover; }
/* no cropping: the whole photo is shown inside the same 4:3 box */
body.artist-page .photo-grid .photo img { object-fit: contain; object-position: center bottom; }

/* artist pages: every photo the same height, whole photo shown (no cropping), width follows the photo */
body.artist-page .photo-grid,
body.artist-page .photo-grid:has(> .photo:only-child),
body.artist-page .photo-grid:has(> .photo:nth-child(2):last-child) {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 28px 24px;
}
body.artist-page .photo-grid > .photo,
body.artist-page .photo-grid:has(> .photo:only-child) > .photo,
body.artist-page .photo-grid:has(> .photo:nth-child(2):last-child) > .photo { width: auto; max-width: 100%; }
body.artist-page .photo-grid .photo a { aspect-ratio: auto; overflow: visible; display: block; }
body.artist-page .photo-grid .photo img { height: 230px; width: auto; max-width: 100%; object-fit: contain; }
body.artist-page .photo-grid .photo figcaption { max-width: 100%; }
@media (max-width: 640px) {
  body.artist-page .photo-grid { gap: 18px 12px; }
  body.artist-page .photo-grid .photo img { height: 150px; }
}
body.light .page p.email-link.compact.tight { margin-top: .2em; margin-bottom: 1.4em; }
@media (min-width: 641px) { body.menu-page .page.album > p.email-link { text-align: center; } }
body.light.menu-page .page.album > p.email-link { margin-left: auto; margin-right: auto; }

/* e-mail button a little smaller everywhere */
.email-link a { min-height: 40px; padding: 0 18px 0 15px; gap: 8px; font-size: 14px; }
.email-link a svg { width: 17px; height: 17px; }
