:root { --bg: #0c0c0a; --text: #f4f1ea; --muted: #a6a29a; --accent: #c5a880; --card: #141411; --font-serif: 'Rubik', sans-serif; --font-sans: 'Inter', sans-serif; }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.6; padding: 0 2rem; }
        body::before { content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; opacity: 0.015; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9999; }
        
        header { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid rgba(244,241,234,0.05); max-width: 1500px; margin: 0 auto; position: relative; }
        html[dir="rtl"] header { flex-direction: row-reverse; } html[dir="ltr"] header { flex-direction: row; }         
        .logo { font-family: var(--font-serif); font-size: 2rem; text-decoration: none; color: var(--text); font-weight: 600; letter-spacing: -0.5px; }
        .logo span { color: var(--accent); font-weight: 300; font-size: 1.2rem; }
        .nav-container { display: flex; align-items: center; }
        nav { display: flex; gap: 2.2rem; align-items: center; } 
        nav button { background: none; border: none; color: var(--muted); font-size: 0.95rem; cursor: pointer; font-family: var(--font-sans); transition: color 0.3s; font-weight: 400; }
        nav button.active, nav button:hover { color: var(--text); }
        .social-link { color: var(--accent); font-size: 1rem; text-decoration: none; transition: color 0.3s; display: inline-flex; align-items: center; }
        .social-link:hover { color: var(--text); }
        .social-group { display: flex; gap: 1rem; align-items: center; }
        html[dir="rtl"] .social-group { margin-right: 1.2rem; border-right: 1px solid rgba(244,241,234,0.1); padding-right: 1.2rem; }
        html[dir="ltr"] .social-group { margin-left: 1.2rem; border-left: 1px solid rgba(244,241,234,0.1); padding-left: 1.2rem; }
        .lang-btn { background: none; border: 1px solid rgba(197, 168, 128, 0.3); color: var(--accent); padding: 0.15rem 0.4rem; font-size: 0.7rem; cursor: pointer; border-radius: 2px; font-family: var(--font-sans); position: absolute; top: 1rem; }
        html[dir="rtl"] .lang-btn { left: 0; } html[dir="ltr"] .lang-btn { right: 0; }
        
        .page { display: none; max-width: 1500px; margin: 4rem auto 6rem auto; }
        .page.active { display: block; }
        h1 { font-family: var(--font-serif); font-size: 3rem; margin-bottom: 1rem; font-weight: 400; text-align: center; }
        .subtitle { color: var(--muted); text-align: center; max-width: 750px; margin: 0 auto 4rem auto; font-size: 1.15rem; font-weight: 300; }
        
        .about-content { max-width: 650px; margin: 0 auto; text-align: center; }
        .about-image-container { margin-bottom: 1rem; }
        .about-image-container img { max-width: 100%; height: auto; max-height: 500px; object-fit: contain; border-radius: 4px; border: 1px solid rgba(244,241,234,0.05); }
        .photo-credit { color: var(--muted); font-size: 0.75rem; font-family: var(--font-sans); letter-spacing: 0.5px; margin-top: 0.4rem; display: block;  }
        .about-text-p {
            max-width: 1280px;
            margin: 2rem auto 0 auto;
            text-align: center;
            color: var(--muted);
            font-size: 1.15rem;
            font-weight: 300;
            line-height: 2;
            white-space: pre-line;
        }
        .about-socials { margin-top: 3.5rem; display: flex; justify-content: center; gap: 2rem; border-top: 1px solid rgba(244,241,234,0.05); padding-top: 2rem; }
        
        .grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
        .card { position: relative; background: var(--card); border: 1px solid rgba(244,241,234,0.05); border-radius: 4px; overflow: hidden; cursor: pointer; transition: all 0.4s ease; text-decoration: none; color: inherit; }
        .card:hover { transform: translateY(-5px); border-color: var(--accent); }
        .c-7 { grid-column: span 7; height: 450px; } .c-5 { grid-column: span 5; height: 450px; }
        .c-4 { grid-column: span 4; height: 380px; } .c-8 { grid-column: span 8; height: 380px; }
        .c-6 { grid-column: span 6; height: 400px; }
        .card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%) sepia(8%) contrast(105%); transition: transform 0.6s ease; pointer-events: none; }
        .card:hover img { transform: scale(1.03); filter: none; }
        
        .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(to top, rgba(12,12,10,0.9), rgba(12,12,10,0)); display: flex; width: 100%; align-items: flex-end; }
        .overlay h3 { font-family: var(--font-serif); font-size: 1.3rem; }
        .overlay span { font-size: 0.8rem; color: var(--muted); letter-spacing: 1px; }
        
        .filters-container { border-top: 1px solid rgba(244,241,234,0.05); border-bottom: 1px solid rgba(244,241,234,0.05); padding: 1.5rem 0; margin-bottom: 3rem; display: flex; flex-direction: column; gap: 1.2rem; }
        .filter-row { display: flex; align-items: center; gap: 1.5rem; width: 100%; }
        html[dir="rtl"] .filter-row { justify-content: flex-start; text-align: right; } html[dir="ltr"] .filter-row { justify-content: flex-start; text-align: left; }
        .filter-label { font-size: 0.9rem; color: var(--muted); min-width: 100px; }
        .filter-options { display: flex; gap: 0.6rem; }
        .filter-btn { background: none; border: 1px solid rgba(244,241,234,0.05); color: var(--muted); padding: 0.4rem 1.2rem; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: all 0.3s; }
        .filter-btn.active, .filter-btn:hover { color: var(--text); border-color: var(--accent); background: rgba(197, 168, 128, 0.05); }
        .artist-select { background: var(--card); border: 1px solid rgba(244,241,234,0.1); color: var(--text); padding: 0.5rem 1.5rem; border-radius: 4px; font-family: var(--font-sans); font-size: 0.9rem; outline: none; cursor: pointer; min-width: 220px; }
        
        .modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(11,11,10,0.98); z-index: 1800; display: none; overflow-y: auto; padding: 4rem 2rem; }
        .modal.open { display: block; }
        .modal-header { display: flex; align-items: center; max-width: 1280px; margin: 0 auto 2.5rem auto; border-bottom: 1px solid rgba(244,241,234,0.05); padding-bottom: 1rem; width: 100%; }
        .modal-header h2 { font-family: var(--font-serif); }
