/* Self-hosted so Safari (and blockers) cannot skip fonts.gstatic.com. */
@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/amiri-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/amiri-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/amiri-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Amiri";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/amiri-arabic-400-italic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Amiri";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/amiri-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Amiri";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/amiri-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/amiri-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/amiri-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/amiri-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/markazi-text-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/markazi-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/markazi-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #fff;
  --band: #ebe8e5;
  --ink: #333;
  --muted: #6d6b69;
  --accent: #006e6e;
  --card: #fff;
  --line: #d6d3d1;
  --focus: #0c4a6e;
  --overlay: rgba(0, 0, 0, 0.72);
  --overlay-ink: #fff;
  --overlay-muted: rgba(255, 255, 255, 0.8);
  --space: 1.25rem;
  --max: 72rem;
  --font: "Amiri", "Times New Roman", serif;
  --font-title: "Inter", "Amiri", sans-serif;
  --font-title-ar: "Markazi Text", "Amiri", serif;
  --font-size-title: clamp(1.65rem, 2vw + 1rem, 2.15rem);
  --about-width: 621px;
  --footer-bg: #6d6b69;
  --footer-ink: #ece9e6;
  --footer-muted: #c5c1bc;
  --footer-logo: #5a5856;
  --footer-logo-ink: #b3afa9;
  --footer-logo-mark: rgb(236, 233, 230);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --band: #1a1a1a;
    --ink: #fff;
    --muted: #b3b0ad;
    --accent: #5ec8c8;
    --card: #111;
    --line: #2e2e2e;
    --focus: #9aeeee;
    --footer-bg: #454341;
    --footer-ink: #d6d2cd;
    --footer-muted: #a8a49f;
    --footer-logo: #353330;
    --footer-logo-ink: #8e8a85;
  }
}

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

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.35rem;
  font-synthesis: none;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

img,
video,
audio {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  transform: translateY(-200%);
  z-index: 40;
}

.skip [lang="ar"] {
  font-family: var(--font-title-ar);
  font-size: 1.05em;
}

.skip:focus {
  transform: none;
}

.site-header,
.site-main,
.site-footer-inner {
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 30;
  width: min(var(--max), calc(100% - 2 * var(--space)));
  padding-block: 1.5rem;
  font-size: 1.2rem;
}

.site-main {
  width: min(var(--max), calc(100% - 2 * var(--space)));
}

.wordmark,
.about-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
  text-decoration: none;
}

.wordmark {
  align-items: flex-start;
  font-size: var(--font-size-title);
  font-weight: 800;
  color: var(--ink);
}

.wordmark [lang="ar"],
.site-header nav .about-link [lang="ar"],
.page-heading [lang="ar"] {
  font-family: var(--font-title-ar);
  font-size: 0.825em;
}

.wordmark [lang="en"],
.about-link [lang="en"],
.page-heading [lang="en"] {
  font-family: var(--font-title);
  font-size: max(1rem, 0.62em);
}

.wordmark [lang="ar"],
.wordmark [lang="en"] {
  font-weight: 800;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-header nav a {
  min-height: 44px;
  padding-inline: 0.25rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav .about-link {
  align-items: flex-end;
  font-size: calc(var(--font-size-title) * 0.9);
  text-align: end;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  margin-inline-end: -0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}

.menu-toggle-box {
  position: relative;
  display: block;
  width: 1.375rem;
  height: 0.85rem;
}

.menu-toggle-box span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.menu-toggle-box span:nth-child(1) {
  top: 0;
}

.menu-toggle-box span:nth-child(2) {
  bottom: 0;
}

html.js .about-link {
  display: none;
}

html.js .menu-toggle {
  display: inline-flex;
}

html.js .page-gallery {
  --header-wordmark-compact: var(--font-size-title);
  --header-wordmark: max(
    var(--header-wordmark-compact),
    calc(clamp(2.75rem, 6vw + 1.5rem, 4.5rem) * 2 / 3)
  );
}

html.js.header-compact .page-gallery {
  --header-wordmark: var(--header-wordmark-compact);
}

html.js .site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
}

html.js .site-header::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  background: inherit;
  pointer-events: none;
}

html.js .page-gallery .site-header {
  align-items: flex-start;
  flex-wrap: nowrap;
  padding-bottom: 2.5rem;
}

html.js.header-compact .page-gallery .site-header {
  padding-bottom: 1.5rem;
}

