:root { --nav-h:74px; }
.mast .nav-inner {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  grid-template-areas:"brand links languages actions";
  align-items:center;
  gap:clamp(12px,1.35vw,24px);
  height:var(--nav-h);
}
.mast .brand { grid-area:brand; justify-self:start; height:44px; }
.mast .brand img { max-height:44px; object-fit:contain; }
.mast .main-nav { grid-area:links; justify-self:center; }
.mast .main-nav a { white-space:nowrap; }
.mast .lang-switch { grid-area:languages; }
.mast .nav-tools { grid-area:actions; justify-self:end; }
.lang-switch { gap:0; }
.lang-switch a { width:40px; min-width:0; min-height:44px; padding:0; }
.lang-switch a:hover { background:#ffffff0b; }
.lang-switch a[aria-current]::after { bottom:6px; width:18px; }
.lang-switch img { flex:none; }
.info-bar>div { min-height:calc(var(--nav-h) - 1px); }
.info-section { scroll-margin-top:12px; }
.capture-caption { color:#b7bed7; font-size:12px; margin:4px 0 15px; }
.demo-disclaimer { font-style:italic; font-size:12px!important; line-height:1.6; color:#adb7ce; margin-top:14px!important; }
.film-placeholder { aspect-ratio:16/9; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:17px; padding:clamp(24px,5vw,70px); background:radial-gradient(ellipse at 50% 20%,#58408666,transparent 60%),linear-gradient(135deg,#151e37,#090e20); border:1px solid #c9b4ff2a; }
.film-placeholder>.icon { width:42px; height:42px; color:#c4aeff; }
.film-placeholder h3 { font:550 clamp(24px,3vw,42px)/1.15 var(--display); color:#f4edff; }
.film-placeholder>p:not(.film-placeholder-label) { max-width:42em; font-size:clamp(14px,1.3vw,17px); color:#c6c7df; }
.film-placeholder-label { color:#bca1ed; text-transform:uppercase; letter-spacing:.16em; font-size:11px; }
.film-placeholder .button-face { font-size:14px; padding:12px 19px; }
html:lang(ru) { --display:system-ui,-apple-system,"Segoe UI",sans-serif; --font-body:system-ui,-apple-system,"Segoe UI",sans-serif; }
html:lang(ru) .mask-title,html:lang(de) .mask-title,html:lang(fr) .mask-title { font-size:clamp(44px,5.3vw,83px); }
html:lang(ru) .hero h1 { font-size:clamp(52px,6vw,96px); }
@media (min-width:801px) and (max-width:1199px) {
  .mast .nav-inner { gap:12px; }
  .mast .main-nav { gap:clamp(10px,1.3vw,16px); }
  .mast .main-nav a { font-size:14px; }
  .mast .lang-switch a { width:34px; }
  .mast .brand-symbol { width:36px; }
  .mast .brand-word { width:104px; }
}
@media (max-width:1023px) {
  .mast .nav-inner {
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-areas:"brand languages actions";
  }
  .mast #menu { display:inline-flex; width:44px; min-height:44px; }
  .mast .main-nav { display:none; }
  .mast.menu-open .main-nav {
    position:absolute;
    inset:100% 0 auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-self:stretch;
    gap:0;
    max-height:calc(100dvh - var(--nav-h));
    overflow-y:auto;
    padding:6px var(--gutter) 13px;
    background:var(--nav);
    border-bottom:1px solid var(--line);
  }
}
@media (max-width:800px), (pointer:coarse) and (max-width:1023px) and (max-height:540px) {
  :root { --flags-h:44px; --nav-h:100px; }
  .mast .nav-inner {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:var(--flags-h) 1fr;
    grid-template-areas:"languages languages" "brand actions";
    gap:0 10px;
  }
  .mast .lang-switch,.info-bar .lang-switch { justify-self:center; }
  .mast .lang-switch a,.info-bar .lang-switch a { width:44px; }
  .mast::before,.info-bar::before {
    content:"";
    position:absolute;
    top:calc(var(--flags-h) - 1px);
    inset-inline:0;
    height:1px;
    background:#c7a8ff1b;
    pointer-events:none;
  }
  .info-bar>div {
    display:grid;
    justify-content:center;
    grid-template-rows:var(--flags-h) 1fr;
    gap:0;
  }
  .info-bar .lang-switch { grid-row:1; }
  .info-bar .brand { justify-self:center; }
}
@media (pointer:coarse) and (max-width:1023px) and (max-height:480px) {
  :root { --nav-h:88px; }
  .info-bar .brand { min-height:44px; }
}
@media (max-width:800px) {
  .film-placeholder { min-height:330px; aspect-ratio:auto; gap:14px; }
  html:lang(ru) .mask-title,html:lang(de) .mask-title,html:lang(fr) .mask-title { font-size:clamp(35px,8.6vw,62px); }
  html:lang(ru) .hero h1 { font-size:clamp(43px,10vw,66px); }
  html:lang(fr) .hero h1 { font-size:clamp(43px,10vw,66px); }
  .hero .watch { max-width:100%; }
}
@media (max-width:360px) {
  .gallery-tabs a { font-size:12px; }
  .mode-options { flex-wrap:wrap; }
}

/* Localized reading photographs */
html[lang^="pt"] .membership { --table-photo:url("../acervo/mesa-de-leitura-pt.webp?v=gravura-1"); }
html[lang^="en"] .membership { --table-photo:url("../acervo/mesa-de-leitura-en.webp?v=gravura-1"); }
html[lang^="es"] .membership { --table-photo:url("../acervo/mesa-de-leitura-es.webp?v=gravura-1"); }
html[lang^="ru"] .membership { --table-photo:url("../acervo/mesa-de-leitura-ru.webp?v=gravura-1"); }
html[lang^="de"] .membership { --table-photo:url("../acervo/mesa-de-leitura-de.webp?v=gravura-1"); }
html[lang^="fr"] .membership { --table-photo:url("../acervo/mesa-de-leitura-fr.webp?v=gravura-1"); }
@media(max-width:800px) {
  html[lang^="pt"] .membership { --table-photo:url("../acervo/mesa-de-leitura-pt-mobile.webp?v=gravura-1"); }
  html[lang^="en"] .membership { --table-photo:url("../acervo/mesa-de-leitura-en-mobile.webp?v=gravura-1"); }
  html[lang^="es"] .membership { --table-photo:url("../acervo/mesa-de-leitura-es-mobile.webp?v=gravura-1"); }
  html[lang^="ru"] .membership { --table-photo:url("../acervo/mesa-de-leitura-ru-mobile.webp?v=gravura-1"); }
  html[lang^="de"] .membership { --table-photo:url("../acervo/mesa-de-leitura-de-mobile.webp?v=gravura-1"); }
  html[lang^="fr"] .membership { --table-photo:url("../acervo/mesa-de-leitura-fr-mobile.webp?v=gravura-1"); }
}
/* End localized reading photographs */
