:root {
  --bg: #030303;
  --surface: #111312;
  --surface-soft: #171918;
  --surface-deep: #080909;
  --line: rgba(199, 153, 75, 0.44);
  --line-strong: rgba(240, 188, 88, 0.78);
  --gold: #d2a24e;
  --gold-soft: #b8893f;
  --text: #f5f0e8;
  --muted: #beb8ae;
  --dim: #80786e;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: Arial, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 0, rgba(210, 162, 78, 0.1), transparent 30rem),
    linear-gradient(110deg, rgba(255, 255, 255, 0.04), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    var(--bg);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 50% 45%, transparent 0 34rem, rgba(0, 0, 0, 0.48) 62rem);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(8, 8, 8, 0.96)),
    #030303;
  border-bottom: 1px solid rgba(184, 137, 63, 0.55);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45), 0 1px 18px rgba(210, 162, 78, 0.22);
}

.header-inner {
  width: min(100%, var(--max));
  min-height: 108px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.brand img {
  width: min(430px, 43vw);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.site-nav > a,
.nav-dropdown > button {
  min-width: 112px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.035);
  color: #f2f2f2;
  background: transparent;
  font: inherit;
  font-size: 17px;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.nav-dropdown > button:hover,
.nav-dropdown > button:focus-visible {
  color: var(--gold);
  outline: 0;
  background: rgba(210, 162, 78, 0.08);
}

.site-nav .is-active {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(210, 162, 78, 0.12), rgba(210, 162, 78, 0.04));
  box-shadow: inset 0 -3px 0 var(--gold), 0 16px 32px rgba(210, 162, 78, 0.1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button::after {
  content: "⌄";
  margin-inline-start: 12px;
  font-size: 18px;
  color: var(--gold);
  transform: translateY(-2px);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  width: 240px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: rgba(8, 9, 9, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.dropdown-panel a {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 15px;
  border-radius: 4px;
}

.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  color: var(--gold);
  background: rgba(210, 162, 78, 0.08);
  outline: 0;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  margin: auto 0;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(210, 162, 78, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  margin: 3px 0;
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 28px 28px 0;
}

.gallery-section {
  margin-bottom: 12px;
}

.gallery-frame {
  position: relative;
  min-height: 444px;
  padding: 18px 34px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(210, 162, 78, 0.08), transparent 35rem),
    #101211;
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.7), 0 22px 55px rgba(0, 0, 0, 0.32);
}

.gallery-frame::after {
  position: absolute;
  inset: auto 10% 8px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(210, 162, 78, 0.52), transparent);
}

.gallery-frame::before {
  position: absolute;
  right: 50%;
  bottom: 24px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow:
    -28px 0 0 rgba(255, 255, 255, 0.33),
    -56px 0 0 rgba(255, 255, 255, 0.33),
    -84px 0 0 rgba(255, 255, 255, 0.33),
    28px 0 0 rgba(255, 255, 255, 0.33),
    56px 0 0 rgba(255, 255, 255, 0.33);
  transform: translateX(50%);
}

.gallery-frame .rs-pwa3d-41 {
  width: 100% !important;
  max-width: none !important;
  min-height: 398px !important;
  height: 398px !important;
  border: 0 !important;
  background: transparent !important;
  cursor: grab;
}

.gallery-frame .rs-pwa3d-41:active {
  cursor: grabbing;
}

.gallery-frame .rs-pwa3d-41 canvas {
  display: block;
}

.gallery-frame .rs-pwa3d-textdisplay {
  display: none;
}

.gallery-frame .rs-pwa3d-sbc {
  top: 10px;
  right: 10px;
}

.gallery-frame .rs-pwa3d-fsbtn {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.gallery-frame .rs-ui-gsbar {
  display: none !important;
  width: 160px !important;
  height: 9px !important;
  margin-bottom: 10px !important;
  border: 0;
  background: transparent;
}

.gallery-frame .rs-ui-gsbar div,
.gallery-frame .rs-ui-gsbar span {
  border: 0;
  border-radius: 999px;
}

.section-title {
  margin: 18px auto 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(580px, 100%);
  color: var(--gold);
}

.section-title span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.section-title span:last-child {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #171918, #101211);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  outline: 0;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-bottom: 1px solid rgba(210, 162, 78, 0.35);
}

.project-copy {
  min-height: 82px;
  padding: 7px 10px 9px;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.project-copy h2 {
  margin: 0;
  max-width: 100%;
  color: #f4f1ea;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.project-copy p {
  margin: 2px 0 1px;
  color: var(--muted);
  font-size: 13px;
}

.project-copy strong {
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
}

.info-section {
  padding: 20px 0 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(245px, 1fr) minmax(300px, 1.28fr) minmax(520px, 2.08fr);
  gap: 10px;
}

.panel {
  min-width: 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(135deg, rgba(210, 162, 78, 0.05), transparent 44%),
    var(--surface);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.36);
}

.panel h2 {
  margin: 0 0 14px;
  color: var(--gold);
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
}

.about-panel p {
  margin: 0 auto 16px;
  max-width: 38em;
  color: #d6d1c8;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
}

.panel-button {
  min-height: 36px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.18);
  font-size: 15px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.panel-button:hover,
.panel-button:focus-visible {
  color: #090909;
  background: var(--gold);
  border-color: var(--gold);
  outline: 0;
}

.panel-button.is-compact {
  width: min(150px, 100%);
  margin: 0 auto;
}

.contact-list {
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  color: #e3ded5;
}

.contact-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  color: var(--gold);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--gold);
  outline: 0;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-item {
  min-width: 0;
  padding: 0 18px;
  display: grid;
  justify-items: center;
  text-align: center;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
}

.service-item:first-child {
  border-inline-start: 0;
}

.service-item svg {
  width: 54px;
  height: 54px;
  margin-bottom: 9px;
  color: var(--gold);
}

.service-item h3 {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}

.service-item p {
  margin: 0;
  color: #d3cdc4;
  font-size: 13px;
  line-height: 1.55;
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 9px 28px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--dim);
  font-size: 14px;
}

.site-footer p {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

.social-links {
  grid-column: 3;
  justify-self: start;
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #d7d2ca;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--gold);
  border-color: var(--line-strong);
  outline: 0;
}

.social-links svg {
  width: 15px;
  height: 15px;
}

.inner-main {
  padding-top: 34px;
}

.project-hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(210, 162, 78, 0.08), transparent 42%),
    var(--surface-deep);
}

