/* Ayham Riyadh — identities and printed pages. */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/IBMPlexSansArabic-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');
}

:root {
  --paper: #F6F4F0;
  --ink: #1E2C48;
  --body: #343E4C;
  --muted: #62666B;
  --rule: #D6D3CD;
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; scrollbar-gutter: stable; background-color: var(--paper); }
body { min-height: 100svh; background-color: var(--paper); color: var(--body); font-family: var(--font); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
::selection { background: #DED9CD; color: var(--ink); }
.container { width: min(100% - 6rem, 1176px); margin-inline: auto; }
.skip-link { position: fixed; top: 0.75rem; inset-inline-start: 1rem; transform: translateY(-180%); background: var(--ink); color: white; padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* A quiet running header. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.site-nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--rule); }
.nav-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); }
.brand-signature { width: 68px; height: auto; }
.brand-name { font-size: 0.9rem; font-weight: 500; }
.nav-menu-wrapper, .nav-menu, .nav-actions { display: flex; align-items: center; }
.nav-menu-wrapper { gap: 2.75rem; }
.nav-menu { list-style: none; gap: 1.75rem; }
.nav-link { display: block; padding-block: 0.65rem; font-size: 0.85rem; text-decoration: none; position: relative; }
.nav-link::after { content: ''; position: absolute; inset-inline: 0; bottom: 0.4rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 250ms var(--ease-out); }
[dir="ltr"] .nav-link::after { transform-origin: left; }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-actions { gap: 0.75rem; }
.lang-toggle-btn { min-height: 44px; border: 0; background: none; display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; direction: ltr; }
.lang-active { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.lang-inactive, .lang-separator { color: var(--muted); }
.nav-mobile-toggle { display: none; }

/* Name, a short introduction, and the work. */
.hero-section { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 5vw, 4.5rem); align-items: center; }
.hero-title { color: var(--ink); font-size: clamp(3.5rem, 7.2vw, 6.5rem); font-weight: 500; line-height: 1.35; }
.hero-subtitle { font-size: clamp(1.25rem, 2.3vw, 1.7rem); font-weight: 400; margin-top: 0.5rem; }
.hero-note { padding-top: 1.25rem; }
.hero-statement { font-size: 1rem; line-height: 1.95; max-width: 23rem; }
.text-link { display: inline-flex; align-items: center; gap: 1.25rem; color: var(--ink); font-size: 0.85rem; }
.hero-work-link { margin-top: 1.2rem; gap: 0.65rem; text-decoration: none; }
.hero-work-link > span { text-decoration: underline; text-underline-offset: 5px; }
.direction-arrow { display: block; width: 14px; height: 14px; flex: 0 0 14px; }
[dir="rtl"] .hero-work-link .direction-arrow { position: relative; top: -1px; }
.hero-work-link .direction-arrow { transition: translate 250ms var(--ease-out); }
.hero-work-link:hover .direction-arrow { translate: -2px 0; }
[dir="ltr"] .hero-work-link:hover .direction-arrow { translate: 2px 0; }
[dir="ltr"] .direction-arrow { transform: scaleX(-1); }
.hero-signature { width: 110px; margin-top: 1.75rem; opacity: 0.8; }
[dir="ltr"] .hero-title { font-size: clamp(3rem, 6.2vw, 5.5rem); line-height: 1.12; letter-spacing: -0.055em; }
[dir="ltr"] .hero-subtitle { margin-top: 1.1rem; }

