.studio-language-bar { display:flex; justify-content:flex-end; padding:4px max(1rem,4vw); background:#f4f2ed; }
.studio-language { display:inline-flex; align-items:center; flex:none; }
.studio-language button { font-family:'DM Sans',Arial,sans-serif; color:#263b2e; cursor:pointer; }
.studio-language button:focus-visible { outline:2px solid #526d52; outline-offset:1px; }
.studio-language-trigger,.studio-language-close { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:4px; border:0; background:transparent; border-radius:6px; }
.studio-language .studio-language-trigger { min-width:44px; gap:5px; color:#566158; font-size:12px; line-height:1.25; font-weight:500; letter-spacing:.045em; white-space:nowrap; }
.studio-language .studio-language-trigger:hover { color:#203428; }
.studio-language-close:hover { background:#e7ebe3; }
.studio-language-trigger svg,.studio-language-options svg { flex:none; }
.studio-language-dialog { position:fixed; inset:auto; top:var(--picker-top,5rem); left:var(--picker-left,12px); margin:0; padding:16px 20px 20px; box-sizing:border-box; width:min(30rem,calc(100% - 24px)); max-width:none; max-height:calc(100dvh - 16px); overflow:auto; overscroll-behavior:contain; color:#203428; background:#f7f5ef; border:1px solid #d2d8ce; border-radius:12px; box-shadow:0 5px 18px #21392d14; }
.studio-language-dialog::backdrop { background:transparent; }
.studio-language-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; padding-bottom:6px; border-bottom:1px solid #d6dcd2; }
.studio-language-heading h2 { margin:0; font:normal 25px/1.2 Georgia,serif; letter-spacing:-.02em; color:#203428; }
.studio-language-close { min-width:44px; }
.studio-language-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; margin-top:8px; }
.studio-language-options button { display:flex; align-items:center; justify-content:space-between; gap:3px; min-height:42px; padding:5px 8px; border:0; border-radius:6px; background:transparent; font-size:15px; font-weight:500; line-height:1.3; text-align:start; }
.studio-language-options button:hover { background:#e9ece4; }
.studio-language-options button[aria-pressed=true] { background:#e0e8dd; font-weight:650; }
@media (max-width:600px) {
  .studio-language-dialog { inset:auto 0 0; width:100%; margin:0; max-height:85dvh; padding:12px 16px max(16px,env(safe-area-inset-bottom)); border-radius:16px 16px 0 0; }
  .studio-language-dialog::backdrop { background:rgb(24 36 29 / .25); }
  .studio-language-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .studio-language-options button { min-height:44px; }
}
@media (max-width:460px) {
  header .header-actions:has(.studio-language) { gap:8px; margin-right:8px; }
}
@media (max-width:370px) {
  header:has(.studio-language) { padding-inline:10px; }
}

.portfolio-media[data-localized-film] video,.portfolio-media[data-localized-film] img{object-fit:contain}
[data-studio-film-title]{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