html.js .page-gallery .site-header nav {
  flex-shrink: 0;
  margin-block-start: max(
    0px,
    calc(
      (
          (var(--header-wordmark-compact) * 0.825 * 1.2) +
            (max(1rem, var(--header-wordmark-compact) * 0.62) * 1.2) - 2.75rem
        ) / 2
    )
  );
}

html.js .page-gallery .site-header .wordmark {
  min-width: 0;
  font-size: var(--header-wordmark);
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

html.menu-open .site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  background: var(--band);
}

html.menu-open .menu-toggle-box span:nth-child(1) {
  top: 50%;
  margin-top: -1px;
  transform: rotate(45deg);
}

html.menu-open .menu-toggle-box span:nth-child(2) {
  top: 50%;
  bottom: auto;
  margin-top: -1px;
  transform: rotate(-45deg);
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--band);
  -webkit-overflow-scrolling: touch;
}

.site-menu-inner {
  width: min(var(--max), calc(100% - 2 * var(--space)));
  margin-inline: auto;
  padding-top: var(--menu-top, 7.5rem);
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
}

.site-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu-page,
.site-menu-work {
  display: block;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.site-menu-page,
.site-menu-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
}

.site-menu-page {
  min-height: 44px;
}

.site-menu .caption-title {
  font-size: clamp(1.15rem, 1.2vw + 0.95rem, 1.35rem);
}

.site-menu-page .caption-title[lang="en"] {
  justify-self: start;
  text-align: start;
}

.site-menu-page .caption-title[lang="ar"] {
  justify-self: end;
  text-align: end;
  font-family: var(--font-title-ar);
  line-height: 1.35;
}

.site-menu-work .caption-lang {
  width: 100%;
  min-width: 0;
  align-items: flex-start;
  gap: 0.15rem;
}

.site-menu-work .caption-title,
.site-menu-work .caption-artist {
  text-align: start;
}

.site-menu-work .caption-artist {
  font-size: 1rem;
}

.site-menu a:hover {
  color: var(--accent);
}

.site-menu a:hover .caption-title,
.site-menu a:hover .caption-artist {
  color: inherit;
}

.site-menu a[aria-current="page"] {
  color: var(--accent);
}

.site-menu a[aria-current="page"] .caption-title,
.site-menu a[aria-current="page"] .caption-artist {
  color: inherit;
}

@media (max-width: 43.99rem) {
  .site-header .wordmark {
    font-size: calc(var(--font-size-title) * 1.25);
  }

  html.js .page-gallery {
    --header-wordmark-compact: calc(var(--font-size-title) * 1.25);
  }
}

.about-link [lang="ar"],
.about-link [lang="en"] {
  font-weight: 400;
}

.site-main {
  padding-block: 0.5rem 3rem;
}

.site-footer {
  margin-top: 0;
  padding-block: 3rem calc(2.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--footer-bg);
  color: var(--footer-muted);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.25rem;
  width: min(var(--about-width), calc(100% - 2 * var(--space)));
}

.site-footer .wordmark {
  color: var(--footer-ink);
  font-size: calc(var(--font-size-title) * 0.85);
}

