/* Instagram em grade: fotos quadradas lado a lado */

.yper-instagram {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}

.yper-instagram-topo {
  margin-bottom: 2rem;
}

.yper-instagram-titulo {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #1b1b1b;
  margin: 0 0 0.5rem;
}

.yper-instagram-perfil {
  color: #f5b301;
  font-weight: 600;
  text-decoration: none;
}

.yper-instagram-perfil:hover {
  text-decoration: underline;
}

.yper-instagram-foto {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}

.yper-instagram-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.yper-instagram-sobre {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.yper-instagram-sobre .yper-instagram-icone {
  width: 32px;
  height: 32px;
}

.yper-instagram-foto:hover img,
.yper-instagram-foto:focus-visible img {
  transform: scale(1.06);
}

.yper-instagram-foto:hover .yper-instagram-sobre,
.yper-instagram-foto:focus-visible .yper-instagram-sobre {
  opacity: 1;
}

.yper-instagram-botao {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid #f5b301;
  background: #f5b301;
  color: #141414;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.yper-instagram-botao:hover {
  background: #141414;
  color: #f5b301;
  border-color: #141414;
}

@media (prefers-reduced-motion: reduce) {
  .yper-instagram-foto img,
  .yper-instagram-sobre {
    transition: none;
  }
}

.yper-instagram-grade .yper-instagram-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

@media (max-width: 575px) {
  .yper-instagram {
    padding: 3rem 1rem;
  }

  .yper-instagram-grade .yper-instagram-fotos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
}
