/* ==========================================================================
   Siam District — Homepage Instagram feed section
   ========================================================================== */

.ig-feed {
	background: var(--sd-color-brand);
	padding: 48px 0 0;
}

.ig-feed__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--sd-container-width);
	margin: 0 auto;
	padding: 0 24px 32px;
	gap: 24px;
	flex-wrap: wrap;
}

.ig-feed__title {
	margin: 0;
	font-family: var(--sd-font-heading);
	font-size: 34px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--sd-color-white);
}

.ig-feed__socials {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}

.ig-feed__social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: transparent;
	border: 1.5px solid var(--sd-color-white);
	border-radius: 999px;
	color: var(--sd-color-white);
	font-family: var(--sd-font-button);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ig-feed__social svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
}

.ig-feed__social:hover,
.ig-feed__social:focus-visible {
	background: var(--sd-color-white);
	color: #000000;
}

/* ---- Carousel — matches the site's standard section container so the
   photos span the full section width, same rhythm as Best Sellers etc. ---- */

.ig-feed__carousel {
	position: relative;
	max-width: var(--sd-container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.ig-feed__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.ig-feed__track::-webkit-scrollbar {
	display: none;
}

.ig-feed__item {
	flex: 0 0 calc((100% - 3 * 16px) / 4);
	scroll-snap-align: start;
	aspect-ratio: 3 / 4;
	display: block;
	overflow: hidden;
}

.ig-feed__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ig-feed__item:hover img,
.ig-feed__item:focus-visible img {
	transform: scale(1.05);
}

.ig-feed__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	color: #000000;
	transition: background-color 0.15s ease;
}

.ig-feed__arrow svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.ig-feed__arrow:hover,
.ig-feed__arrow:focus-visible {
	background: var(--sd-color-white);
}

.ig-feed__arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.ig-feed__arrow--prev {
	left: 20px;
}

.ig-feed__arrow--next {
	right: 20px;
}

@media (max-width: 1279.98px) {
	.ig-feed__item {
		flex: 0 0 calc((100% - 2 * 16px) / 3);
	}

	.ig-feed__title {
		font-size: 26px;
	}
}

@media (max-width: 599.98px) {
	.ig-feed {
		padding: 32px 0 0;
	}

	.ig-feed__header {
		padding-bottom: 20px;
	}

	.ig-feed__track {
		gap: 8px;
	}

	.ig-feed__item {
		flex: 0 0 calc((100% - 8px) / 2);
	}

	.ig-feed__title {
		font-size: 22px;
	}

	.ig-feed__arrow {
		width: 36px;
		height: 36px;
	}
}
