/* === Image Gallery Hover Widget === */
.igh-grid {
	display: grid;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.igh-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.igh-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.igh-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.igh-col-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.igh-col-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* === Item === */
.igh-item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 6px;
	aspect-ratio: 1 / 1;
	min-width: 0;
}

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

.igh-item:hover img {
	transform: scale(1.05);
}

/* === Overlay === */
.igh-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.igh-item:hover .igh-overlay {
	opacity: 1;
}

/* === Icon Wrap === */
.igh-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.igh-icon-bordered {
	border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.igh-item:hover .igh-icon-wrap {
	transform: scale(1);
}

.igh-icon-wrap i,
.igh-icon-wrap svg {
	color: #fff;
	fill: #fff;
}

/* === Responsive === */
@media (max-width: 992px) {
	.igh-col-5,
	.igh-col-6 {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 768px) {
	.igh-col-4,
	.igh-col-5,
	.igh-col-6 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 480px) {
	.igh-col-3,
	.igh-col-4,
	.igh-col-5,
	.igh-col-6 {
		grid-template-columns: repeat(2, 1fr);
	}
}
