/* Inspire Ad Gallery v2.4 - portrait cards, search/filter, pagination. Brand: blue #172F7A, pink #EC0870 */
.ich {
	--ich-blue: #172F7A;
	--ich-pink: #EC0870;
	--ich-pink-dark: #C9065F;
	--ich-ink: #1c2340;
	--ich-muted: #667085;
	--ich-line: #e6e9f2;
	--ich-cols: 4;
	--ich-ratio: 4 / 5;
	max-width: 1240px;
	margin: 0 auto;
}
.ich *, .ich *::before, .ich *::after { box-sizing: border-box; }

/* Search + filter bar */
.ich-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 28px; }
.ich .ich-search { position: relative; flex: 1 1 260px; margin: 0; display: block; }
.ich .ich-search svg {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	fill: none;
	stroke: var(--ich-muted);
	stroke-width: 2.2;
	stroke-linecap: round;
	pointer-events: none;
}
.ich .ich-search input.ich-q,
.ich select.ich-select {
	width: 100%;
	height: 46px;
	margin: 0;
	border: 1.5px solid var(--ich-line);
	border-radius: 12px;
	background-color: #fff;
	color: var(--ich-ink);
	font: inherit;
	font-size: 15px;
	box-shadow: none;
	outline: 0;
	transition: border-color .2s, box-shadow .2s;
}
.ich .ich-search input.ich-q { padding: 0 16px 0 44px; }
.ich .ich-search input.ich-q::placeholder { color: var(--ich-muted); opacity: 1; }
.ich select.ich-select {
	flex: 0 1 200px;
	width: auto;
	min-width: 160px;
	padding: 0 40px 0 16px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}
.ich .ich-search input.ich-q:focus,
.ich select.ich-select:focus { border-color: var(--ich-pink); box-shadow: 0 0 0 3px rgba(236, 8, 112, .12); }
.ich .ich-reset {
	appearance: none;
	padding: 10px 6px;
	border: 0;
	background: transparent;
	color: var(--ich-pink-dark);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}
.ich .ich-reset:hover { background: transparent; color: var(--ich-blue); text-decoration: underline; }
.ich .ich-reset[hidden] { display: none; }

/* Grid */
.ich-grid {
	display: grid;
	grid-template-columns: repeat(var(--ich-cols), minmax(0, 1fr));
	gap: 26px;
	transition: opacity .2s;
}
.ich-grid.is-loading { opacity: .45; pointer-events: none; }

/* Card */
.ich .ich-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ich-line);
	border-radius: 18px;
	overflow: hidden;
	transition: box-shadow .3s ease, transform .3s ease;
}
.ich .ich-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23, 47, 122, .13); }

/* Portrait thumbnail (shape set by --ich-ratio, default 4:5) */
.ich .ich-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--ich-ratio, 4 / 5);
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	background: linear-gradient(160deg, var(--ich-blue), var(--ich-pink));
	box-shadow: none;
	cursor: pointer;
	isolation: isolate;
}
.ich .ich-ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 44px;
	font-weight: 800;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, .35);
}
.ich .ich-thumb img,
.ich .ich-thumb video.ich-vthumb,
.ich .ich-thumb canvas.ich-snap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	pointer-events: none;
	transition: transform .5s ease;
}
.ich .ich-thumb video.ich-vthumb { background: transparent; }
.ich .ich-ph { transition: opacity .3s; }
.ich .ich-thumb.is-ready .ich-ph { opacity: 0; }
.ich .ich-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 20, 56, .4), rgba(10, 20, 56, 0) 45%);
	pointer-events: none;
}
.ich .ich-card:hover .ich-thumb img,
.ich .ich-card:hover .ich-thumb video.ich-vthumb,
.ich .ich-card:hover .ich-thumb canvas.ich-snap { transform: scale(1.05); }

