.avg-gallery {
	position: relative;
	width: 100%;
	min-height: 1px;
}

.avg-gallery .avg-card,
.avg-gallery .avg-card:hover,
.avg-gallery .avg-card:focus,
.avg-gallery .avg-card:active {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	break-inside: avoid;
	cursor: pointer;
	text-align: left;
	line-height: 0;
	outline: none;
	transform: translate3d(0, 0, 0);
}

.avg-gallery .avg-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--avg-ratio, 16 / 9);
	overflow: hidden;
	border-radius: 10px;
	background: #000000;
	line-height: 0;
}

.avg-gallery .avg-preview {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: transparent;
	vertical-align: top;
	transition: transform 180ms ease, filter 180ms ease;
}

.avg-card:hover .avg-preview,
.avg-card:focus-visible .avg-preview {
	transform: scale(1.04);
	filter: saturate(1.05);
}

.avg-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, rgba(8, 11, 20, 0.08), rgba(8, 11, 20, 0.24));
	transition: background 180ms ease;
}

.avg-card:hover .avg-overlay,
.avg-card:focus-visible .avg-overlay {
	background: linear-gradient(180deg, rgba(8, 11, 20, 0.02), rgba(8, 11, 20, 0.16));
}

.avg-play-icon {
	position: relative;
	display: inline-flex;
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 32px rgba(8, 11, 20, 0.24);
}

.avg-play-icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-left: 18px solid #111827;
	transform: translate(-35%, -50%);
}

.avg-title {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.4;
	color: #1f2937;
}

.avg-lightbox[hidden] {
	display: none;
}

.avg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.avg-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 9, 16, 0.82);
	backdrop-filter: blur(6px);
}

.avg-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: auto;
	max-width: min(92vw, 1500px);
	max-height: 92vh;
}

.avg-lightbox__media-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.avg-lightbox__video {
	display: block;
	width: auto;
	height: auto;
	max-width: 92vw;
	max-height: 82vh;
	border-radius: 14px;
	background: transparent;
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.34);
}

.avg-lightbox__close {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111827;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.avg-lightbox__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: #ffffff;
}

.avg-lightbox__title:empty,
.avg-lightbox__caption:empty {
	display: none;
}

body.avg-lightbox-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
}

@media (max-width: 767px) {
	.avg-lightbox {
		padding: 14px;
	}

	.avg-play-icon {
		width: 56px;
		height: 56px;
	}
}

@media (max-width: 480px) {
	.avg-lightbox__close {
		top: -8px;
		right: -4px;
	}
}