.project-hero-media {
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.project-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.project-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent);
}

.project-hero-copy {
  padding: 54px 44px;
  display: grid;
  align-content: center;
}

.project-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}

.project-hero-copy h1 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.12;
}

.project-hero-copy p {
  margin: 0 0 24px;
  max-width: 36em;
  color: #ded8cf;
  font-size: 17px;
  line-height: 1.8;
}

.project-meta {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.project-meta li {
  padding: 7px 12px;
  border: 1px solid rgba(210, 162, 78, 0.35);
  border-radius: 4px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.18);
  font-size: 14px;
}

.detail-section {
  padding: 34px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.4fr);
  gap: 28px;
  align-items: start;
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent), var(--surface);
}

.detail-panel h2,
.image-strip h2,
.related-nav h2 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 400;
}

.detail-panel p,
.detail-panel li {
  color: #d5cfc6;
  font-size: 15px;
  line-height: 1.8;
}

.detail-panel ul {
  margin: 0;
  padding: 0 18px 0 0;
}

.image-strip {
  padding: 34px 0 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111;
}

.related-nav {
  padding: 34px 0 18px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.related-links a {
  min-height: 54px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
}

.related-links a:hover,
.related-links a:focus-visible {
  color: #090909;
  background: var(--gold);
  outline: 0;
}

.art-main {
  width: min(100%, var(--max));
  padding-top: 28px;
}

.art-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: center;
  padding: 0 0 34px;
  direction: rtl;
}

.art-hero-media {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.6;
  min-height: 0;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.art-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

.art-hero-copy {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  justify-self: start;
  direction: rtl;
}

.art-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 18px;
}

.art-hero-copy h1 {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
}

.art-hero-copy p {
  margin: 0 0 24px;
  color: #ded8ce;
  font-size: 18px;
  line-height: 1.9;
}

.art-browser {
  padding: 8px 0 30px;
}

.art-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin: 0 0 18px;
}

.art-toolbar button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(210, 162, 78, 0.5);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  font: inherit;
  cursor: pointer;
}

.art-toolbar button:hover,
.art-toolbar button:focus-visible,
.art-toolbar .is-current {
  color: #111;
  background: linear-gradient(180deg, #d9ac5a, #a8762e);
  outline: 0;
}

.art-masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 170px;
  gap: 10px;
}

.art-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(210, 162, 78, 0.46);
  border-radius: 6px;
  background: #101010;
}

.art-tile.is-wide {
  grid-column: span 2;
}

.art-tile.is-tall {
  grid-row: span 2;
}

.art-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.art-tile:hover img,
.art-tile:focus-within img {
  transform: scale(1.035);
}

.art-tile div {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
}

.art-tile h2,
.art-tile p {
  margin: 0;
}

.art-tile h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.art-tile p {
  color: var(--muted);
  font-size: 13px;
}

.selected-art {
  padding: 14px 0 34px;
}

.selected-art .section-title h2 {
  margin: 0;
  color: var(--gold);
  font-size: 28px;
  font-weight: 400;
}

.selected-art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.selected-art-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.selected-art-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.selected-art-card div {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(210, 162, 78, 0.35);
}

.selected-art-card h3,
.selected-art-card p {
  margin: 0;
}

.selected-art-card h3 {
  color: var(--gold);
  font-size: 18px;
  font-weight: 400;
}