.ich .ich-play {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	width: 58px;
	height: 58px;
	margin: -29px 0 0 -29px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
	display: grid;
	place-items: center;
	transition: transform .25s ease, background .25s ease;
}
.ich .ich-play svg { width: 24px; height: 24px; margin-left: 3px; fill: var(--ich-pink); transition: fill .25s; }
.ich .ich-thumb:hover .ich-play { transform: scale(1.1); background: var(--ich-pink); }
.ich .ich-thumb:hover .ich-play svg { fill: #fff; }
.ich .ich-thumb:focus-visible,
.ich .ich-pg:focus-visible,
.ich .ich-reset-btn:focus-visible { outline: 3px solid var(--ich-pink); outline-offset: 2px; }

/* Text */
.ich .ich-meta { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.ich .ich-title {
	margin: 0 0 10px;
	font-size: 1.05rem;
	line-height: 1.35;
	font-weight: 700;
	color: var(--ich-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ich .ich-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ich .ich-cat,
.ich .ich-type {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}
.ich .ich-cat { background: #fde8f1; color: var(--ich-pink-dark); }
.ich .ich-type { background: #eceffa; color: var(--ich-blue); }
.ich .ich-by {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: auto 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--ich-line);
	font-size: .9rem;
	color: var(--ich-muted);
}
.ich .ich-av {
	display: grid;
	place-items: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ich-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .5px;
}

/* Empty state */
.ich-none { text-align: center; padding: 56px 0 8px; color: var(--ich-muted); }
.ich-none[hidden], .ich-pager-wrap[hidden] { display: none; }
.ich-none p { margin: 0 0 16px; font-size: 1.05rem; }
.ich .ich-reset-btn {
	appearance: none;
	padding: 11px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ich-blue);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}
.ich .ich-reset-btn:hover { background: var(--ich-pink); color: #fff; }
.ich-empty { text-align: center; color: #667085; }

/* Pagination */
.ich-pager-wrap { margin-top: 40px; }
.ich .ich-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
.ich .ich-pg {
	appearance: none;
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--ich-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ich-blue);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.ich a.ich-pg { text-decoration: none; }
.ich .ich-pg:hover { border-color: var(--ich-blue); background: #fff; color: var(--ich-blue); }
.ich .ich-pg.is-current,
.ich .ich-pg.is-current:hover { background: var(--ich-blue); border-color: var(--ich-blue); color: #fff; cursor: default; }
.ich .ich-pg[disabled],
.ich .ich-pg.is-disabled { opacity: .4; cursor: not-allowed; border-color: var(--ich-line); color: var(--ich-muted); }
.ich .ich-pg-arrow { font-size: 22px; padding-bottom: 3px; }
.ich .ich-gap { min-width: 20px; text-align: center; color: var(--ich-muted); }

/* Lightbox player (portrait) */
.ich-lock { overflow: hidden; }
.ich-lb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 56px 16px 20px;
	background: rgba(10, 14, 30, .94);
}
.ich-lb.is-open { display: flex; }
.ich-lb-inner { width: fit-content; max-width: 100%; }
.ich-lb video {
	display: block;
	height: 72vh;
	height: 72dvh;
	width: auto;
	max-width: 100%;
	aspect-ratio: 9 / 16;
	margin: 0 auto;
	object-fit: contain;
	background: #000;
	border-radius: 14px;
	outline: 0;
}
.ich-lb-cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 14px; color: #fff; }
.ich-lb .ich-lb-title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; font-weight: 700; color: #fff; }
.ich-lb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ich-lb-tags span {
	padding: 3px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	font-size: 12.5px;
	color: #e5e9fb;
}
.ich-lb-tags span.is-cat { background: #EC0870; color: #fff; }
.ich-lb-nav { display: flex; gap: 8px; flex-shrink: 0; }
.ich-lb button.ich-lb-btn {
	appearance: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	box-shadow: none;
	cursor: pointer;
	transition: background .2s;
}
.ich-lb button.ich-lb-btn:hover { background: #EC0870; color: #fff; }
.ich-lb button.ich-lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ich-lb button.ich-lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ich-lb button.ich-lb-close { position: absolute; top: 8px; right: 12px; }

/* Responsive */
@media (max-width: 1100px) {
	.ich-grid { grid-template-columns: repeat(min(var(--ich-cols), 3), minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 760px) {
	.ich-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.ich-bar { gap: 10px; margin-bottom: 20px; }
	.ich .ich-search { flex-basis: 100%; }
	.ich select.ich-select { flex: 1 1 calc(50% - 5px); min-width: 0; }
	.ich .ich-card { border-radius: 14px; }
	.ich .ich-meta { padding: 12px 12px 14px; }
	.ich .ich-title { font-size: .95rem; margin-bottom: 8px; }
	.ich .ich-cat, .ich .ich-type { font-size: 11.5px; padding: 2px 8px; }
	.ich .ich-by { font-size: .82rem; gap: 7px; }
	.ich .ich-av { flex-basis: 24px; width: 24px; height: 24px; font-size: 10px; }
	.ich .ich-play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
	.ich .ich-play svg { width: 20px; height: 20px; }
	.ich-pager-wrap { margin-top: 28px; }
	.ich .ich-pg { min-width: 40px; height: 40px; padding: 0 8px; }
	.ich-pager { gap: 6px; }
}
@media (max-width: 340px) {
	.ich-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ich *, .ich-lb * { transition: none !important; }
	.ich .ich-card:hover { transform: none; }
}
