.aura-gallery {
	margin: 24px 0;
}

.aura-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.aura-gallery__link {
	display: block;
	overflow: hidden;
	border-radius: 6px;
	background: #f2f2f2;
}

.aura-gallery__image {
	width: 100%;
	height: 100%;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.aura-gallery__link:hover .aura-gallery__image,
.aura-gallery__link:focus .aura-gallery__image {
	transform: scale(1.03);
}

body.aura-gallery--lightbox-open {
	overflow: hidden;
}

.aura-gallery-lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.aura-gallery-lightbox.is-open {
	display: flex;
}

.aura-gallery-lightbox__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
}

.aura-gallery-lightbox__content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	background: #111;
	color: #fff;
	padding: 24px;
	border-radius: 8px;
	z-index: 1;
}

.aura-gallery-lightbox__figure {
	margin: 0;
}

.aura-gallery-lightbox__image {
	max-width: 80vw;
	max-height: 70vh;
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto;
}

.aura-gallery-lightbox__caption {
	display: flex;
	gap: 12px;
	justify-content: center;
	font-size: 14px;
	color: #d9d9d9;
	margin-top: 12px;
}

.aura-gallery-lightbox__close,
.aura-gallery-lightbox__nav {
	position: absolute;
	top: 12px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	padding: 8px;
}

.aura-gallery-lightbox__close {
	right: 12px;
}

.aura-gallery-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	font-size: 32px;
}

.aura-gallery-lightbox__nav--prev {
	left: 8px;
}

.aura-gallery-lightbox__nav--next {
	right: 8px;
}

@media (max-width: 640px) {
	.aura-gallery-lightbox__content {
		padding: 48px 16px 16px;
		max-width: 94vw;
	}

	.aura-gallery-lightbox__image {
		max-width: 90vw;
		max-height: 60vh;
	}

	.aura-gallery-lightbox__nav {
		top: auto;
		bottom: 12px;
		transform: none;
		font-size: 28px;
		background: rgba(0, 0, 0, 0.4);
		border-radius: 999px;
		width: 40px;
		height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.aura-gallery-lightbox__nav--prev {
		left: 16px;
	}

	.aura-gallery-lightbox__nav--next {
		right: 16px;
	}

	.aura-gallery-lightbox__close {
		top: 8px;
		right: 8px;
		background: rgba(0, 0, 0, 0.4);
		border-radius: 999px;
		width: 40px;
		height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}
