/* 看大圖（static/js/lightbox.js）：相簿和 blog 文章本文共用。外觀照舊站的 lightbox：
   黑底 80%、圖加 4px 灰框、上一張下一張是滑過才出現的箭頭、圖下面是說明（data-title）和第幾張 */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: rgba(0,0,0,0.8);
}
.lightbox[hidden] {
	display: none;
}
.lightbox_frame {
	position: relative;
	max-width: 90vw;
}
.lightbox_image {
	display: block;
	max-width: 90vw;
	max-height: 80vh;
	margin: 0;
	border: 4px solid #444;
	border-radius: 3px;
	background: url('../images/loading.gif') center no-repeat;
}
.lightbox_previous,
.lightbox_next {
	position: absolute;
	top: 0;
	height: 100%;
	border: 0;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.6s;
}
.lightbox_previous {
	left: 0;
	width: 34%;
	background: url('../images/prev.png') left 48% no-repeat;
}
.lightbox_next {
	right: 0;
	width: 64%;
	background: url('../images/next.png') right 48% no-repeat;
}
.lightbox_previous:hover,
.lightbox_next:hover {
	opacity: 1;
}
.lightbox_previous[hidden],
.lightbox_next[hidden] {
	display: none;
}
.lightbox_footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: min(90vw, 600px);
	padding-top: 5px;
}
.lightbox_details {
	display: flex;
	flex-direction: column;
	text-align: left;
}
.lightbox_caption {
	font-size: 13px;
	font-weight: bold;
	line-height: 1.4;
	color: #ccc;
}
.lightbox_caption:empty {
	display: none;
}
.lightbox_counter {
	font-size: 12px;
	color: #999;
}
.lightbox_close {
	width: 30px;
	height: 30px;
	border: 0;
	background: url('../images/close.png') top right no-repeat;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
}
.lightbox_close:hover {
	opacity: 1;
}
