/* ID Federal Halloween v3.8.9
 * Fundo e painel reduzidos na mesma proporcao em desktop.
 * Galeria limitada a 4 artes por pagina pela paginacao v3.4.
 */

/* Desktop/notebook: o wallpaper acompanha a reducao de 25% do painel.
 * Nao estica e nao deforma: largura 75%, altura automatica. */
@media (min-width:901px){
  html body.idf-halloween-active.idf-hw-central-v33,
  html body.idf-halloween-active.idf-hw-demo-central.idf-hw-central-v33{
    background-size:75% auto !important;
    background-position:center top !important;
    background-repeat:no-repeat !important;
    background-color:#071223 !important;
  }
}

/* Quatro artes = duas linhas de duas colunas no desktop. */
body.idf-halloween-active.idf-hw-central-v33 .idf-v385-gallery{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  align-items:start !important;
}

/* Cartoes ocultos pela paginacao nunca reservam espaco. */
body.idf-halloween-active.idf-hw-central-v33 .idf-hw-card-filtered-v34{
  display:none !important;
}

/* Paginação mais compacta para caber dentro do cenário. */
body.idf-halloween-active.idf-hw-central-v33 .idf-hw-pagination-v34{
  margin:10px 0 0 !important;
  padding:7px 2px !important;
  gap:8px !important;
}
body.idf-halloween-active.idf-hw-central-v33 .idf-hw-pagination-v34 button{
  min-height:30px !important;
  padding:6px 10px !important;
  border-radius:6px !important;
}

/* Tablet/mobile: usa o wallpaper mobile em largura integral para legibilidade. */
@media (max-width:900px){
  html body.idf-halloween-active.idf-hw-central-v33,
  html body.idf-halloween-active.idf-hw-demo-central.idf-hw-central-v33{
    background-size:100% auto !important;
  }
}
