.icon {
	width: 80%;
	height: 80%;
	display: block;
	filter: invert(1);
}

.rotate {
	transform: rotate(180deg);
}

#prev,
#next {
	z-index: 11000;
	font-size: 40px;
	width: 60px;
	height: 60px;
	cursor: pointer;
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
}

#prev {
	left: 2vw;
}

#next {
	right: 2vw;
}

#lightbox {
	display: none;
	position: fixed;
	z-index: 99999999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
	flex-direction: row;
	padding: 0;
	overflow: hidden;
    isolation: isolate;
}

.close {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 3rem;
	color: white;
	cursor: pointer;
	z-index: 11000;
}

#lightbox-img {
	max-width: calc(96vw - 180px); /* make sure there's enoug place for buttons */
    width: 86vw;
    object-fit: contain;
	max-height: 80vh;
	margin: 0 auto;
}

.gallery {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 20px;
}

.thumbnail {
	cursor: pointer;
	width: clamp(250px, 10vw, 300px);
	border-radius: 8px;
	aspect-ratio: 10 / 7;
}

.text-center {
	text-align: center;
}

@media (max-width: 760px) {

	#prev,
	#next {
		bottom: 16vh;
		width: 8vh;
		font-size: 8vh;
		height: 8vh;
	}

	#prev {
		left: 10vw;
	}

	#next {
		right: 10vw;
	}

	.album-title {
		margin-top: 2rem;
	}

    #lightbox-img {
        max-width: 86vw;
    }
}