.epu-album {
	margin: 2em 0;
}

.epu-album-title {
	margin-bottom: 0.75em;
}

.epu-album-empty {
	color: #666;
	font-style: italic;
}

.epu-album-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
	gap: 1.25em;
}

.epu-album-item {
	margin: 0;
	text-align: center;
}

.epu-album-item a {
	display: block;
}

.epu-album-item img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.epu-album-name {
	margin-top: 0.4em;
	font-size: 0.9em;
	color: #333;
}

.epu-album-delete-form {
	margin: 0.35em 0 0;
}

.epu-album-delete-button {
	background: none;
	border: 1px solid #c9302c;
	color: #c9302c;
	border-radius: 4px;
	padding: 0.15em 0.6em;
	font-size: 0.8em;
	cursor: pointer;
}

.epu-album-delete-button:hover {
	background: #c9302c;
	color: #fff;
}

@media ( prefers-color-scheme: dark ) {
	.epu-album-name {
		color: inherit;
	}
}

.epu-lightbox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #000;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2em;
	box-sizing: border-box;
}

.epu-lightbox[hidden] {
	display: none;
}

.epu-lightbox-image {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
}

.epu-lightbox-caption {
	color: #fff;
	margin: 1em 0 0;
	text-align: center;
	font-size: 1em;
}

.epu-lightbox-close {
	position: fixed;
	top: 0.5em;
	right: 0.75em;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.5em;
	line-height: 1;
	cursor: pointer;
	padding: 0.2em 0.4em;
}

.epu-lightbox-close:hover,
.epu-lightbox-close:focus {
	color: #ccc;
}

.epu-lightbox-info {
	position: fixed;
	top: 0.5em;
	right: 3.25em;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.8em;
	line-height: 1;
	cursor: pointer;
	padding: 0.25em 0.4em;
}

.epu-lightbox-info:hover,
.epu-lightbox-info:focus {
	color: #ccc;
}

.epu-lightbox-exif {
	position: fixed;
	bottom: 1.5em;
	left: 50%;
	transform: translateX( -50% );
	background: #000;
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 8px;
	padding: 1em 1.5em;
	max-width: 90vw;
	max-height: 35vh;
	overflow-y: auto;
	box-sizing: border-box;
}

.epu-lightbox-exif[hidden] {
	display: none;
}

.epu-lightbox-exif dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto auto;
	gap: 0.3em 1.5em;
}

.epu-lightbox-exif dt {
	color: #aaa;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.epu-lightbox-exif dd {
	margin: 0;
	color: #fff;
	font-size: 0.9em;
	white-space: nowrap;
}

.epu-lightbox-exif-empty {
	color: #ccc;
	margin: 0;
	font-size: 0.9em;
}

.epu-lightbox-prev,
.epu-lightbox-next {
	position: fixed;
	top: 50%;
	transform: translateY( -50% );
	background: none;
	border: none;
	color: #fff;
	font-size: 3em;
	line-height: 1;
	cursor: pointer;
	padding: 0.2em 0.4em;
}

.epu-lightbox-prev {
	left: 0.25em;
}

.epu-lightbox-next {
	right: 0.25em;
}

.epu-lightbox-prev:hover,
.epu-lightbox-prev:focus,
.epu-lightbox-next:hover,
.epu-lightbox-next:focus {
	color: #ccc;
}

body.epu-lightbox-open {
	overflow: hidden;
}
