.gmg-igf-feed {
	--gmg-igf-columns: 4;
	--gmg-igf-gap: 4px;
	max-width: 100%;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gmg-igf-feed * {
	box-sizing: border-box;
}

.gmg-igf-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.gmg-igf-logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
	flex-shrink: 0;
}

.gmg-igf-header-text {
	min-width: 0;
}

.gmg-igf-title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: #14213d;
}

.gmg-igf-bio {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #333;
}

.gmg-igf-grid {
	display: grid;
	grid-template-columns: repeat(var(--gmg-igf-columns), 1fr);
	gap: var(--gmg-igf-gap);
}

@media (max-width: 780px) {
	.gmg-igf-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.gmg-igf-item {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #eee;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.gmg-igf-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.gmg-igf-item:hover img,
.gmg-igf-item:focus-visible img {
	transform: scale(1.04);
}

.gmg-igf-badge {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gmg-igf-badge-carousel {
	top: 8px;
	right: 8px;
}

.gmg-igf-badge-video {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 50%;
}

.gmg-igf-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 22px;
}

.gmg-igf-load-more,
.gmg-igf-follow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	border: 0;
	cursor: pointer;
	line-height: 1;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.gmg-igf-load-more {
	background: #1c1c1c;
	color: #fff;
}

.gmg-igf-load-more:hover,
.gmg-igf-load-more:focus-visible {
	background: #000;
}

.gmg-igf-load-more[disabled] {
	opacity: 0.6;
	cursor: default;
}

.gmg-igf-follow {
	background: #4a72c9;
	color: #fff;
	text-transform: none;
	letter-spacing: normal;
}

.gmg-igf-follow:hover,
.gmg-igf-follow:focus-visible {
	background: #3c60ac;
	color: #fff;
}

.gmg-igf-admin-notice {
	padding: 10px 14px;
	background: #fff8e5;
	border: 1px solid #f0c36d;
	border-radius: 4px;
	font-size: 14px;
	color: #5c4400;
}

/* Lightbox */
.gmg-igf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.gmg-igf-lightbox[hidden] {
	display: none;
}

.gmg-igf-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
}

.gmg-igf-lightbox-content {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 6px;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	padding: 16px;
}

.gmg-igf-lightbox-media {
	display: flex;
	justify-content: center;
	background: #000;
}

.gmg-igf-lightbox-media img,
.gmg-igf-lightbox-media video {
	max-width: 100%;
	max-height: 70vh;
	display: block;
}

.gmg-igf-lightbox-caption {
	margin: 14px 0 8px;
	font-size: 14px;
	color: #333;
	white-space: pre-wrap;
}

.gmg-igf-lightbox-link {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #4a72c9;
	text-decoration: none;
}

.gmg-igf-lightbox-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}
