.ab-gallery-wrap {
	--ab-red: #d10d14;
	--ab-black: #111319;
	font-family: 'Inter', Arial, sans-serif;
	color: var(--ab-black);
	padding: 70px 0
}

.ab-gallery-wrap * {
	box-sizing: border-box
}

.ab-gallery-wrap a,
.ab-gallery-wrap a:hover,
.ab-gallery-wrap a:focus,
.ab-gallery-wrap a:visited {
	text-decoration: none !important;
	box-shadow: none !important
}

/* Background style variants */
.ab-gallery-wrap.ab-bg-white {
	background: #fff
}

.ab-gallery-wrap.ab-bg-grey {
	background: #f5f6f8
}

.ab-gallery-wrap.ab-bg-gradient {
	background: linear-gradient(135deg, var(--ab-red) 0%, var(--ab-black) 65%)
}

.ab-gallery-wrap.ab-bg-dark {
	background: var(--ab-black)
}

.ab-gallery-wrap.ab-bg-gradient .ab-gallery-eyebrow,
.ab-gallery-wrap.ab-bg-dark .ab-gallery-eyebrow {
	color: #ff9d9d !important
}

.ab-gallery-wrap.ab-bg-gradient .ab-gallery-title,
.ab-gallery-wrap.ab-bg-dark .ab-gallery-title {
	color: #fff !important
}

.ab-gallery-wrap.ab-bg-gradient .ab-gallery-btn,
.ab-gallery-wrap.ab-bg-dark .ab-gallery-btn {
	background: #ffffff1a;
	border-color: #ffffff4d;
	color: #fff !important
}

.ab-gallery-wrap.ab-bg-gradient .ab-gallery-btn:hover,
.ab-gallery-wrap.ab-bg-dark .ab-gallery-btn:hover {
	background: var(--ab-red);
	color: #fff !important
}

.ab-gallery-wrap .ab-container {
	width: min(1440px, calc(100% - 76px));
	margin: auto
}

.ab-gallery-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin: 0 0 30px
}

.ab-gallery-eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--ab-red) !important
}

.ab-gallery-title {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
	color: #111 !important
}

.ab-gallery-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	padding: 12px 20px;
	border-radius: 50px;
	border: 1.5px solid var(--ab-red);
	background: #fff;
	color: var(--ab-red) !important;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease, transform .2s ease
}

.ab-gallery-btn i {
	font-size: 12px;
	transition: transform .2s ease
}

.ab-gallery-btn:hover {
	background: var(--ab-red);
	color: #fff !important;
	transform: translateY(-2px)
}

.ab-gallery-btn:hover i {
	transform: translateX(3px)
}

.ab-gallery-grid {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, 1fr);
	grid-auto-rows: 160px;
	gap: 14px
}

.ab-gallery-item {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: #eee
}

.ab-gallery-item:first-child {
	grid-row: span 2
}

.ab-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease
}

.ab-gallery-item:hover img {
	transform: scale(1.08)
}

.ab-gallery-placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #fff1f1, #ffe1e1);
	color: var(--ab-red) !important;
	font-size: 34px
}

.ab-gallery-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, #000000d9 0%, #00000066 45%, transparent 75%);
	pointer-events: none
}

.ab-gallery-caption {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	gap: 10px
}

.ab-gallery-mi {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--ab-red);
	display: grid;
	place-items: center;
	color: #fff !important;
	font-size: 13px
}

.ab-gallery-caption-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0
}

.ab-gallery-caption-text b {
	font-size: 13px;
	font-weight: 700;
	color: #fff !important;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.ab-gallery-caption-text small {
	font-size: 11px;
	font-weight: 400;
	color: #e6e6e6 !important;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

@media(max-width:1200px) {
	.ab-gallery-wrap .ab-container {
		width: calc(100% - 36px)
	}

	.ab-gallery-title {
		font-size: 25px
	}

	.ab-gallery-grid {
		grid-auto-rows: 135px
	}
}

@media(max-width:900px) {
	.ab-gallery-wrap {
		padding: 44px 0
	}

	.ab-gallery-head {
		align-items: flex-start
	}

	.ab-gallery-title {
		font-size: 21px
	}

	.ab-gallery-btn {
		padding: 10px 16px;
		font-size: 13px
	}

	.ab-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 130px
	}

	.ab-gallery-item:first-child {
		grid-column: 1 / -1;
		grid-row: span 1
	}

	.ab-gallery-mi {
		flex: 0 0 26px;
		width: 26px;
		height: 26px;
		font-size: 11px
	}

	.ab-gallery-caption-text b {
		font-size: 12px
	}

	.ab-gallery-caption-text small {
		font-size: 10px
	}
}

@media(max-width:560px) {
	.ab-gallery-grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 120px;
		gap: 10px
	}
}
