/* ============================================================
   RVREBOX · feedbacks na home ("/QUEM JÁ RECEBEU")
   Prints dos destaques do Instagram, sorteados e girando sozinhos.
   ============================================================ */

.fb-carrossel { position: relative; }

.fb-trilho {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 6.5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-left: 1px solid var(--border);
}
.fb-trilho::-webkit-scrollbar { display: none; }

.fb-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--surface-elevated);
  scroll-snap-align: start;
  cursor: zoom-in;
}
.fb-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.fb-card:hover img { transform: scale(1.03); }
.fb-card:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.fb-card.is-novo img { animation: fb-entra 0.6s ease both; }
@keyframes fb-entra { from { opacity: 0; } to { opacity: 1; } }

/* Setas */
.fb-seta {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-bright);
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.fb-seta:hover { color: var(--accent); border-color: var(--accent); }
.fb-seta:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.fb-seta--ant { left: 12px; }
.fb-seta--prox { right: 12px; }

/* Print ampliado */
.fb-zoom {
  margin: auto; /* o reset do tema zera a margem e o dialog perde a centralização */
  padding: 0;
  border: 1px solid var(--border-bright);
  background: #000;
  max-width: 92vw;
  max-height: 92vh;
  overflow: visible;
}
.fb-zoom::backdrop { background: rgba(0, 0, 0, 0.88); }
.fb-zoom img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
}
.fb-zoom__fechar {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--foreground);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.fb-zoom__fechar:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 1024px) {
  .fb-trilho { grid-auto-columns: calc(100% / 4.3); }
}
@media (max-width: 768px) {
  .fb-trilho { grid-auto-columns: 42%; }
  .fb-seta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fb-card img, .fb-card.is-novo img { transition: none; animation: none; }
}
