html,
body {
	background-color: #000;
	margin: 0;
	padding: 0;
}

.gallery-container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	max-width: 100vw;
	margin: 0 auto;
	min-height: 100vh;
}

.gallery-info {
	align-self: flex-start;
	color: #e1e5e7;
	font-family: "Roboto Mono", monospace;
	font-weight: 300;
	font-style: normal;
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 20px 20px 20px 0;
	position: relative;
	width: 85%;
	margin: 0 auto;
}

.gallery-info-content {
	top: 20px;
	width: 100%;
}

.gallery-info h2 {
	margin: 0 0 8px 0;
	font-size: 21px;
	margin-bottom: 0;
}

.gallery-info p {
	margin: 0;
	font-size: 13px;
	opacity: .6;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	width: 85%;
	margin: 0 auto;
}

.gallery-item {
	width: 100%;
	position: relative;
	padding-top: 100%;
	overflow: hidden;
	box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
	cursor: pointer;
	transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
	box-shadow: 0 6px 12px rgb(0 0 0 / 0.2);
}

.gallery-item img {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: default;
}

.gallery-item img {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item img.visible {
	opacity: 1;
	transform: translateY(0);
}

.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	cursor: default;
	transition: opacity 0.3s ease;
}

.hidden {
	opacity: 0;
	pointer-events: none;
}

.lightbox:not(.hidden) {
	opacity: 1;
	pointer-events: auto;
}

.lightbox img {
	max-width: 90vw;
	max-height: 90vh;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
	user-select: none;
	cursor: default;
}

#lightbox-caption {
	color: #e1e5e7;
	font-family: "Roboto Mono", monospace;
	font-weight: 200;
	font-style: normal;
	position: absolute;
	bottom: 20px;
	right: 20px;
	max-width: 40%;
	background: rgba(0, 0, 0, 0.5);
	padding: 12px 16px;
	text-align: right;
	pointer-events: none;
}

#lightbox-caption h3 {
	margin: 0 0 6px 0;
	font-size: 14px;
	font-weight: normal;
}

#lightbox-caption p {
	margin: 0;
	font-size: 13px;
	line-height: 1.2;
	opacity: .6;
}

@media (max-width: 600px) {
	.gallery {
		grid-template-columns: 1fr;
		gap: 12px;
		width: 90vw;
		margin: 0 auto;
	}

	.gallery-container {
		width: 100vw;
		margin: 0 auto;
		box-sizing: border-box;
	}

	.gallery-container {
		flex-direction: column;
		padding: 0;
	}

	.gallery-info {
		position: relative !important;
		top: auto !important;
		max-width: 100% !important;
		width: 90vw;
		height: auto !important;
		padding-right: 0;
		box-sizing: border-box;
		margin: 0 auto 15px;
		margin-bottom: 0;
		background-color: #000;
	}

	.tags-container {
		display: none;
	}

	.gallery-info-content {
		position: static;
		top: auto;
	}
}