
.gallery-title {
	position: absolute;
	top: 50px;
	left: 50%;
	z-index: 1003;
	transform: translateX(-50%);
	color: #222;
	background: #f9e500;
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
	padding: 10px;
	width: auto;
	max-width: 80%;
	font-size: 14px;
}
.custom-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
}

.custom-gallery-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-gallery-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    width: auto;
    height: auto;
}

.custom-gallery-content.zoomed img {
	transform: scale(1.5);
	cursor: move;
}

.gallery-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1002;
	font-size: 13px;
	cursor: pointer;
	padding: 20px;
	user-select: none;
	background: #F7B90F;
	color: #292929;
	width: 40px;
	height: 40px;
	display: flex
	;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.gallery-nav:hover {
	color: #fff;
}

.gallery-prev {
	left: 20px;
}
.gallery-prev:after {
	font-family: Font Awesome\ 5 Pro;
	content: "\f104";
}

.gallery-next {
	right: 20px;
}

.gallery-next:after {
	font-family: Font Awesome\ 5 Pro;
	content: "\f105";
}

.gallery-close {
	position: fixed;
	top: 20px;
	right: 20px;
	color: #292929;
	font-size: 13px;
	cursor: pointer;
	z-index: 1002;
	padding: 10px;
	background: #F7B90F;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.gallery-close:after {
	font-family: Font Awesome\ 5 Pro;
    content: "\f00d";
}

.gallery-close:hover {
	color: #fff;
}

.gallery-counter {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	z-index: 1002;
	background: rgba(0, 0, 0, 0.5);
	padding: 5px 15px;
	border-radius: 15px;
	font-size: 14px;
}

.gallery-zoom-controls {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1002;
	display: flex;
	gap: 10px;
}

.gallery-zoom-btn {
	color: white;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	padding: 5px 15px;
	border-radius: 15px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.gallery-zoom-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

.gallery-loading {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	z-index: 1003;
	display: none;
}

/* Анимация загрузки */
.gallery-loading::after {
	content: '';
	display: block;
	width: 40px;
	height: 40px;
	border: 4px solid #fff;
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Мобильные стили */
@media (max-width: 768px) {
	.gallery-nav {
		padding: 15px;
		width: 30px;
		height: 30px;
	}
	
	.gallery-prev {
		left: 10px;
	}
	
	.gallery-next {
		right: 10px;
	}
	
	.gallery-close {
		top: 10px;
		right: 10px;
		width: 30px;
		height: 30px;
	}
}
