.image-viewer-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	visibility: hidden;
}

.image-viewer-modal.visible {
	visibility: visible;
}

/* Добавляем overlay на весь экран */
.image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.8);
	cursor: pointer;
}

.image-viewer-container {
	position: relative;
	display: flex;
	border: 1px solid #e4e5e7;
	border-radius: 16px;
	overflow: hidden;
	z-index: 1001;
	/* Поверх overlay */

	/* Ограничиваем максимальную ширину */
	max-width: 90%;
	width: auto;
	max-height: 90vh;
}

.image-viewer-container img {
	max-width: 100%;
	max-height: 90vh;
	height: auto;
	object-fit: contain;
}

.image-viewer-container .close-button {
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
	z-index: 1002;
}