.modal .close-btn { position: relative; z-index: 1801; }
        .close-btn { background: none; border: 1px solid rgba(244,241,234,0.05); color: var(--text); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; justify-content: center; align-items: center; }
        
        .collage { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
        .m-8 { grid-column: span 8; height: 450px; } .m-4 { grid-column: span 4; height: 450px; }
        .m-6 { grid-column: span 6; height: 350px; } .m-12 { grid-column: span 12; height: 500px; }
        .collage div { border: 1px solid rgba(244,241,234,0.05); overflow: hidden; background: #141412; cursor: pointer; }
        .collage img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 0.4s; }
        .collage div:hover img { transform: scale(1.02); }
        
        .lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5,5,5,0.96); z-index: 2000; display: none; justify-content: center; align-items: center; cursor: zoom-out; }
        .lightbox.open { display: flex; }
        .lightbox img { max-width: 92%; max-height: 88%; object-fit: contain; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
        .lightbox-close { position: absolute; top: 2rem; right: 2rem; background: none; border: 1px solid rgba(255,255,255,0.2); color: white; width: 45px; height: 45px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.3s; }
        .lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

        footer { text-align: center; padding: 3rem 0; border-top: 1px solid rgba(244,241,234,0.05); color: var(--muted); font-size: 0.85rem; max-width: 1400px; margin: 0 auto; }
        @media (max-width: 1150px) { header, html[dir="rtl"] header, html[dir="ltr"] header { flex-direction: column; gap: 1.5rem; padding: 2rem 0; } nav { flex-wrap: wrap; justify-content: center; gap: 1.2rem; } .social-group { border: none !important; margin: 0 !important; padding: 0 !important; } .grid, .collage { display: flex; flex-direction: column; } .c-7, .c-5, .c-4, .c-8, .c-6, .m-8, .m-4, .m-6, .m-12 { height: 320px !important; } }

/* RTL/LTR header and overlay fix */
html[dir="rtl"] .overlay,
html[dir="rtl"] .album-header,
html[dir="rtl"] .modal-header{
  display:flex;
  flex-direction:row-reverse !important;
}
html[dir="ltr"] .overlay,
html[dir="ltr"] .album-header,
html[dir="ltr"] .modal-header{
  display:flex;
  flex-direction:row !important;
}

/* Mobile layout fix: prevent horizontal overflow and keep content centered */
@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding: 0 1rem;
  }

  header {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .logo {
    font-size: 1.6rem;
    max-width: 100%;
    white-space: nowrap;
  }

  .logo span {
    font-size: 0.95rem;
  }

  .nav-container {
    width: 100%;
    justify-content: center;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem 1.1rem;
  }

  nav button {
    font-size: 0.85rem;
  }

  .page {
    width: 100%;
    max-width: 100%;
    margin: 3rem auto 5rem auto;
  }

  #page-home h1,
  .page h1 {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  .subtitle {
    max-width: 100%;
    margin-bottom: 2.5rem;
    font-size: 1rem;
  }

  .filters-container {
    width: 100%;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .filter-label {
    min-width: 0;
  }

  .filter-options {
    display:flex;
    flex-wrap: nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width:none;
    gap:0.6rem;
    padding-bottom:0.25rem;
  }

  .filter-options::-webkit-scrollbar { display:none; }

  .filter-btn {
    flex:0 0 auto;
    white-space:nowrap;
    padding: 0.35rem 1rem;
  }

  .artist-select {
    width: 100%;
    min-width: 0;
  }

  .grid,
  .collage {
    width: 100%;
  }

  .card {
    width: 100%;
  }

  .modal {
    padding: 3rem 1rem;
  }

  .modal-header {
    max-width: 100%;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}

/* Scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 168, 128, 0.45) rgba(244, 241, 234, 0.04);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(244, 241, 234, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.42);
  border-radius: 999px;
  border: 2px solid rgba(12, 12, 10, 0.95);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(197, 168, 128, 0.7);
}

/* Hamburger menu */
.hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 50%;
  background: rgba(20, 20, 17, 0.72);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1201;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hamburger-btn span {
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn:hover {
  border-color: var(--accent);
  background: rgba(197, 168, 128, 0.08);
}

body.mobile-menu-open .hamburger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.mobile-menu-open .hamburger-btn span:nth-child(2) {
  opacity: 0;
}

body.mobile-menu-open .hamburger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 760px) {

  .album-overlay h3 {
    max-width: 72%;
    white-space: normal;
    line-height: 1.25;
    word-break: normal;
  }


  header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 2rem 0;
  }

  html[dir="rtl"] header,
  html[dir="ltr"] header {
    flex-direction: initial;
  }

  .hamburger-btn {
    display: flex;
    grid-column: 1;
    grid-row: 1;
  }

  html[dir="ltr"] .hamburger-btn {
    grid-column: 3;
  }

  .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
  }

  .lang-btn {
    position: static;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  html[dir="ltr"] .lang-btn {
    grid-column: 1;
    justify-self: start;
  }

  .nav-container {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(82vw, 320px);
    background: rgba(12, 12, 10, 0.98);
    border-left: 1px solid rgba(244, 241, 234, 0.08);
    z-index: 1200;
    padding: 5.5rem 1.5rem 2rem 1.5rem;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    align-items: flex-start;
  }

  html[dir="rtl"] .nav-container {
    left: 0;
    right: auto;
    border-left: none;
    border-right: 1px solid rgba(244, 241, 234, 0.08);
    transform: translateX(-105%);
  }

  html[dir="ltr"] .nav-container {
    right: 0;
    left: auto;
    border-right: none;
    border-left: 1px solid rgba(244, 241, 234, 0.08);
    transform: translateX(105%);
  }

  body.mobile-menu-open .nav-container {
    transform: translateX(0);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: block;
  }

  body.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
    justify-content: flex-start;
  }

  nav button {
    width: 100%;
    text-align: inherit;
    font-size: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(244, 241, 234, 0.06);
  }

  .social-group {
    justify-content: center;
    padding-top: 1.2rem !important;
    margin-top: 1rem !important;
    border: none !important;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* Hero title polish */
#page-home h1 {
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 0.85rem;
}

#page-home h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 1px;
  background: rgba(197, 168, 128, 0.72);
  margin: 1.15rem auto 0 auto;
}

#page-home .subtitle {
  margin-top: 1.9rem;
}

