/**
 * Interactive Videos gallery.
 *
 * All selectors are scoped to the Videos page wrapper.
 */

.icango-videos-page .videos-gallery__layout.wp-block-columns {
	display: grid;
	grid-template-columns: minmax(220px, 3fr) minmax(0, 7fr);
	gap: 32px;
	align-items: start;
}

.icango-videos-page .videos-gallery__navigation,
.icango-videos-page .videos-gallery__content {
	width: auto;
	min-width: 0;
}

.icango-videos-page .videos-gallery__category-list {
	display: grid;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.icango-videos-page .videos-gallery__category-list li {
	margin: 0;
	padding: 0;
}

.icango-videos-page .videos-gallery__category-list a,
.icango-videos-page .videos-gallery__category-list button {
	display: block;
	width: 100%;
	padding: 11px 13px;
	color: #334155;
	background: transparent;
	border: 0;
	border-radius: 9px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.icango-videos-page .videos-gallery__category-list a:hover,
.icango-videos-page .videos-gallery__category-list button:hover {
	color: #1d4ed8;
	background: #eaf2ff;
}

.icango-videos-page .videos-gallery__category-list a.is-active,
.icango-videos-page .videos-gallery__category-list button.is-active,
.icango-videos-page .videos-gallery__category-list li.is-active > a,
.icango-videos-page .videos-gallery__category-list li.is-active > button {
	color: #ffffff;
	background: #2563eb;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.icango-videos-page .videos-gallery__category-list a:focus-visible,
.icango-videos-page .videos-gallery__category-list button:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 2px;
}

.icango-videos-page .videos-gallery__grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	max-width: none;
	min-width: 0;
}

.icango-videos-page .videos-gallery__card {
	min-width: 0;
	height: 100%;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.icango-videos-page .videos-gallery__card[hidden] {
	display: none;
}

.icango-videos-page .videos-gallery__thumbnail {
	width: 100%;
	margin: 0 0 20px;
	aspect-ratio: 16 / 10;
	background: #e8eef6;
	border-radius: 10px;
	overflow: hidden;
}

.icango-videos-page .videos-gallery__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.icango-videos-page .videos-gallery__card h3 {
	margin: 0;
	color: #0f172a;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}

.icango-videos-page .videos-gallery__card p {
	margin: 10px 0 0;
	color: #64748b;
	font-size: 15px;
	line-height: 1.6;
}

.icango-videos-page .videos-gallery__play .wp-block-button__link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	color: #ffffff;
	background: #2563eb;
	border-radius: 10px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.icango-videos-page .videos-gallery__play .wp-block-button__link:visited {
	color: #ffffff;
}

.icango-videos-page .videos-gallery__play .wp-block-button__link:hover,
.icango-videos-page .videos-gallery__play .wp-block-button__link:focus-visible {
	color: #ffffff;
	background: #1d4ed8;
	transform: translateY(-1px);
}

.icango-videos-page .videos-gallery__play .wp-block-button__link:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 3px;
}

.icango-videos-page .videos-gallery__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 28px;
	color: #64748b;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

.icango-videos-page .videos-gallery__empty[hidden] {
	display: none;
}

@media (max-width: 1024px) {
	.icango-videos-page .videos-gallery__layout.wp-block-columns {
		grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr);
		gap: 24px;
	}

	.icango-videos-page .videos-gallery__grid > .wp-block-group__inner-container {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.icango-videos-page .videos-gallery__layout.wp-block-columns,
	.icango-videos-page .videos-gallery__grid > .wp-block-group__inner-container {
		grid-template-columns: minmax(0, 1fr);
	}

	.icango-videos-page .videos-gallery__layout.wp-block-columns {
		gap: 20px;
	}

	.icango-videos-page .videos-gallery__category-list {
		grid-template-columns: minmax(0, 1fr);
	}
}
