/* FM ÆVUS Social Feed: homepage grid + lightbox (moved out of the fm-aevus-child theme). */
.fm-ig,.fm-lb{--fm-ink:#2b2b2b;--fm-gold:#b8925a;--fm-border:#e7e1d8;--fm-white:#fff;--fm-black:#000;--fm-font-serif:'Cormorant Garamond',Georgia,serif;--fm-font-body:'Jost',-apple-system,BlinkMacSystemFont,sans-serif}
.fm-ig .fm-container{max-width:1200px;margin:0 auto;padding:0 20px}
/* --- Instagram --- */
.fm-ig {
	padding: 20px 0 40px;
	text-align: center;
}

.fm-ig-intro {
	margin: 0 0 6px;
	font-family: var(--fm-font-body);
	font-size: 0.85rem;
}

.fm-ig-handle,
.fm-ig-follow {
	margin: 0 0 24px;
	font-family: var(--fm-font-serif);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--fm-ink);
}

.fm-ig-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1px;
	max-width: 960px;
	margin: 0 auto;
}

.fm-ig-item {
	display: block;
}

.fm-ig-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.fm-ig-follow {
	margin-top: 34px;
	margin-bottom: 8px;
}

.fm-ig-link {
	font-family: var(--fm-font-body);
	font-size: 0.8rem;
	color: var(--fm-ink);
	text-decoration: none;
}

/* ==========================================================================
   Social feed: grid + lightbox
   ========================================================================== */
.fm-sf-grid {
	display: grid;
	grid-template-columns: repeat(var(--fm-sf-cols, 6), minmax(0, 1fr));
	gap: 1px;
	max-width: 960px;
	margin: 0 auto;
}

.fm-sf-item {
	position: relative;
	display: block;
	padding: 0;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: #2a2a2a;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.fm-sf-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.fm-sf-item:hover img {
	transform: scale(1.04);
}

.fm-sf-play,
.fm-sf-badge {
	position: absolute;
	display: flex;
	color: #fff;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.fm-sf-play {
	top: 8px;
	right: 8px;
}

.fm-sf-badge {
	bottom: 8px;
	left: 8px;
}

.fm-sf-over {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-family: var(--fm-font-body);
	font-size: 0.8rem;
	text-transform: capitalize;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.fm-sf-item:hover .fm-sf-over,
.fm-sf-item:focus-visible .fm-sf-over {
	opacity: 1;
}

body.fm-lb-lock {
	overflow: hidden;
}

.fm-lb {
	position: fixed;
	inset: 0;
	z-index: 100001; /* above the cart drawer and quick shop */
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
}

.fm-lb[hidden] {
	display: none;
}

.fm-lb-dialog {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	width: min(990px, 92vw);
	height: min(860px, 90vh);
	overflow: hidden;
	background: var(--fm-white);
	border-radius: 16px;
}

.fm-lb-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	background: #111;
}

.fm-lb-image,
.fm-lb-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fm-lb-frame {
	width: 100%;
	height: 100%;
	border: 0;
}

.fm-lb-mute {
	position: absolute;
	top: 14px;
	left: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: rgba(0, 0, 0, 0.55);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
}

.fm-lb-side {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	font-family: var(--fm-font-body);
	color: #262626;
}

.fm-lb-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px;
	border-bottom: 1px solid #efefef;
}

.fm-lb-avatar {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 50%;
	background: #222;
}

.fm-lb-name {
	font-size: 1rem;
	font-weight: 600;
}

.fm-lb-body {
	flex: 1;
	min-height: 0;
	padding: 26px 24px;
	overflow-y: auto;
}

.fm-lb-caption {
	margin: 0 0 18px;
	font-size: 0.95rem;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
}

.fm-lb-caption a {
	color: #262626;
	text-decoration: underline;
}

.fm-lb-link {
	font-size: 0.85rem;
	color: #0a66c2;
	text-decoration: none;
}

.fm-lb-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	padding: 12px 24px;
	border-top: 1px solid #efefef;
}

.fm-lb-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
}

.fm-lb-stat em {
	font-style: normal;
	color: #777;
	text-transform: capitalize;
}

.fm-lb-date {
	padding: 12px 24px;
	border-top: 1px solid #efefef;
	text-align: center;
	font-size: 0.78rem;
	color: #777;
}

.fm-lb-close,
.fm-lb-nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
}

.fm-lb-close {
	top: 22px;
	right: 28px;
}

.fm-lb-nav {
	top: 50%;
	transform: translateY(-50%);
}

.fm-lb-prev { left: 18px; }
.fm-lb-next { right: 18px; }

.fm-lb-close[hidden],
.fm-lb-nav[hidden] {
	display: none;
}

@media screen and (max-width: 782px) {
	.fm-sf-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fm-lb-dialog {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 46%) minmax(0, 1fr);
		width: calc(100vw - 20px);
		height: calc(100vh - 80px);
	}

	.fm-lb-head {
		padding: 10px 14px;
	}

	.fm-lb-body {
		padding: 16px 18px;
	}

	.fm-lb-nav {
		top: auto;
		bottom: 14px;
		transform: none;
	}

	.fm-lb-prev { left: 14px; }
	.fm-lb-next { right: 14px; }
}


/* Instagram plugin feed (Smash Balloon etc.) sits in the same section */
.fm-ig-feed {
	max-width: 960px;
	margin: 0 auto;
}
@media (max-width: 720px){.fm-ig-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fm-ig-handle,.fm-ig-follow{font-size:1.15rem;letter-spacing:.16em}}