@media (max-width: 600px) {
  #page-home h1 {
    font-size: 2.65rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  #page-home h1::after {
    width: 76px;
    margin-top: 1rem;
  }
}

/* About page text refinements */
.about-text-p {
  max-width: min(1280px, 96vw);
}

@media (max-width: 900px) {
  .about-text-p {
    max-width: 94vw;
    font-size: 1.05rem;
  }
}

/* Prevent orphan word in the final About sentence on desktop */
@media (min-width: 901px) {
  .about-text-p {
    max-width: min(1280px, 96vw);
    font-size: 1.08rem;
  }
}

/* Contact page */
.contact-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  margin: 0 auto 2.6rem auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  text-align: inherit;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-row label {
  color: var(--muted);
  font-size: 0.85rem;
}

html[dir="rtl"] .form-row label { text-align: right; }
html[dir="ltr"] .form-row label { text-align: left; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(244, 241, 234, 0.025);
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(197, 168, 128, 0.65);
  background: rgba(244, 241, 234, 0.04);
}

.contact-submit {
  align-self: center;
  margin-top: 0.6rem;
  background: none;
  border: 1px solid rgba(197, 168, 128, 0.5);
  color: var(--accent);
  padding: 0.65rem 2.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-submit:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(197, 168, 128, 0.06);
}