/* Alternate tinted project sections with the page background. */
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--ink); }
.section-title { color: var(--ink); font-weight: 500; font-size: 1.55rem; line-height: 1.5; }
.section-meta { font-size: 0.75rem; color: var(--muted); }
.project-card {
  --project-paper: #EFE6D7;
  --project-ink: #3C352B;
  --project-muted: #665B4B;
  --project-rule: #B9A98E;
  --project-stage: #F7F1E7;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  margin-bottom: 2rem;
  background: var(--project-paper);
  color: var(--project-ink);
  scroll-margin-top: 1rem;
}
.works-section > .project-card:nth-of-type(even) { background: transparent; padding-inline: 0; }
#project-fayd-magazine {
  --project-ink: #30383C;
  --project-muted: #626965;
  --project-rule: #BFC3BC;
  --project-stage: #E1E1E1;
  padding: 2rem 0;
  margin-block: 2rem 3rem;
}
#project-fayd-magazine .project-media-frame { padding: 0; }
.video-project {
  --project-paper: #EEEDE8;
  --project-ink: #1E2C48;
  --project-muted: #62666B;
  --project-rule: #C9C8C1;
}
.project-card:last-child { margin-bottom: 4rem; }
.project-card :focus-visible { outline-color: var(--project-ink); }
.project-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 0.65rem;
  min-width: 0;
  margin-bottom: 1.75rem;
}
.project-meta-row { grid-column: 1 / -1; display: flex; gap: 0.75rem; align-items: center; color: var(--project-muted); font-size: 0.75rem; padding-bottom: 1.25rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--project-rule); }
.project-index { color: var(--project-ink); font-variant-numeric: tabular-nums; margin-inline-end: 0.25rem; font-size: 0.9rem; }
.project-year { margin-inline-start: auto; }
.project-title { grid-column: 1; grid-row: 2 / span 2; align-self: start; font-size: clamp(2rem, 3.7vw, 3.4rem); font-weight: 500; line-height: 1.3; margin: 0; }
[dir="ltr"] .project-title { letter-spacing: -0.035em; }
.project-description, .project-note > p { font-size: 0.9rem; line-height: 1.85; }
.project-description { grid-column: 2; max-width: 40rem; }
.project-note { grid-column: 2; max-width: 40rem; color: var(--project-muted); }
.project-note summary { display: flex; align-items: center; gap: 0.75rem; width: fit-content; min-height: 44px; font-size: 0.8rem; list-style: none; cursor: pointer; }
.project-note summary::-webkit-details-marker { display: none; }
.project-note summary:hover { color: var(--project-ink); }
.note-toggle { font: 1.2rem Arial, sans-serif; transition: transform 150ms ease; }
.project-note[open] .note-toggle { transform: rotate(45deg); }
.project-note > p { padding-block: 0.25rem 0.75rem; }
@keyframes note-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.project-note[open] > p { animation: note-enter 300ms var(--ease-out); }
.project-visual { width: 100%; container-type: inline-size; }
.project-media-frame { display: block; width: 100%; padding: clamp(12px, 2vw, 24px); border: 0; background: var(--project-stage); position: relative; text-align: inherit; cursor: zoom-in; }
.gallery-image-stage, .lightbox-stage { display: block; position: relative; width: 100%; height: 100%; min-height: 0; isolation: isolate; }
.project-media-frame img, .lightbox-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.image-transition-layer { position: absolute; inset: 0; background-position: center; background-size: contain; background-repeat: no-repeat; pointer-events: none; }
/* Reserve space for the actual caption and controls, including translated text. */
.main-media { height: min(600px, 100cqw, calc(100svh - var(--header-height, 88px) - var(--gallery-chrome-height, 132px) - 32px)); }
#project-fayd-magazine .main-media { height: min(600px, 75cqw, calc(100svh - var(--header-height, 88px) - var(--gallery-chrome-height, 132px) - 32px)); }
.gallery-footer { padding-top: 0.75rem; }
.image-caption-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.project-image-caption { flex: 1; min-width: 0; font-size: 0.8rem; line-height: 1.65; }
.gallery-position { font-size: 0.76rem; color: var(--project-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gallery-toolbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 0.75rem; }
.project-gallery-thumbs { display: flex; gap: 0.5rem; min-width: 0; }
.thumb-btn { width: 68px; height: 68px; padding: 4px; background: transparent; border: 1px solid transparent; flex: 0 1 68px; transition: border-color 220ms ease, background-color 220ms ease, transform 300ms var(--ease-out); }
#project-fayd-magazine .thumb-btn { width: 88px; height: 66px; flex-basis: 88px; }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.thumb-btn.active { border-color: var(--project-ink); }
.thumb-btn:hover { background: var(--project-rule); transform: translateY(-3px); }
.thumb-btn:active { transform: translateY(0); }
.gallery-open { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 44px; padding: 0.35rem 0.85rem; border: 1px solid var(--project-rule); background: transparent; font-size: 0.75rem; transition: background-color 220ms ease, color 220ms ease; }
.gallery-open:hover { color: var(--project-paper); background: var(--project-ink); }
.gallery-open > span:last-child { font: 1.1rem Arial, sans-serif; transition: transform 300ms var(--ease-out); }
.gallery-open:hover > span:last-child { transform: translate(2px, -2px); }
.project-tools { display: flex; align-items: baseline; gap: 0.65rem 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--project-rule); }
.project-tools dt { font-size: 0.75rem; color: var(--project-muted); }
.software-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; list-style: none; font-size: 0.85rem; direction: ltr; }
.software-list li + li { border-inline-start: 1px solid var(--project-rule); padding-inline-start: 1.25rem; }

