/*
 * Galerias dos artigos em carrossel no telemóvel (18/11/2026). Igual na RV, na
 * Gula e na blue Travel; as cores vêm de --primary-color de cada tema.
 * Só até 767px: no desktop a grelha fica como estava. A classe
 * .rv-galeria-swipe é posta pelo galeria-swipe.js; sem JS fica a grelha antiga.
 */
.rv-galeria-indicador {
  display: none;
}

@media (max-width: 767px) {
  section.block-gallery .wrapper > .row.rv-galeria-swipe {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-left: 0;
    margin-right: 0;
    gap: 10px;
    justify-content: flex-start;
  }

  section.block-gallery .wrapper > .row.rv-galeria-swipe::-webkit-scrollbar {
    display: none;
  }

  section.block-gallery .wrapper > .row.rv-galeria-swipe > div {
    flex: 0 0 86%;
    width: 86%;
    max-width: 86%;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  section.block-gallery .wrapper > .row.rv-galeria-swipe > div > .img-wrap,
  section.block-gallery .wrapper > .row.rv-galeria-swipe > div > .img-wrap.smaller,
  section.block-gallery .wrapper > .row.rv-galeria-swipe > div > .img-wrap.normal,
  section.block-gallery .wrapper > .row.rv-galeria-swipe > div > .img-wrap.larger {
    height: auto;
    aspect-ratio: var(--rv-galeria-ratio, 0.8);
    margin-bottom: 0;
  }

  section.block-gallery .wrapper > .row.rv-galeria-swipe .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  section.block-gallery .rv-galeria-indicador {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 20px;
    margin-top: 14px;
  }

  section.block-gallery .rv-galeria-ponto {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color, #000);
    opacity: 0.25;
    transition: opacity 0.2s, transform 0.2s;
  }

  section.block-gallery .rv-galeria-ponto.activo {
    opacity: 1;
    transform: scale(1.15);
  }

  section.block-gallery .rv-galeria-contador {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--primary-color, #000);
  }

  /* Banner de parceiros que estava como casa da galeria: por baixo do carrossel */
  section.block-gallery .rv-pub-casa-galeria.rv-pub-casa-fora {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    padding: 0;
  }
}
