/* =========================================================
   CamelPro — janela do projeto
   computador: sobreposta, com setas e "x" fixos
   celular: página cheia, mídia com miniaturas e relacionados
   ========================================================= */
.viewer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  background: #000;
  opacity: 0; transition: opacity .25s ease;
}
.viewer.is-open { opacity: 1; }
.viewer[hidden] { display: none; }
.viewer__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 59px 100px 118px; }

/* com a janela aberta o cabeçalho volta a ser preto */
body.is-locked .site-header { background: #000; border-color: rgba(255, 255, 255, .12); }
body.is-locked .site-header .logo-white { display: block; }
body.is-locked .site-header .logo-dark { display: none; }
body.is-locked .site-header .site-nav a,
body.is-locked .site-header .lang-switch button { color: rgba(255, 255, 255, .65); }

.viewer__close {
  position: fixed; top: calc(var(--header-h) + 57px); right: 52px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .33); color: #fff;
  font: 18px/1 var(--f-sans);
  transition: background-color .2s;
}
.viewer__close:hover { background: rgba(255, 255, 255, .55); }
.viewer__arrow {
  position: fixed; top: 45%; z-index: 2;
  width: 40px; height: 48px; display: grid; place-items: center; color: #fff;
  transition: opacity .2s;
}
.viewer__arrow:hover { opacity: .6; }
.viewer__arrow svg { width: 14px; height: 24px; }
.viewer__arrow--prev { left: 47px; }
.viewer__arrow--prev svg { transform: scaleX(-1); }
.viewer__arrow--next { right: 47px; }

/* ---------- computador ---------- */
.dv { max-width: 1100px; margin: 0 auto; }
.dv__title {
  font-size: 47px; line-height: 51px; font-weight: bold;
  padding: 0 10px;
}
.dv__intro { margin-left: 39%; max-width: 554px; margin-top: 40px; }
.dv__text { font-size: 18px; line-height: 26px; letter-spacing: 1px; }
.dv__services { margin: 30px 0 12px; font-size: 14px; color: #737373; }
.dv__video, .dv__cover { margin: 90px auto 0; }
.dv__video { width: 100%; aspect-ratio: 16 / 9; background: #0b0b0b; }
.dv__video--solo { max-width: 938px; }
.dv__video iframe { width: 100%; height: 100%; border: 0; }
.dv__cover { width: 100%; max-width: 941px; aspect-ratio: 941 / 530; object-fit: cover; }
.dv__gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px;
  /* a galeria é mais larga que o texto: margens negativas iguais dos dois lados a centralizam.
     (antes era margin-left 50% + translate; em hebraico/rtl o navegador ignorava o margin-left
     e a galeria saía pela esquerda da tela) */
  --gw: min(1400px, calc(100vw - 200px));
  width: var(--gw);
  margin: 60px calc((100% - var(--gw)) / 2) 0;
}
.dv__cell { height: 400px; }
.dv__cell img { width: 100%; height: 100%; object-fit: cover; }
.dv__cell--text { display: flex; align-items: center; padding: 0 58px; }

html[lang="he"] .dv__title { font-family: var(--f-he); font-size: 56px; line-height: 60px; }
html[lang="he"] .dv__intro { margin-left: 48.5%; margin-right: 0; }
html[lang="he"] .dv__text { font-family: var(--f-he-light); font-size: 24px; line-height: 32px; letter-spacing: 0; color: rgba(255, 255, 255, .67); }
html[lang="he"] .dv__services { font-family: var(--f-he); font-size: 16px; }
html[lang="he"] .viewer__close { right: auto; left: 52px; }

@media (max-width: 1200px) {
  .viewer__scroll { padding: 50px 80px 100px; }
  .dv__gallery { --gw: calc(100vw - 160px); }
  .dv__cell { height: 320px; }
  .dv__intro, html[lang="he"] .dv__intro { margin-left: 30%; }
}

/* ---------- celular ---------- */
.viewer--mobile { inset: var(--header2-h) 0 0 0; }
.viewer--mobile .viewer__scroll { padding: 0 20px 60px; }
.viewer--mobile .viewer__arrow { display: none; }
.viewer--mobile .viewer__close { top: calc(var(--header2-h) + 14px); right: 14px; left: auto; background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .6); }

.mv__title {
  margin: 70px 30px 44px; text-align: center;
  font-size: 30px; line-height: 36px; font-weight: normal; text-transform: uppercase;
}
.mv__video { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 14px; background: #0b0b0b; }
.mv__video iframe { width: 100%; height: 100%; border: 0; }
.mv__big { width: 100%; height: 300px; object-fit: cover; }
.mv__thumbs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 3px; }
.mv__thumb { width: 90px; height: 90px; padding: 0; opacity: .75; transition: opacity .2s; }
.mv__thumb[aria-pressed="true"], .mv__thumb:hover { opacity: 1; }
.mv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mv__text { margin: 16px 10px 12px; font-size: 21px; line-height: 30px; }
.mv .tags { padding: 0 10px; }
.mv__related-head { margin: 60px 0 30px; text-align: center; }
.mv__related-head h3 { font-size: 40px; line-height: 44px; font-weight: normal; }
.mv__related-head .chev-down { width: 44px; height: 20px; margin: 10px auto 0; }
.mv__related { display: flex; flex-direction: column; align-items: center; margin: 0 -20px; }

html[lang="he"] .mv__title,
html[lang="he"] .mv__related-head h3 { font-family: var(--f-he); }
html[lang="he"] .mv__text { font-family: var(--f-he-light); font-size: 22px; }
html[lang="he"] .viewer--mobile .viewer__close { right: auto; left: 14px; }

@media (max-width: 767px) {
  .viewer { inset: var(--header2-h) 0 0 0; }
}

/* o item ativo do menu continua branco com a janela aberta */
body.is-locked .site-header .site-nav a[aria-current="page"],
body.is-locked .site-header .site-nav a:hover,
body.is-locked .site-header .lang-switch button[aria-pressed="true"] { color: #fff; }