/* The original thumbnail links directly to the published video. */
.video-project .project-title { grid-row: 2; font-size: clamp(1.75rem, 3vw, 2.8rem); }
.video-project .project-description { align-self: center; }
.video-preview { position: relative; width: min(100%, calc((100svh - 14rem) * 1.777778)); aspect-ratio: 16 / 9; margin-inline: auto; background: #15191C; }
.video-poster { position: relative; display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; text-decoration: none; }
.video-poster img { width: 100%; height: 100%; object-fit: contain; }
.video-play-control { position: absolute; inset-inline-start: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.65rem; min-height: 48px; padding: 0.6rem 1rem; background: var(--paper); color: var(--ink); box-shadow: 0 3px 18px #0003; font-size: 0.85rem; transition: transform 250ms var(--ease-out), background-color 250ms ease; }
.video-play-control svg { flex-shrink: 0; }
.video-poster:hover .video-play-control { transform: translateY(-3px); background: white; }
.video-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; }
.video-attribution { color: var(--project-muted); font-size: 0.8rem; }
.video-attribution a { display: inline-block; color: var(--project-ink); margin-inline-start: 0.35rem; }
.video-external-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 44px; font-size: 0.8rem; text-decoration: none; }
.video-external-link:hover { text-decoration: underline; }
.video-external-link > span:last-child { font: 1.1rem Arial, sans-serif; }

