/**
 * Jordan Instagram Posts widget styles.
 */

.jordan-ig-grid {
	display: grid;
	grid-template-columns: repeat( 6, 1fr );
	gap: 20px;
}

.jordan-ig-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.jordan-ig-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 12px;
	overflow: hidden;
	background-color: #f3f3f1;
}

.jordan-ig-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.jordan-ig-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient( 135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888 );
}

.jordan-ig-card__play {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: rgba( 0, 0, 0, 0.5 );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jordan-ig-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.jordan-ig-grid--hover-darken .jordan-ig-card:hover .jordan-ig-card__overlay,
.jordan-ig-grid--hover-zoom-darken .jordan-ig-card:hover .jordan-ig-card__overlay {
	opacity: 1;
}

.jordan-ig-grid--hover-zoom .jordan-ig-card:hover .jordan-ig-card__media img,
.jordan-ig-grid--hover-zoom-darken .jordan-ig-card:hover .jordan-ig-card__media img {
	transform: scale( 1.06 );
}

.jordan-ig-card__caption {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
}

.jordan-ig-card__title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	color: #1f2937;
}

.jordan-ig-card__subtitle {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9ca3af;
}

.jordan-ig-card--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	border: 2px dashed #d1d5db;
	border-radius: 12px;
	color: #9ca3af;
	font-size: 13px;
	text-align: center;
	padding: 16px;
}
