.pl-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.pl-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f2f2f2;
	text-decoration: none;
}

.pl-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.pl-gallery__item:hover img {
	transform: scale(1.04);
}

.pl-gallery__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 12px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}

/* Pagination */
.pl-gallery__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 35px;
}

.pl-gallery__pagination a {
	color: inherit;
	text-decoration: none;
}

.pl-gallery__pagination a:hover {
	text-decoration: underline;
}

/* Lightbox */
.pl-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 60px 70px;
	background: rgba(0, 0, 0, .92);
}

.pl-lightbox.is-open {
	display: flex;
}

body.pl-lightbox-open {
	overflow: hidden;
}

.pl-lightbox__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
	max-height: 100%;
}

.pl-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 140px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.pl-lightbox__caption {
	padding-top: 12px;
	color: #fff;
	text-align: center;
}

.pl-lightbox__close,
.pl-lightbox__prev,
.pl-lightbox__next {
	position: absolute;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font-size: 36px;
	line-height: 1;
}

.pl-lightbox__close {
	top: 18px;
	right: 25px;
	font-size: 42px;
}

.pl-lightbox__prev {
	left: 20px;
}

.pl-lightbox__next {
	right: 20px;
}

.pl-lightbox button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

/* Tablet */
@media (max-width: 767px) {
	.pl-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.pl-lightbox {
		padding: 55px 15px;
	}

	.pl-lightbox__prev {
		left: 5px;
	}

	.pl-lightbox__next {
		right: 5px;
	}

	.pl-lightbox__prev,
	.pl-lightbox__next {
		font-size: 26px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.pl-gallery__grid {
		grid-template-columns: 1fr;
	}
}

.c-pager[hidden] {
	display: none !important;
}

.c-pager button:disabled {
	opacity: .35;
	cursor: not-allowed;
}