.selected-art-card p {
  color: var(--muted);
  font-size: 14px;
}

.art-quote {
  width: calc(100% + 56px);
  margin: 0 -28px 28px;
  padding: 26px 28px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border-block: 1px solid rgba(210, 162, 78, 0.45);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52)),
    linear-gradient(180deg, rgba(210, 162, 78, 0.13), rgba(210, 162, 78, 0.04));
  text-align: center;
}

.art-quote blockquote {
  max-width: 900px;
  margin: 0;
  color: #eee5d8;
  font-size: 24px;
  line-height: 1.7;
}

.art-quote blockquote::before,
.art-quote blockquote::after {
  color: var(--gold);
  font-size: 48px;
  line-height: 0;
}

.art-quote blockquote::before {
  content: "״";
  margin-inline-end: 6px;
}

.art-quote blockquote::after {
  content: "״";
  margin-inline-start: 6px;
}

.art-quote cite {
  color: var(--gold);
  font-style: normal;
  font-size: 18px;
}

.art-footer-band {
  padding-top: 0;
}

@media (max-width: 1180px) {
  .header-inner {
    gap: 18px;
  }

  .site-nav > a,
  .nav-dropdown > button {
    min-width: auto;
    padding-inline: 15px;
    font-size: 15px;
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-panel {
    grid-column: 1 / -1;
  }

  .project-hero,
  .detail-grid,
  .art-hero {
    grid-template-columns: 1fr;
  }

  .project-hero-copy {
    padding: 34px;
  }

  .project-hero-copy h1 {
    font-size: 36px;
  }

  .art-hero {
    gap: 28px;
  }

  .art-hero-copy {
    max-width: 720px;
    order: -1;
    justify-self: stretch;
  }

  .art-masonry,
  .selected-art-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    position: relative;
    overflow-x: hidden;
  }

  .header-inner {
    width: 100%;
    max-width: 100vw;
    min-height: 84px;
    padding-inline: 16px;
    align-items: center;
    gap: 10px;
  }

  .brand img {
    width: min(270px, 64vw);
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    inset: 84px 0 auto;
    display: none;
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav > a,
  .nav-dropdown > button {
    height: 44px;
    justify-content: flex-start;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
  }

  .dropdown-panel {
    position: static;
    width: auto;
    margin: 6px 0 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-dropdown:focus-within .dropdown-panel,
  .nav-dropdown:hover .dropdown-panel {
    display: grid;
  }

  main {
    width: 100vw;
    max-width: 100vw;
    padding-inline: 14px;
    padding-top: 18px;
    overflow-x: hidden;
  }

  .gallery-section {
    display: none;
  }

  .gallery-frame {
    min-height: 354px;
    padding: 14px;
  }

  .gallery-frame .rs-pwa3d-41 {
    min-height: 324px !important;
    height: 324px !important;
  }

  .section-title {
    gap: 14px;
  }

  .section-title h1 {
    font-size: 21px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid,
  .services-list {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item:first-child {
    padding: 16px 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .service-item:first-child {
    border-top: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer p,
  .social-links {
    grid-column: auto;
    justify-self: center;
  }

  .inner-main {
    padding-top: 18px;
  }

  .project-hero-media,
  .project-hero-media img {
    min-height: 270px;
  }

  .project-hero-copy h1 {
    font-size: 30px;
  }

  .image-grid,
  .related-links {
    grid-template-columns: 1fr;
  }

  .art-main {
    padding-top: 18px;
  }

  .art-hero {
    display: block;
    gap: 20px;
  }

  .art-hero-copy,
  .art-hero-media {
    max-width: 100%;
  }

  .art-hero-copy {
    width: calc(100vw - 28px);
  }

  .art-hero-media {
    margin-top: 20px;
  }

  .art-hero-copy h1 {
    font-size: 38px;
  }

  .art-hero-copy p {
    font-size: 16px;
  }

  .art-hero-media,
  .art-hero-media img {
    min-height: 0;
    max-height: none;
  }

  .art-hero-media {
    aspect-ratio: 1.25;
  }

  .art-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .art-tile.is-wide {
    grid-column: span 2;
  }

  .selected-art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-quote {
    width: calc(100% + 28px);
    margin-inline: -14px;
  }

  .art-quote blockquote {
    font-size: 19px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  main {
    width: min(390px, 100%);
    max-width: min(390px, 100%);
    margin-left: 0;
    margin-right: auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    aspect-ratio: 1.85;
  }

  .panel {
    padding-inline: 16px;
  }

  .art-toolbar button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding-inline: 10px;
  }

  .art-masonry,
  .selected-art-grid {
    grid-template-columns: 1fr;
  }

  .art-masonry {
    grid-auto-rows: 230px;
  }

  .art-tile.is-wide,
  .art-tile.is-tall {
    grid-column: auto;
    grid-row: auto;
  }
}