.site-footer .wordmark:hover {
  color: var(--footer-ink);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-about {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 7.5rem;
  min-width: 0;
  min-height: 4.5rem;
  background: var(--footer-logo);
  color: var(--footer-logo-ink);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.footer-logo:has(.footer-logo-link) {
  background: transparent;
  text-transform: none;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.4rem 0.45rem;
  color: inherit;
  text-decoration: none;
}

.footer-logo-link:hover {
  opacity: 0.85;
}

.footer-logo-mark {
  display: block;
  width: 100%;
  height: 4.5rem;
  background-color: var(--footer-logo-mark);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.footer-logo-paema {
  -webkit-mask-image: url("/logos/paema.png");
  mask-image: url("/logos/paema.png");
}

.footer-logo-choose-love {
  height: 3.35rem;
  -webkit-mask-image: url("/logos/choose-love.svg");
  mask-image: url("/logos/choose-love.svg");
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 800;
}

h1 {
  font-size: clamp(1.85rem, 2vw + 1.25rem, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

h1[lang="ar"],
h1 [lang="ar"],
[lang="ar"] > h1 {
  font-family: var(--font-title-ar);
  font-weight: 800;
}

h1[lang="en"],
h1 [lang="en"],
[lang="en"] > h1 {
  font-family: var(--font-title);
  font-weight: 800;
}

.page-gallery .site-main {
  width: min(96rem, calc(100% - 2 * var(--space)));
}

.page-work .site-header,
.page-work .site-main {
  width: calc(100% - 2 * var(--space));
}

.page-heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.15rem;
  margin-bottom: 1.75rem;
  font-size: var(--font-size-title);
  line-height: 1.2;
}

.home-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
  text-decoration: none;
}

.home-link [lang="ar"] {
  font-family: var(--font-title-ar);
}

.home-link [lang="en"] {
  font-family: var(--font-title);
  font-size: max(1rem, 0.7em);
}

.gallery {
  --gallery-row: clamp(12rem, 20vw, 20rem);
  --gallery-gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--gallery-gap);
}

.gallery > li {
  --w: 3;
  --h: 2;
  position: relative;
  flex-grow: calc(var(--w) / var(--h));
  flex-shrink: 1;
  flex-basis: min(100%, calc(var(--w) / var(--h) * var(--gallery-row)));
  aspect-ratio: var(--w) / var(--h);
  min-width: 0;
  max-width: 100%;
}

.card {
  display: block;
  position: absolute;
  inset: 0;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  background: var(--band);
  isolation: isolate;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  --overlay-pad-x: 1.25rem;
  padding: 1.5rem var(--overlay-pad-x);
  background: var(--overlay);
  opacity: 0;
}

.card-overlay .caption-inner {
  min-width: min(24rem, 100%);
  max-width: calc((100% + 2 * var(--overlay-pad-x)) * 2 / 3);
}

.card:hover .card-overlay,
.card:focus-visible .card-overlay,
.card:focus-within .card-overlay {
  opacity: 1;
}

@media (hover: none), (prefers-contrast: more), (max-width: 43.99rem) {
  .card-overlay {
    opacity: 1;
    inset: auto 0 0 0;
    padding: 0.65rem 0.85rem 0.75rem;
  }

  .card-overlay .caption-inner {
    min-width: 0;
    max-width: none;
    gap: 0.2rem;
  }

  .card-overlay .caption-lang {
    gap: 0;
  }

  .card-overlay .caption-title {
    font-size: clamp(1rem, 2.4vw + 0.55rem, 1.15rem);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .card-overlay .caption-artist,
  .card-overlay .caption-rule {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

@media (forced-colors: active) {
  .card-overlay {
    opacity: 1;
    inset: auto 0 0 0;
    background: Canvas;
    color: CanvasText;
    padding: 0.7rem 0.9rem 0.85rem;
  }

  .card-overlay .caption-title,
  .card-overlay .caption-artist {
    color: CanvasText;
    text-shadow: none;
  }
}

.caption-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 24rem;
  width: 100%;
  text-align: center;
}

.work-caption .caption-inner {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: 1.25rem;
  row-gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  text-align: start;
}

.work-caption .caption-rule {
  display: none;
}

.work-caption .caption-lang {
  flex: 1 0 16rem;
  max-width: 100%;
  min-width: 0;
  align-items: flex-start;
}

.work-caption .caption-title,
.work-caption .caption-artist {
  text-align: start;
}

.work-caption .caption-artist {
  color: var(--accent);
}

.caption-lang {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.caption-title {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 1.8vw + 0.9rem, 2.1rem);
  line-height: 1.2;
  font-weight: 800;
  overflow-wrap: break-word;
}

.caption-artist {
  display: block;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.3;
}

.caption-rule {
  display: block;
  width: 7.5rem;
  height: 2px;
  margin: 0.75rem 0;
  background: var(--accent);
  flex: none;
}

.card-overlay .caption-title,
.card-overlay .caption-artist {
  color: var(--overlay-ink);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.card-overlay .caption-title {
  font-size: clamp(1.1625rem, 1.35vw + 0.675rem, 1.575rem);
}

.card-overlay .caption-artist {
  color: var(--overlay-muted);
}

.caption-lang[lang="ar"] .caption-title {
  font-family: var(--font-title-ar);
  line-height: 1.35;
}

.prose-block[lang="ar"] .caption-title {
  font-family: var(--font-title-ar);
}

@media (max-width: 43.99rem) {
  .gallery > li {
    flex-basis: 100%;
    flex-grow: 1;
  }
}

.work-hero {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin-bottom: 0;
}

.work-hero .cover {
  display: block;
  width: 100%;
}

.work-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.work-body {
  width: min(var(--about-width), 100%);
  margin-inline: auto;
  padding-top: 2.5rem;
}

.work-body .prose {
  max-width: none;
}

.work-body .prose-block p,
.work-body .prose-block li {
  max-width: none;
}

.work-body .prose-block p {
  margin-block: 1.25em;
}

.work-body .prose h2 {
  margin: 1.85em 0 0.4em;
  font-size: 1.125em;
  line-height: 1.15;
  text-align: left;
}

.work-body .prose-block > h2:first-child {
  margin-top: 0;
}

.work-body .prose-block[lang="ar"] h2 {
  font-family: var(--font-title-ar);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.work-body .prose-block[lang="en"] h2 {
  font-family: var(--font-title);
  font-weight: 800;
}

.work-body .prose-round:has(h2) {
  gap: 0.08em;
  margin-top: 3.5rem;
}

.work-body .prose > .prose-round:has(h2):first-child {
  margin-top: 0;
}

.notice {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 1.25rem;
}

.player {
  margin-bottom: 1.75rem;
}

.player-heading {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.player-heading [lang="ar"] {
  font-family: var(--font-title-ar);
}

.player-heading [lang="en"] {
  font-family: var(--font-title);
  font-size: max(1rem, 0.7em);
}

.player-transcript {
  margin: 0.65rem 0 0;
  font-size: 1rem;
}

.player-transcript a {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.player audio,
.player video {
  display: block;
  width: 100%;
}

.prose {
  max-width: 42rem;
}

.prose-figure {
  margin: 0;
  max-width: 52rem;
}

.work-body .prose-figure {
  max-width: none;
  padding-block: 2em;
}

.work-body .prose-figure:has(figcaption) {
  padding-bottom: 0;
  margin-bottom: 2.35rem;
}

.prose-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.prose-figure figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
  font-style: italic;
}

.prose-figure figcaption p {
  margin: 0;
  max-width: none;
  text-align: left;
}

.about-body,
.about-toc-wrap,
.about-contact {
  width: min(var(--about-width), 100%);
  margin-inline: auto;
}

.about-body .prose,
.prose-about {
  max-width: none;
}

.about-body p[lang="ar"] {
  line-height: 1.75;
}

.about-toc-wrap {
  margin-top: calc(2rem + 1em);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
}

.prose th,
.prose td {
  text-align: start;
  vertical-align: top;
  padding: 0.45rem 0.65rem 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.prose th {
  font-weight: 600;
}

.about-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
}

.about-toc > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.75rem 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.about-toc > li:last-child {
  border-bottom: none;
}

.about-toc-meta,
.about-toc-desc {
  overflow-wrap: break-word;
}

.about-toc .caption-title,
.about-toc .caption-artist {
  text-align: start;
}

.about-toc .caption-title {
  font-size: 1em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}

.about-toc .caption-artist {
  font-size: 1em;
  line-height: 1.5;
}

@media (max-width: 44rem) {
  .about-toc > li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.about-contact {
  margin-top: calc(2rem + 1em);
}

.about-contact-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.15;
}

.about-contact-heading [lang="ar"] {
  font-family: var(--font-title-ar);
}

.about-contact-heading [lang="en"] {
  font-family: var(--font-title);
  font-size: max(1rem, 0.7em);
}

.about-contact p {
  margin: 0;
}

.prose-round {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 1.75rem;
}

.work-body .prose-round {
  margin-bottom: 2.35rem;
}

.prose-round:last-child {
  margin-bottom: 0;
}

.prose-block > *:first-child {
  margin-top: 0;
}

.prose-block > *:last-child {
  margin-bottom: 0;
}

.prose-block p,
.prose-block li {
  max-width: 42rem;
}

.prose-block[lang="ar"] {
  line-height: 1.75;
}

.prose-block a {
  text-decoration-thickness: 0.08em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1200px) {
  .work-hero {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    align-items: center;
  }

  .work-hero .cover {
    grid-column: 1;
    grid-row: 1;
  }

  .work-hero .work-caption {
    grid-column: 2;
    grid-row: 1;
  }

  .work-caption .caption-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    max-width: min(28rem, 100%);
  }

  .work-caption .caption-lang {
    flex: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card-overlay {
    transition: opacity 180ms ease;
  }

  .menu-toggle-box span {
    transition: transform 180ms ease, top 180ms ease, margin 180ms ease;
  }

  html.js .page-gallery .site-header {
    transition: padding-bottom 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.js .page-gallery .site-header .wordmark {
    transition: font-size 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.js .site-menu:not([hidden]) {
    animation: menu-in 180ms ease;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
