/* ===== Galeria em leque (card-fan-carousel) ===== */
.fan { overflow: hidden; }

.fan__wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Altura ideal por largura de tela (mesmos valores do componente), limitada a 70% da altura da tela */
.fan-layout {
  --fan-h: min(22rem, 70vh);
  position: relative;
  width: 100%;
  max-width: 80rem;
  height: var(--fan-h);
}

.fan-card {
  position: absolute;
  left: 50%;
  top: 50%;
  height: calc(var(--fan-h) * .74);
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 4px solid var(--white);
  border-radius: 18px;
  overflow: hidden;
  background: var(--black-3);
  box-shadow: 0 18px 40px -12px rgba(26, 26, 26, .35);
  cursor: pointer;
  opacity: 0; /* o GSAP revela na entrada */
  will-change: transform;
}
.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.fan-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ----- Setas e pontinhos ----- */
.fan__controls[hidden] { display: none; }
.fan__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem; /* as cartas das pontas descem e giram além da área do leque */
  position: relative;
  z-index: 20;
}

.fan__arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 0, 0, .1);
  border-radius: 50%;
  background: rgba(0, 0, 0, .05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: rgba(0, 0, 0, .45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  transition: color .3s, border-color .3s, background .3s;
}
.fan__arrow::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 50%;
  pointer-events: none;
}
.fan__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fan__arrow:hover { border-color: var(--orange); color: var(--orange); }
.fan__arrow:active { opacity: .7; }
.fan__arrow:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.fan__dots { display: flex; align-items: center; gap: .5rem; }
.fan__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .15);
  transition: background .3s, transform .3s;
}
.fan__dot.is-active { background: var(--orange); transform: scale(1.3); }

@media (min-width: 480px) { .fan-layout { --fan-h: min(26rem, 70vh); } }
@media (min-width: 640px) { .fan-layout { --fan-h: min(28rem, 70vh); } }
@media (min-width: 768px) {
  .fan-layout { --fan-h: min(34rem, 70vh); }
  .fan__controls { margin-top: 4rem; }
  .fan__arrow { width: 48px; height: 48px; }
  .fan__arrow svg { width: 20px; height: 20px; }
}
@media (min-width: 1024px) { .fan-layout { --fan-h: min(38rem, 70vh); } }

/* Sem JS: fotos lado a lado */
html:not(.js) .fan-layout { height: auto; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
html:not(.js) .fan-card { position: relative; left: auto; top: auto; height: 16rem; opacity: 1; }
html:not(.js) .fan__controls { display: none; }