/* Direct contact. */
.site-footer { background: #ECE9E2; padding-block: 3.5rem 1.5rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); padding-bottom: 3.5rem; align-items: start; }
.footer-heading { color: var(--ink); font-size: clamp(1.75rem, 3.3vw, 2.5rem); line-height: 1.4; font-weight: 500; }
.footer-intro p { margin-top: 0.85rem; max-width: 26rem; font-size: 0.9rem; line-height: 1.9; color: var(--muted); }
.footer-links-group { min-width: 0; }
.contact-row { border-bottom: 1px solid #CFCCC5; padding-block: 0.65rem 1rem; }
.contact-row:first-child { border-top: 1px solid #CFCCC5; }
.contact-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.contact-label { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; color: var(--ink); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.5; text-decoration: none; }
.contact-value { min-width: 0; }
.contact-link-arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; font: 1.4rem Arial, sans-serif; transition: transform 250ms var(--ease-out); }
.contact-link:hover .contact-value { text-decoration: underline; }
.contact-link:hover .contact-link-arrow { transform: translate(3px, -3px); }
.copy-email-btn { display: flex; align-items: center; justify-content: center; border: 0; background: transparent; min-height: 44px; min-width: 44px; position: relative; transition: background-color 220ms ease; }
.copy-email-btn:hover { background: #DEDAD1; }
.copy-toast { position: absolute; bottom: calc(100% + 0.5rem); inset-inline-end: 0; padding: 0.3rem 0.65rem; background: var(--ink); color: white; white-space: nowrap; opacity: 0; pointer-events: none; font-size: 0.75rem; }
.copy-toast.show { opacity: 1; }
.footer-bottom { border-top: 1px solid #CFCCC5; padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-bottom p { font-size: 0.7rem; color: var(--muted); }
.footer-top-link { padding-block: 0.5rem; }
.footer-top-link img { width: 76px; }

/* Image viewer. Hidden controls stay out of keyboard navigation. */
.lightbox-modal { position: fixed; inset: 0; background: rgba(24, 27, 28, 0.97); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 4.75rem 5rem 2rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 300ms ease, visibility 300ms ease; }
.lightbox-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-content { width: min(1120px, 100%); height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; transform: translateY(12px) scale(0.98); transition: transform 400ms var(--ease-out); }
.lightbox-modal.active .lightbox-content { transform: translateY(0) scale(1); }
.lightbox-img { touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lightbox-close, .lightbox-nav-btn { display: flex; align-items: center; justify-content: center; position: absolute; width: 48px; height: 48px; border: 1px solid #74777D; background: transparent; color: var(--paper); }
.lightbox-close:hover, .lightbox-nav-btn:hover { background: #353A44; }
.lightbox-modal :focus-visible { outline-color: var(--paper); }
.lightbox-close { inset-inline-end: 1.5rem; top: 1.25rem; font-size: 1.8rem; line-height: 1; }
.lightbox-nav-btn { top: calc(50% - 24px); }
.lightbox-prev { inset-inline-start: 1rem; }
.lightbox-next { inset-inline-end: 1rem; }
[dir="rtl"] .lightbox-nav-btn svg { transform: rotate(180deg); }
.lightbox-footer { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; margin-top: 0.85rem; color: var(--paper); min-height: 2.75rem; }
.lightbox-caption { font-size: 0.8rem; line-height: 1.7; }
.lightbox-counter { font-size: 0.75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lightbox-thumbs { display: flex; gap: 0.2rem; margin-top: 0.25rem; }
.lightbox-thumb-dot { width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.lightbox-thumb-dot::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; top: 19px; left: 19px; background: #74777D; }
.lightbox-thumb-dot.active::after { background: var(--paper); }

@media (min-width: 1600px) { .container { width: min(100% - 8rem, 1240px); } }
/* A smaller video feature changes the pace after the two image galleries. */
@media (min-width: 1001px) {
  .video-project { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); align-items: center; gap: 2.5rem; }
  .video-project .project-content { display: block; margin: 0; }
  .video-project .project-meta-row { border: 0; padding-bottom: 0; margin-bottom: 1.25rem; }
  .video-project .project-title { font-size: clamp(1.9rem, 2.7vw, 2.6rem); margin-bottom: 1.25rem; }
  .video-project .project-description { max-width: 25rem; }
  .video-project .video-footer { gap: 0.25rem 1rem; }
}
@media (max-width: 1000px) {
  .container { width: calc(100% - 4rem); }
  .hero-section { gap: 2.5rem; }
  .hero-title { font-size: 5rem; }
  [dir="ltr"] .hero-title { font-size: 4.1rem; }
  .nav-menu-wrapper { gap: 1.75rem; }
  .footer-top { column-gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .project-content { column-gap: 2rem; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 5rem; scrollbar-gutter: auto; }
  .container { width: calc(100% - 2.5rem); }
  .site-nav { min-height: 74px; position: relative; }
  .brand-signature { width: 58px; }
  .brand-name { font-size: 0.8rem; }
  .nav-brand { gap: 0.65rem; }
  .nav-menu-wrapper { gap: 0.75rem; }
  .nav-actions { gap: 0.5rem; }
  .nav-mobile-toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--rule); background: transparent; }
  .toggle-line { width: 18px; height: 1px; background: var(--ink); transition: transform 150ms ease; }
  .nav-mobile-toggle.active .toggle-line:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-mobile-toggle.active .toggle-line:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav-menu { position: absolute; top: 100%; left: -1.25rem; right: -1.25rem; padding: 0.75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; gap: 0; align-items: stretch; visibility: hidden; opacity: 0; pointer-events: none; }
  .nav-menu.open { visibility: visible; opacity: 1; pointer-events: auto; }
  .nav-link { padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
  .hero-section { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 3rem; }
  .hero-title { font-size: clamp(3.5rem, 13vw, 5.5rem); }
  [dir="ltr"] .hero-title { font-size: clamp(3.1rem, 11.5vw, 5rem); max-width: 36rem; }
  .hero-note { padding-top: 0; }
  .hero-statement { max-width: 34rem; font-size: 0.95rem; }
  .hero-signature { display: none; }
  .hero-work-link { margin-top: 1rem; }
  .section-header { padding-block: 1.2rem; }
  .section-title { font-size: 1.4rem; }
  .project-card { padding: 1.25rem; margin-inline: -0.5rem; margin-bottom: 1rem; }
  .project-card:last-child { margin-bottom: 2.5rem; }
  #project-fayd-magazine { margin-inline: -0.5rem; padding: 1.5rem 0; margin-block: 1.5rem; }
  #project-fayd-magazine .project-content, #project-fayd-magazine .gallery-footer, #project-fayd-magazine .project-tools { margin-inline: 0.5rem; }
  .project-content { display: block; margin-bottom: 1rem; }
  .project-meta-row { padding-bottom: 0.85rem; }
  .project-title { font-size: clamp(1.8rem, 7.5vw, 2.75rem); margin-block: 1rem 0.65rem; }
  .project-description, .project-note > p { font-size: 0.88rem; }
  .project-note { margin-top: 0.25rem; }
  .project-media-frame { padding: 10px; }
  .gallery-toolbar { gap: 0.65rem; flex-wrap: wrap; }
  .project-gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 68px)); gap: 0.35rem; flex: 1 1 100%; }
  .thumb-btn { width: 100%; height: 68px; }
  #project-fayd-magazine .project-gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 84px)); gap: 0.35rem; }
  #project-fayd-magazine .thumb-btn { width: 100%; height: 62px; }
  .gallery-open { margin-inline-start: auto; }
  .project-image-caption { font-size: 0.75rem; }
  .video-project .project-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .video-play-control { inset-inline-start: 0.65rem; bottom: 0.65rem; padding: 0.45rem 0.75rem; min-height: 44px; font-size: 0.75rem; }
  .video-footer { gap: 0.35rem 1rem; margin-top: 0.75rem; }
  .site-footer { padding-block: 2.75rem 1.25rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2.5rem; }
  .contact-link { font-size: clamp(1.3rem, 5.7vw, 1.7rem); }
  .contact-value { overflow-wrap: anywhere; }
  .lightbox-modal { padding: 4.75rem 1rem 6rem; }
  .lightbox-footer { min-height: 4.25rem; gap: 0.75rem; }
  .lightbox-nav-btn { top: auto; bottom: 1.25rem; }
  .lightbox-prev { inset-inline-start: 1.25rem; }
  .lightbox-next { inset-inline-end: 1.25rem; }
}
@media (max-width: 360px) {
  .brand-name { display: none; }
}
@media (max-height: 500px) and (min-width: 761px) {
  .site-nav { min-height: 64px; }
  .thumb-btn, #project-fayd-magazine .thumb-btn { height: 44px; width: 58px; flex-basis: 58px; }
  .project-media-frame { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .lightbox-content { transform: none; }
  .thumb-btn:hover { transform: none; }
}
