/* Seção "Siga no Instagram" — Instagram Photo Feed: faixa contínua de
   fotos reais, quase se tocando, full-bleed de ponta a ponta da tela.
   Cabeçalho compacto acima, um único botão abaixo. Segue os tokens
   visuais do site (Overlock SC / Noto Sans, acento amarelo #ecc31f). */

.ig-feed-section {
	background: #fff;
	padding: 34px 0 36px;
	overflow: hidden; /* nunca deixa o feed vazar e criar scroll horizontal na página */
}

/* Chave de ativação/desativação — feed implementado, mas em espera até as
   credenciais da Meta/Instagram serem configuradas. Para reativar, basta
   remover esta classe do <section id="instagram-feed"> no index.html
   (ou apagar só este bloco de regra). display:none garante que a seção
   não ocupa nenhum espaço no layout enquanto desativada. */
.instagram-feed-disabled {
	display: none !important;
}

.ig-feed-header {
	max-width: 1320px;
	margin: 0 auto 14px;
	padding: 0 20px;
	text-align: center;
}

.ig-feed-title {
	font-family: 'Overlock SC', sans-serif;
	font-size: 22px;
	line-height: 1.2;
	margin: 0 0 4px;
	color: #1a1a1a;
}

.ig-feed-handle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Noto Sans', sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 2px solid #ecc31f;
	padding-bottom: 1px;
	transition: color .2s ease, border-color .2s ease;
}

.ig-feed-handle:hover,
.ig-feed-handle:focus-visible {
	color: #b8850a;
	border-color: #b8850a;
}

.ig-feed-handle svg {
	width: 14px;
	height: 14px;
	flex: none;
}

/* Faixa de fotos — full-bleed, sem container estreito, sem padding
   lateral reservado (as setas flutuam por cima das próprias fotos). */
.ig-feed-carousel {
	position: relative;
	width: 100%;
}

.ig-feed-track {
	display: flex;
	gap: 2px; /* fotos quase se tocando, formando um feed contínuo */
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	list-style: none;
	margin: 0;
	padding: 0;
	cursor: grab;
	scrollbar-width: none; /* Firefox */
}

.ig-feed-track::-webkit-scrollbar {
	display: none;
}

.ig-feed-track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.ig-feed-card {
	position: relative;
	flex: 0 0 14.285%; /* 7 fotos por vez em telas bem largas */
	scroll-snap-align: start;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f0f0f0;
}

.ig-feed-card a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.ig-feed-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	-webkit-user-drag: none;
	user-select: none;
	transition: transform .4s ease;
}

.ig-feed-card a:hover img,
.ig-feed-card a:focus-visible img {
	transform: scale(1.08);
}

/* Overlay "Ver no Instagram" no hover (desktop) */
.ig-feed-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%);
	color: #fff;
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
	text-align: center;
	padding: 8px;
}

@media (hover: hover) {
	.ig-feed-card a:hover .ig-feed-overlay {
		opacity: 1;
	}
}

.ig-feed-card a:focus-visible .ig-feed-overlay {
	opacity: 1;
}

.ig-feed-overlay svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

.ig-feed-overlay span {
	font-family: 'Noto Sans', sans-serif;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ig-feed-card a:focus-visible {
	outline: 3px solid #ecc31f;
	outline-offset: -3px;
}

/* Skeleton (loading) */
.ig-feed-card--skeleton {
	background: linear-gradient(100deg, #ececec 30%, #f7f7f7 50%, #ececec 70%);
	background-size: 200% 100%;
	animation: ig-feed-shimmer 1.4s ease-in-out infinite;
}

@keyframes ig-feed-shimmer {
	0% { background-position: 150% 0; }
	100% { background-position: -50% 0; }
}

/* Setas discretas, flutuando sobre a própria faixa de fotos */
.ig-feed-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.85);
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
	color: #1a1a1a;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.ig-feed-nav--prev { left: 8px; }
.ig-feed-nav--next { right: 8px; }

.ig-feed-nav:hover,
.ig-feed-nav:focus-visible {
	background: #ecc31f;
}

.ig-feed-nav:active {
	transform: translateY(-50%) scale(.92);
}

.ig-feed-nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.ig-feed-nav:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

/* Fallback (feed indisponível / não configurado) — mensagem única e discreta */
.ig-feed-fallback {
	text-align: center;
	padding: 22px 20px;
	width: 100%;
	font-family: 'Roboto', sans-serif;
}

.ig-feed-fallback p {
	margin: 0;
	color: #555;
	font-size: 14px;
}

/* Botão único "Seguir no Instagram" */
.ig-feed-btn {
	display: inline-block;
	font-family: 'Noto Sans', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
	color: #1a1a1a;
	background: #ecc31f;
	border: 2px solid #ecc31f;
	border-radius: 50px;
	padding: 11px 28px;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ig-feed-btn:hover,
.ig-feed-btn:focus-visible {
	background: transparent;
	color: #1a1a1a;
	border-color: #1a1a1a;
}

.ig-feed-cta {
	text-align: center;
	margin-top: 14px;
	padding: 0 20px;
}

/* Responsivo — quantidade de fotos visíveis (desktop 5-7 / tablet 3-4 / celular 2) */
@media (max-width: 1600px) {
	.ig-feed-card { flex-basis: 16.666%; } /* 6 */
}

@media (max-width: 1280px) {
	.ig-feed-card { flex-basis: 20%; } /* 5 */
}

@media (max-width: 991px) {
	.ig-feed-card { flex-basis: 25%; } /* 4 */
	.ig-feed-title { font-size: 20px; }
}

@media (max-width: 767px) {
	.ig-feed-card { flex-basis: 33.333%; } /* 3 */
	.ig-feed-nav { width: 30px; height: 30px; font-size: 16px; }
}

@media (max-width: 480px) {
	.ig-feed-section { padding: 26px 0 28px; }
	.ig-feed-card { flex-basis: 50%; } /* 2 */
}

@media (prefers-reduced-motion: reduce) {
	.ig-feed-track { scroll-behavior: auto; }
	.ig-feed-card img { transition: none; }
	.ig-feed-card--skeleton { animation: none; }
}
