/* Insight Creatives Manager — front-end styles
   Brand colors match the Insight Creatives Elementor template.
   Change --icm-red below if the brand color ever changes. */

:root {
	--icm-red: #e2231a;
	--icm-black: #141414;
	--icm-grey: #6b7280;
}

/* ---------- Category slider (homepage rows) ---------- */

.icm-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.icm-slider-track {
	flex: 1;
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	min-width: 0;
}
.icm-slider-track::-webkit-scrollbar {
	display: none;
}

.icm-slide {
	scroll-snap-align: start;
	flex: 0 0 calc((100% - (var(--icm-visible, 4) - 1) * 18px) / var(--icm-visible, 4));
	height: 300px;
	border-radius: 6px;
	overflow: hidden;
	background: #e5e5e5;
}
.icm-slide a {
	display: block;
	width: 100%;
	height: 100%;
}
.icm-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.icm-slide:hover img {
	transform: scale(1.05);
}

.icm-slider-arrow {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid #e5e5e5;
	background: #fff;
	color: var(--icm-black);
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease;
}
.icm-slider-arrow:hover {
	background: var(--icm-red);
	border-color: var(--icm-red);
	color: #fff;
}
.icm-slider-arrow:disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

/* ---------- Full gallery grid (Creative page) ---------- */

.icm-gallery {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(var(--icm-cols, 4), 1fr);
}
.icm-cols-1 { --icm-cols: 1; }
.icm-cols-2 { --icm-cols: 2; }
.icm-cols-3 { --icm-cols: 3; }
.icm-cols-4 { --icm-cols: 4; }
.icm-cols-5 { --icm-cols: 5; }
.icm-cols-6 { --icm-cols: 6; }

.icm-item {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 4 / 3;
	background: #e5e5e5;
}
.icm-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.icm-item:hover img {
	transform: scale(1.06);
}

.icm-empty {
	color: var(--icm-grey);
	font-style: italic;
	grid-column: 1 / -1;
}

/* ---------- Filter bar (Creative page) ---------- */

.icm-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}
.icm-filter {
	border: 1px solid #ddd;
	background: #fff;
	color: var(--icm-black);
	padding: 8px 18px;
	border-radius: 30px;
	cursor: pointer;
	font-size: 13px;
	letter-spacing: .5px;
	text-transform: uppercase;
	transition: all .2s ease;
}
.icm-filter:hover {
	border-color: var(--icm-red);
	color: var(--icm-red);
}
.icm-filter.active {
	background: var(--icm-red);
	border-color: var(--icm-red);
	color: #fff;
}

/* ---------- Contact form ---------- */

.icm-contact-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.icm-contact-form .icm-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}
.icm-contact-form input[type=text],
.icm-contact-form input[type=email],
.icm-contact-form textarea {
	flex: 1;
	min-width: 200px;
	border: 1px solid #e5e5e5;
	background: #fff;
	padding: 14px 16px;
	border-radius: 2px;
	font-size: 14px;
	color: var(--icm-black);
	font-family: inherit;
}
.icm-contact-form textarea {
	width: 100%;
	resize: vertical;
}
.icm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
}
.icm-btn {
	align-self: flex-start;
	background: var(--icm-red);
	color: #fff;
	border: none;
	padding: 14px 28px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	border-radius: 2px;
	font-family: inherit;
}
.icm-btn:hover {
	background: #c31d15;
}
.icm-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 14px;
	font-size: 14px;
}
.icm-notice.icm-success {
	background: #e7f7ec;
	color: #1a7a3d;
}
.icm-notice.icm-error {
	background: #fdeaea;
	color: var(--icm-red);
}

/* ---------- Lightbox ---------- */

.icm-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 30px;
}
.icm-lightbox-overlay img {
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 4px;
}
.icm-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
	background: none;
	border: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.icm-cols-4, .icm-cols-5, .icm-cols-6 { --icm-cols: 3; }
	/* Sliders: never more than ~2.2 slides visible on tablet, regardless of the desktop setting */
	.icm-slide { flex-basis: 45%; height: 250px; }
}
@media (max-width: 767px) {
	.icm-cols-2, .icm-cols-3, .icm-cols-4, .icm-cols-5, .icm-cols-6 { --icm-cols: 2; }
	.icm-contact-form .icm-row { flex-direction: column; }
	/* Sliders: one big slide with a peek of the next, classic mobile-carousel feel */
	.icm-slide { flex-basis: 80%; height: 220px; }
	.icm-slider-arrow { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
	.icm-gallery { --icm-cols: 1 !important; }
}
