.ficha-projeto {
  width: min(91%, 75rem);
  margin-inline: auto;
  padding: clamp(1rem, 2.4vw, 2rem) 0 clamp(3rem, 7vw, 6rem);
}
.ficha-projeto .regresso { font-size: .94rem; }
.projeto-titulo { text-align: center; margin: .75rem auto clamp(1.8rem, 3.8vw, 3.2rem); }
.projeto-titulo h1 {
  margin-inline: auto; max-width: 24ch;
  font-size: clamp(2.4rem, 4.65vw, 4.6rem);
  line-height: 1.03; letter-spacing: -.045em; color: var(--floresta); text-wrap: balance;
}
.projeto-titulo p { margin-top: .75rem; color: var(--secundaria); }
.projeto-abertura {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start; gap: clamp(1.6rem, 4.8vw, 4.5rem);
}
.projeto-abertura:not(:has(.projeto-principal)) { grid-template-columns: minmax(0, 48rem); justify-content: center; }
.projeto-principal, .projeto-notas { min-width: 0; }
.projeto-funcao { margin: 0 0 .9rem; font-size: clamp(1.04rem, 1.6vw, 1.28rem); font-weight: 600; line-height: 1.4; }
.projeto-funcao > span { display: block; font-size: .84rem; color: var(--secundaria); font-weight: 400; margin-bottom: .15rem; }
.projeto-descricao { margin-bottom: 1.15rem; }
.projeto-descricao p { max-width: 58ch; line-height: 1.6; margin-bottom: .5rem; }
.projeto-notas .ficha div { padding: .5rem 0; gap: .7rem; }
.projeto-notas .ficha div:first-child { border-top: 1px solid var(--linha); }
.projeto-notas > .texto-link { display:inline-block; margin-top:.8rem; }
.projeto-blocos { margin: clamp(2.4rem, 5vw, 4.5rem) auto 0; }
.projeto-blocos > * + * { margin-top: clamp(2.3rem, 4.7vw, 4.25rem); }
.colecao-fotos { max-width: 69rem; margin-inline: auto; }
.colecao-fotos h2 { font-size: clamp(1.6rem,3vw,2.4rem); line-height: 1.16; letter-spacing: -.03em; margin: 0 0 1.1rem; color: var(--floresta); }
.projeto-galeria {
  display: grid; grid-template-columns: repeat(var(--desktop, 3), minmax(0,1fr));
  align-items: start; gap: clamp(.6rem,1.3vw,1.25rem); margin-inline: auto;
}
.projeto-galeria[data-colunas="1"] { max-width: 43rem; }
.projeto-galeria[data-colunas="2"] { max-width: 57rem; }
.projeto-galeria[data-proporcao="3:2"] { max-width: 53rem; }
.foto-projeto { min-width: 0; }
.foto-projeto a { display: block; background: #eaeae3; border-radius: .94rem; overflow:hidden; cursor: zoom-in; }
.foto-projeto img { width:100%; height:auto; max-height: 36rem; object-fit:contain; }
.foto-projeto a:hover img { filter: brightness(.96); }
.foto-projeto figcaption { margin-top:.5rem; font-size:.86rem; line-height:1.45; }
.projeto-galeria[data-proporcao="3:2"] .foto-projeto img { aspect-ratio:3/2; object-fit:cover; object-position:50% 45%; }
.projeto-galeria[data-proporcao="1:1"] .foto-projeto img { aspect-ratio:1; object-fit:cover; }
.projeto-galeria[data-proporcao="4:3"] .foto-projeto img { aspect-ratio:4/3; object-fit:cover; }
.projeto-galeria[data-proporcao="16:9"] .foto-projeto img { aspect-ratio:16/9; object-fit:cover; }
.projeto-video-extra { max-width: 55rem; margin-inline:auto; }
.visor-fotos {
  width: min(96vw, 85rem); max-width: 96vw; max-height: 96dvh;
  padding:0; border:0; border-radius:.55rem; color: var(--tinta); background:var(--papel);
}
.visor-fotos::backdrop { background: rgb(13 21 18 / .92); }
.visor-conteudo { padding: .55rem clamp(.75rem,2vw,1.6rem) .8rem; }
.visor-barra, .visor-setas { display:flex; align-items:center; justify-content: space-between; gap:.75rem; }
.visor-barra { margin-bottom:.45rem; color:var(--secundaria); font-size:.9rem; }
.visor-fotos button { min-width:44px; min-height:44px; border:1px solid transparent; background:transparent; color:var(--floresta); font:inherit; cursor:pointer; }
.visor-fotos button:hover, .visor-fotos button:focus-visible { border-color:var(--floresta); }
.visor-fotos [data-fechar] span { font-size:1.35rem; vertical-align:middle; }
.visor-fotos figure { margin:0; }
.visor-fotos [data-imagem] { background:#e9e9e2; display:grid; place-items:center; }
.visor-fotos img { width:auto; height:auto; max-width:100%; max-height: min(69dvh, 58rem); object-fit:contain; }
.visor-fotos figcaption { margin: .4rem 0 0; min-height:1.4em; }
.visor-setas { justify-content:center; }
.visor-setas button { font-size:1.4rem; }
.visor-setas[hidden] { display:none; }
body:has(.visor-fotos[open]) { overflow:hidden; }
@media (max-width: 54rem) {
  .projeto-galeria { grid-template-columns: repeat(var(--tablet, 3), minmax(0,1fr)); }
}
@media (max-width: 43rem) {
  .ficha-projeto { width:90%; }
  .projeto-abertura { grid-template-columns:minmax(0,1fr); gap:1.35rem; }
  .projeto-titulo { margin: .65rem auto 1.55rem; }
  .projeto-galeria { grid-template-columns: repeat(var(--movel, 2), minmax(0,1fr)); }
  .projeto-titulo h1 { font-size:clamp(2.1rem, 8.6vw, 3.4rem); }
  .projeto-notas .ficha div { grid-template-columns: minmax(0,.82fr) minmax(0,1.2fr); }
}
@media (max-width: 28rem) {
  .projeto-galeria[data-proporcao="3:2"]:has(> :nth-child(3):last-child) { grid-template-columns:minmax(0,1fr); }
}
@media print {
  .visor-fotos {display:none;}
  .ficha-projeto {width:100%;}
}

