.photo-modal {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
}

.photo-modal-mask {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
}

.photo-modal-content {
	position: relative;
	background: #000;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
	max-width: 80vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
}

#photo-modal-img {
	max-width: 70vw;
	max-height: 70vh;
	display: block;
	margin: 0 auto;
}

.photo-modal-close {
	position: absolute;
	top: 10px;
	right: 20px;
	background: none;
	border: none;
	font-size: 2.2rem;
	color: #fff;
	cursor: pointer;
	z-index: 2;
}

.photo-modal-arrow {
	position: absolute;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.3);
	border: none;
	color: #fff;
	font-size: 2.0rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 2;
}

.photo-modal-arrow.left {
	left: 10px;
}

.photo-modal-arrow.right {
	right: 10px;
}

.photo-modal-arrow:hover {
	background: rgba(0, 0, 0, 0.6);
}

.photo-modal-thumbs-bar {
	width: 100%;
	background: #ccc;
	padding: 10px 0 6px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	position: static;
	margin-top: 8px;
}

.photo-modal-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	max-width: 80vw;
	padding: 0 16px;
}

.photo-modal-thumbs img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	transition: border 0.2s;
	background: #fff;
}

.photo-modal-thumbs img.active {
	border: 2px solid #ff6600;
}

.pagination-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 32px 0 32px 0;
	gap: 8px;
	font-size: 20px;
	user-select: none;
}

.pagination-bar button,
.pagination-bar span,
.pagination-bar a {
	background: none;
	border: none;
	color: #222;
	font-size: 20px;
	padding: 2px 10px;
	margin: 0 2px;
	cursor: pointer;
	border-radius: 4px;
	transition: color 0.2s, background 0.2s;
}

.pagination-bar button.active,
.pagination-bar .active {
	color: #458c68;
	font-weight: bold;
	background: none;
	cursor: default;
}

.pagination-bar button:disabled {
	color: #aaa;
	cursor: not-allowed;
}

.pagination-bar button:not(:disabled):hover {
	color: #fff;
	background: #458c68;
}

@media (max-width: 820px) {

	.pagination-bar button,
	.pagination-bar span,
	.pagination-bar a {
		font-size: 14px;
		padding: 2px 5px;
	}
}

@media (max-width: 570px) {
	.pagination-bar {
		gap: 5px;
	}

	.pagination-bar button,
	.pagination-bar span,
	.pagination-bar a {
		padding: 2px 2px;
	}
}

@media (max-width: 440px) {
	.pagination-bar {
		gap: 1px;
	}
}