/* Instagram Feed Sky Yoga — grid + card styles */

.igfsy-feed {
	max-width: 1100px;
	margin: 0 auto;
	font-family: inherit;
}

.igfsy-feed__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.igfsy-feed__account {
	font-weight: 600;
	font-size: 1.1rem;
	color: #262626;
}

.igfsy-feed__follow-btn {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 6px;
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.igfsy-feed__follow-btn:hover,
.igfsy-feed__follow-btn:focus {
	opacity: 0.85;
	color: #fff;
}

.igfsy-feed__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 782px) {
	.igfsy-feed__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.igfsy-feed__grid {
		grid-template-columns: 1fr;
	}
}

.igfsy-feed__empty {
	text-align: center;
	color: #757575;
}

.igfsy-card {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #f2f2f2;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.igfsy-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	background: #f2f2f2;
	overflow: hidden;
}

.igfsy-card__media-link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.igfsy-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.igfsy-card:hover .igfsy-card__image {
	transform: scale(1.03);
}

.igfsy-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f0f0f0 25%, #e2e2e2 25%, #e2e2e2 50%, #f0f0f0 50%, #f0f0f0 75%, #e2e2e2 75%, #e2e2e2 100%);
	background-size: 24px 24px;
}

.igfsy-card__ig-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	color: #262626;
	text-decoration: none;
}

.igfsy-card__ig-icon:hover {
	background: #fff;
}

.igfsy-card__play-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	pointer-events: none;
}

/* Overlay reveal — dark gradient over the bottom of the image, expands
   and reveals the caption on hover (pure CSS, no JS). */
.igfsy-card__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	padding: 28px 14px 12px;
	height: 32%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	transition: height 0.3s ease, padding 0.3s ease;
}

.igfsy-card:hover .igfsy-card__overlay {
	height: 70%;
	padding-top: 60px;
}

.igfsy-card__caption {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.4;
	color: #fff;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition: opacity 0.3s ease 0.1s;
}

.igfsy-card:hover .igfsy-card__caption {
	opacity: 1;
	max-height: none;
}

.igfsy-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.igfsy-card__account {
	font-size: 0.82rem;
	font-weight: 600;
	color: #fff;
}

.igfsy-card__date {
	font-size: 0.72rem;
	color: #e0e0e0;
}

/* Instagram-gradient accent bar, fades in along the bottom edge on hover. */
.igfsy-card__ig-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 4px;
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.igfsy-card:hover .igfsy-card__ig-bar {
	opacity: 1;
}
