/* 1) WRAPPER: scroll horizontal + scroll oculto no mobile */
.foak-carrossel-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scrollbar-width: none; /* Firefox esconde */
  -ms-overflow-style: none; /* IE/Edge esconde */
}
.foak-carrossel-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera esconde */
}

/* 2) CARROSSEL: linha única de itens, sem width no mobile */
.foak-carrossel {
  display: flex;
  flex-wrap: nowrap;
  gap: 75px;
  padding: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* 3) ITENS (cards) e “mais posts” */
.foak-carrossel-item,
.mais-posts-card {
  flex: 0 0 75%;
  max-width: 75%;
  scroll-snap-align: start;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.foak-carrossel-item img,
.mais-posts-card img {
  width: 100%;
  aspect-ratio: 24/20;
  object-fit: cover;
  display: block;
}

.foak-carrossel-title {
  background-color: #00b0e6;
  color: #fff;
  font-weight: bold;
  padding: 10px;
  font-size: 24px;
  line-height: 1.4;
  opacity: 0.8;
  height: 100%;
  text-align: center;
}

a.foak-carrossel-title,
a.foak-carrossel-title:focus,
a.foak-carrossel-title:hover {
  text-decoration: none;
}

.foak-carrossel-categorias .foak-carrossel-title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.foak-carrossel-item:hover {
  transform: translateY(-4px);
}

.mais-posts-card {
  text-align: center;
  align-items: center;
  justify-content: center;
}

.mais-posts-card a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 20px;
  display: block;
}

.foak-carrossel .wp-post-image {
  margin-bottom: 0;
}

/* 4) DESKTOP: scrollbar sutil e largura forçada para ativar scroll */
@media (min-width: 768px) {
  /* scrollbar visível e discreta */
  .foak-carrossel-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  .foak-carrossel-wrapper::-webkit-scrollbar {
    display: block;
    height: 6px;
  }
  .foak-carrossel-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }
  .foak-carrossel-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

  /* força o container a extrapolar e ativar o scroll */
  .foak-carrossel {
    width: max-content;
  }

  /* ajusta o tamanho dos cards no desktop */
  .foak-carrossel-item,
  .mais-posts-card {
    flex: 0 0 300px;
    max-width: 300px;
  }
}
