/* Feed do Instagram. Personalize pelas variáveis abaixo, no seu próprio CSS:
   .igf { --igf-gap: 16px; --igf-radius: 0; --igf-min: 220px; } */
.igf {
  --igf-gap: 12px;
  --igf-radius: 10px;
  --igf-min: 180px;          /* largura mínima de cada foto na grade */
  --igf-placeholder: #e6e6e6;
  --igf-foco: #2563eb;
  position: relative;
  font: inherit;
  color: inherit;
}
.igf *, .igf *::before, .igf *::after { box-sizing: border-box; }

.igf__estado { margin: 0; padding: 24px 0; text-align: center; opacity: .75; }
.igf__estado a { color: inherit; }

/* Item */
.igf__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--igf-radius);
  background: var(--igf-placeholder);
  color: #fff;
  text-decoration: none;
}
.igf__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.igf__item:hover img,
.igf__item:focus-visible img { transform: scale(1.04); }

.igf__selo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  pointer-events: none;
}
.igf__selo svg { display: block; width: 100%; height: 100%; }

.igf__sobre {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.igf__item:hover .igf__sobre,
.igf__item:focus-visible .igf__sobre { opacity: 1; transform: none; }
.igf__legenda {
  margin: 0;
  font-size: .85rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.igf__data { display: block; margin-top: 4px; font-size: .75rem; opacity: .8; }
@media (hover: none) { .igf__sobre { display: none; } }

/* Grade */
.igf__lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--igf-min), 1fr));
  gap: var(--igf-gap);
}
.igf__lista [hidden] { display: none; }
.igf__rodape { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* Carrossel */
.igf__palco { position: relative; }
.igf__trilho {
  display: flex;
  gap: var(--igf-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.igf__trilho::-webkit-scrollbar { display: none; }
.igf--carrossel .igf__item {
  flex: 0 0 clamp(150px, 22%, 260px);
  scroll-snap-align: start;
}
@media (max-width: 700px) {
  .igf--carrossel .igf__item { flex-basis: 62%; }
}

.igf__nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.igf__nav svg { display: block; width: 100%; height: 100%; }
.igf__nav--ant { left: 8px; }
.igf__nav--prox { right: 8px; }

.igf__controles { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Botões e links de texto */
.igf__botao {
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
}
.igf__botao:hover { opacity: .75; }

.igf a:focus-visible,
.igf button:focus-visible,
.igf__trilho:focus-visible { outline: 3px solid var(--igf-foco); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .igf__item img, .igf__sobre { transition: none; }
  .igf__item:hover img, .igf__item:focus-visible img { transform: none; }
}
