/**
 * Issue grid for [bhl_drive_pdfs]. Colours and fonts come from the Elementor
 * global kit, so the cards match the rest of the site (the הליכות שדה grid).
 */

.bhl-drive-gallery {
	direction: rtl;
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.bhl-drive-gallery__item {
	margin: 0;
	padding: 0;
}

.bhl-drive-gallery__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 16px;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 10px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.bhl-drive-gallery__card:hover,
.bhl-drive-gallery__card:focus-visible {
	border-color: var(--e-global-color-accent, #1f6b4a);
	box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .3);
	transform: translateY(-2px);
}

.bhl-drive-gallery__card:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #1f6b4a);
	outline-offset: 2px;
}

.bhl-drive-gallery__cover {
	display: block;
	width: 80%;
	margin: 0 auto 16px;
	aspect-ratio: 1 / 1.414;
	overflow: hidden;
	border: 1px solid #eee;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.bhl-drive-gallery__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.bhl-drive-gallery .bhl-drive-gallery__title {
	margin: 0 0 10px;
	font-family: var(--e-global-typography-primary-font-family, "Heebo"), sans-serif;
	font-weight: var(--e-global-typography-primary-font-weight, 600);
	font-size: 18px;
	line-height: 1.4;
	color: var(--e-global-color-secondary, #333);
}

.bhl-drive-gallery__action {
	margin-top: auto;
	font-family: var(--e-global-typography-accent-font-family, "Heebo"), sans-serif;
	font-weight: var(--e-global-typography-accent-font-weight, 500);
	font-size: 15px;
	color: var(--e-global-color-accent, #1f6b4a);
}

.bhl-drive-gallery__action::after {
	content: " ←";
}

@media (max-width: 1024px) {
	.bhl-drive-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.bhl-drive-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.bhl-drive-gallery__card {
		padding: 12px;
	}

	.bhl-drive-gallery .bhl-drive-gallery__title {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhl-drive-gallery__card {
		transition: none;
	}

	.bhl-drive-gallery__card:hover,
	.bhl-drive-gallery__card:focus-visible {
		transform: none;
	}
}
