/* ==========================================================================
   Gallery Cards
   ========================================================================== */

.kh-gallery-card {
	width: 100%;
	background: transparent !important;
}

/*
 * Generated gallery card
 */

.kh-gallery-card-button {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	display: block;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: inherit;
	font: inherit;
	line-height: inherit;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
}

.kh-gallery-card-button:hover,
.kh-gallery-card-button:focus,
.kh-gallery-card-button:active {
	background: transparent !important;
	border: 0 !important;
	outline: none;
}

/*
 * Cover
 */

.kh-gallery-card-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
}

.kh-gallery-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

/*
 * Overlay
 */

.kh-gallery-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.78) 0%,
		rgba(0, 0, 0, 0.20) 45%,
		rgba(0, 0, 0, 0) 100%
	);
	transition: background 0.35s ease;
}

/*
 * Gallery title
 */

.kh-gallery-card-title {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	transform: translateY(6px);
	transition: transform 0.35s ease;
}

/*
 * Hover / keyboard focus effects
 */

.kh-gallery-card-button:hover .kh-gallery-card-cover img,
.kh-gallery-card-button:focus-visible .kh-gallery-card-cover img {
	transform: scale(1.05);
}

.kh-gallery-card-button:hover .kh-gallery-card-overlay,
.kh-gallery-card-button:focus-visible .kh-gallery-card-overlay {
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.8) 0%,
		rgba(0, 0, 0, 0.25) 50%,
		rgba(0, 0, 0, 0.1) 100%
	);
}

.kh-gallery-card-button:hover .kh-gallery-card-title,
.kh-gallery-card-button:focus-visible .kh-gallery-card-title {
	transform: translateY(0);
}