.contact-status {
  min-height: 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.contact-socials {
  margin-top: 2.6rem;
  display: flex;
  justify-content: center;
  gap: 1.7rem;
}

.contact-socials .social-link {
  font-size: 1.5rem;
}

@media (max-width: 600px) {
  .contact-content {
    max-width: 100%;
  }

  .contact-intro {
    font-size: 1rem;
  }

  .contact-submit {
    width: 100%;
  }
}

/* Contact validation + required fields */
.contact-form label::after {
  content: " *";
  color: var(--accent);
}

.field-error {
  min-height: 1.15rem;
  color: #d9b98d;
  font-size: 0.78rem;
  line-height: 1.4;
}

html[dir="rtl"] .field-error { text-align: right; }
html[dir="ltr"] .field-error { text-align: left; }

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: rgba(217, 185, 141, 0.85);
  background: rgba(217, 185, 141, 0.045);
}

.photo-credit {
  color: var(--text);
}

/* Keep browser autofill styled for the dark theme */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(244, 241, 234, 0.035) inset;
  box-shadow: 0 0 0 1000px rgba(244, 241, 234, 0.035) inset;
  border-color: rgba(197, 168, 128, 0.65);
  transition: background-color 5000s ease-in-out 0s;
}

/* Public v1 contact state: form kept in code, hidden until backend is connected */
.contact-disabled {
  display: none;
}

.contact-coming-soon {
  border-top: 1px solid rgba(244, 241, 234, 0.06);
  border-bottom: 1px solid rgba(244, 241, 234, 0.06);
  padding: 2rem 0;
  margin: 0 auto 2.2rem auto;
}

.contact-coming-soon p {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  margin: 0;
}

/* Footer polish */
footer p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.65;
}

/* Hero text spacing */
#hero-subtitle {
  white-space: pre-line;
}

.hero-accent {
  color: var(--accent);
}

/* Contact email link */
.contact-email-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 168, 128, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-email-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Priority 0 album cards: show the cover without zoom/crop */
.card.priority-0-card img {
  object-fit: contain;
  object-position: center center;

  padding: 0;

  width: 102%;
  height: 102%;

  transform: scale(1.03);

  background: rgba(244, 241, 234, 0.025);
}

.card.priority-0-card:hover img {
  transform: scale(1.03);
  filter: none;
}

/* Priority 0 albums: keep proportions while using more of the available space */
.collage.natural-ratio {
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}

.collage.natural-ratio div {
  grid-column: span 6 !important;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  height: 440px !important;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  background: rgba(244, 241, 234, 0.025);
}

.collage.natural-ratio img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

@media (max-width: 760px) {
  .collage.natural-ratio div {
    height: 340px !important;
    padding: 0.25rem;
  }
}

/* Mobile category navigation helper */
.mobile-back-home {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  margin: 0 auto 1.6rem auto;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(197, 168, 128, 0.42);
  border-radius: 999px;
  background: rgba(20, 20, 17, 0.72);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
}

.mobile-back-home:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(197, 168, 128, 0.06);
}

@media (max-width: 760px) {
  .mobile-back-home {
    display: flex;
  }

  /* On mobile, keep only the modal as the active scroll container when it is open. */
  body.modal-open {
    overflow: hidden;
    width: 100%;
  }

  .modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Avoid visually competing scrollbars in mobile/webview layouts. */
  body.modal-open::-webkit-scrollbar,
  body.modal-open *::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}
