/* Base styles */
.content-section {
	padding-block: 80px;
}

.content-section.gallery {
	padding-top: 0;
}

.content-shell {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

.atl-reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.atl-reveal.revealed {
	opacity: 1;
	transform: translateY(0);
}

/* Gallery styles */
.gallery__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin-top: 40px;
}

@media (max-width: 1024px) {
	.gallery__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 768px) {
	.gallery__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
	}
}

@media (max-width: 480px) {
	.gallery__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 4px;
	}
}

.gallery__item {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: stretch;
}

.gallery__item-content {
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.gallery__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery__item:hover .gallery__image {
	transform: scale(1.05);
}

/* Lightbox styles */
.gallery__lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery__lightbox.active {
	opacity: 1;
	visibility: visible;
}

.gallery__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background 0.2s ease;
	z-index: 1001;
}

.gallery__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.gallery__close svg {
	width: 24px;
	height: 24px;
}

.gallery__prev,
.gallery__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
	z-index: 1001;
}

.gallery__prev {
	left: 20px;
}

.gallery__next {
	right: 20px;
}

.gallery__prev:hover,
.gallery__next:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-50%) scale(1.1);
}

.gallery__prev svg,
.gallery__next svg {
	width: 32px;
	height: 32px;
}

@media (max-width: 768px) {
	.gallery__prev,
	.gallery__next {
		width: 48px;
		height: 48px;
	}

	.gallery__prev {
		left: 10px;
	}

	.gallery__next {
		right: 10px;
	}

	.gallery__prev svg,
	.gallery__next svg {
		width: 24px;
		height: 24px;
	}

	.content-shell {
		padding-inline: 20px;
	}
}

.gallery__lightbox-content {
	max-width: 90vw;
	max-height: 90vh;
}

.gallery__lightbox-image {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
}
