/* Compacta a seção de contextos no mobile sem esconder nenhum cartão. */
@media (max-width: 700px) {
  #ambientes {
    padding-top: 24px !important;
    padding-bottom: 46px !important;
  }

  #ambientes .section-head {
    margin-bottom: 18px !important;
  }

  #ambientes .scenes {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2px 0 0;
    overflow: visible !important;
  }

  #ambientes .scene {
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 220px !important;
    height: 220px !important;
    border-radius: 20px !important;
  }

  #ambientes .scene::before {
    display: none !important;
    content: none !important;
  }

  #ambientes .scene .copy {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  #ambientes .scene h3 {
    font-size: clamp(.88rem, 4vw, 1rem) !important;
    line-height: 1.05 !important;
  }

  #ambientes .scene p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin-top: 6px !important;
    font-size: clamp(.58rem, 2.6vw, .7rem) !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3 !important;
  }
}

@media (max-width: 360px) {
  #ambientes .scenes { gap: 8px !important; }
  #ambientes .scene {
    min-height: 210px !important;
    height: 210px !important;
    border-radius: 18px !important;
  }
  #ambientes .scene .copy {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
  }
  #ambientes .scene p {
    font-size: .58rem !important;
    -webkit-line-clamp: 3 !important;
  }
}
