.icg-gallery-wrapper {
	--icg-brown: #3c3626;
	--icg-gold: #c9a227;
	--icg-gold-light: #fbf3dc;
	--icg-navy: #1e2a5e;

	max-width: 1200px;
	margin: 0 auto;
}

/* ---- Grille d'albums ---- */
.icg-albums-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}

.icg-album-card {
	cursor: pointer;
	text-align: center;
	transition: transform 0.15s ease;
}

.icg-album-card:hover {
	transform: translateY(-4px);
}

.icg-album-cover {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e6e0d0;
	box-shadow: 0 2px 8px rgba(60, 54, 38, 0.08);
}

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

.icg-album-card:hover .icg-album-cover img {
	transform: scale(1.05);
}

.icg-album-card h3 {
	margin: 12px 0 4px;
	color: var(--icg-navy);
	font-size: 1.05em;
}

.icg-album-count {
	font-size: 0.82em;
	color: var(--icg-brown);
	background: var(--icg-gold-light);
	padding: 2px 10px;
	border-radius: 20px;
	display: inline-block;
}

/* ---- Vue d'un album (grille de vignettes) ---- */
.icg-album-view {
	display: none;
}

.icg-album-view.active {
	display: block;
}

.icg-back-btn {
	background: var(--icg-brown);
	color: var(--icg-gold);
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	margin-bottom: 18px;
	transition: background 0.2s ease;
}

.icg-back-btn:hover {
	background: #4d4531;
}

#icg-album-view-title {
	color: var(--icg-navy);
	margin: 0 0 18px;
}

.icg-items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}

.icg-item-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 1px solid #e6e0d0;
	background: #111;
}

.icg-item-thumb img,
.icg-item-thumb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.icg-item-thumb:hover img,
.icg-item-thumb:hover video {
	transform: scale(1.06);
}

.icg-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 42px;
	height: 42px;
	line-height: 42px;
	text-align: center;
	background: rgba(60, 54, 38, 0.75);
	color: var(--icg-gold);
	border-radius: 50%;
	font-size: 16px;
	pointer-events: none;
}

/* ---- Lightbox plein écran ---- */
.icg-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 13, 8, 0.94);
	z-index: 100000;
	align-items: center;
	justify-content: center;
}

.icg-lightbox.active {
	display: flex;
}

.icg-lightbox-content {
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icg-lightbox-content img,
.icg-lightbox-content video {
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.icg-lightbox-close {
	position: absolute;
	top: 20px;
	right: 28px;
	background: none;
	border: none;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.icg-lightbox-close:hover {
	color: var(--icg-gold);
}

.icg-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(60, 54, 38, 0.55);
	color: #fff;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease;
}

.icg-lightbox-nav:hover {
	background: var(--icg-gold);
	color: var(--icg-brown);
}

.icg-lightbox-prev {
	left: 20px;
}

.icg-lightbox-next {
	right: 20px;
}

.icg-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 0.85em;
	background: rgba(60, 54, 38, 0.6);
	padding: 4px 14px;
	border-radius: 20px;
}

body.icg-no-scroll {
	overflow: hidden;
}

@media (max-width: 600px) {
	.icg-lightbox-nav {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
	.icg-lightbox-prev {
		left: 8px;
	}
	.icg-lightbox-next {
		right: 8px;
	}
}
