/* Sala «Mestres da escrita aos meus olhos»: janela com a obra em grande e o texto do escritor (Design 12/11/2026).
   Sem molduras. Nome em Cormorant Garamond, texto em Jost. No telemóvel o texto fica por baixo da imagem. */
.esc-jan { position: fixed; inset: 0; z-index: 105; background: #f7f3ea; overflow: hidden; }
.esc-jan[hidden] { display: none; }
.esc-jan__fechar {
  position: absolute; top: 14px; right: 18px; z-index: 2; width: 48px; height: 48px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 38px; font-weight: 400; line-height: 1; color: #17150f;
}
.esc-jan__fechar:hover { color: #b5502a; }
.esc-jan__caixa {
  height: 100%; box-sizing: border-box; padding: 56px 72px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 64px; align-items: center;
  max-width: 1440px; margin: 0 auto;
}
.esc-jan__fig { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.esc-jan__fig img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.esc-jan__col { max-height: 100%; overflow-y: auto; padding-right: 12px; max-width: 520px; }
.esc-jan__titulo { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 46px; line-height: 1.05; color: #17150f; margin: 0 0 14px; }
.esc-jan__tec, .esc-jan__meta { font-family: var(--sans); font-size: 14px; color: #5f594f; }
.esc-jan__meta { margin-bottom: 14px; }
.esc-jan__base { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.esc-jan__base .sl-obra__base { margin: 0; }
.esc-jan__texto p { font-family: var(--sans); font-size: 16px; line-height: 1.7; color: #2a2621; margin: 0 0 1em; }
.esc-jan__texto p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .esc-jan { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .esc-jan__fechar { position: fixed; top: 8px; right: 8px; background: rgba(247, 243, 234, .9); }
  .esc-jan__caixa { height: auto; display: block; padding: 64px 20px 48px; }
  .esc-jan__fig { height: auto; margin-bottom: 28px; }
  .esc-jan__fig img { max-height: 75vh; }
  .esc-jan__col { max-height: none; overflow: visible; padding-right: 0; max-width: none; }
  .esc-jan__titulo { font-size: 36px; }
  .esc-jan__texto p { font-size: 15px; }
}
.esc-jan__fechar:focus:not(:focus-visible) { outline: none; }
/* Poema ou citação em destaque, no fim do texto (Design 13/11/2026): Cormorant Garamond itálico; autor em Jost 13px terracota; sem molduras */
.esc-jan__texto .esc-jan__poema { margin: 30px 0 0; padding: 0; border: 0; }
.esc-jan__texto .esc-jan__versos { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.4; color: #17150f; white-space: pre-line; margin: 0; }
.esc-jan__texto .esc-jan__autor { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: #b5502a; margin: 12px 0 0; }
.esc-jan__texto .esc-jan__trad { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: #5f594f; white-space: pre-line; margin: 16px 0 0; }
@media (max-width: 900px) { .esc-jan__texto .esc-jan__versos { font-size: 20px; } }
/* Página própria da obra (pintura-*.html): texto do escritor por baixo do botão «Adquirir», alinhado à esquerda */
.esc-pag { text-align: left; margin-top: 56px; }
/* Janela: «Partilhar ↗» ao lado do «Adquirir →» e «← Voltar à galeria» no canto de cima à esquerda (14/11/2026) */
.esc-jan__partilhar, .esc-jan__voltar {
  background: none; border: 0; border-radius: 0; padding: 9px 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4;
}
.esc-jan__partilhar { color: #b5502a; }
.esc-jan__voltar { position: absolute; top: 22px; left: 28px; z-index: 2; color: #17150f; }
.esc-jan__partilhar:hover, .esc-jan__voltar:hover { color: #b5502a; text-decoration: underline; text-underline-offset: 4px; }
.esc-jan__partilhar:focus:not(:focus-visible), .esc-jan__voltar:focus:not(:focus-visible) { outline: none; }
@media (max-width: 900px) {
  .esc-jan__voltar { position: fixed; top: 8px; left: 8px; min-height: 48px; padding: 0 12px; background: rgba(247, 243, 234, .9); }
  .esc-jan__partilhar { min-height: 44px; }
}
/* Página própria da obra (14/11/2026): foto à esquerda, título, preço e texto à direita, como na janela da sala */
main.container.esc-pagina { max-width: 1240px; text-align: left; }
.esc-pag-grelha { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 64px; align-items: start; }
.esc-pag-fig { position: sticky; top: 110px; }
.esc-pag-fig img.photo { margin-bottom: 0 !important; }
.esc-pag-col { text-align: left; }
.esc-pag-col .esc-pag { margin-top: 44px; }
@media (max-width: 900px) {
  main.container.esc-pagina { max-width: 680px; }
  .esc-pag-grelha { display: block; }
  .esc-pag-fig { position: static; }
  .esc-pag-fig img.photo { margin-bottom: 28px !important; }
  .esc-pag-col { text-align: center; }
  .esc-pag-col .esc-pag { text-align: left; }
}
