/* ===== СТИЛИ ФОТОГАЛЕРЕИ КАК У "ДО/ПОСЛЕ" ===== */

/* Табы - идентичные стили */
.photo-gallery-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 30px 0px 30px 0px;
}

.photo-gallery-tab.active {
	background-color: #93C7C1;
}

.photo-gallery-tab {
	border: 1px solid rgb(223, 207, 183);;
	font-weight: 500;
	font-size: 16px;
	line-height: 131%;
	color: #325D73;
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
}

.photo-gallery-tab:hover {
	background-color: rgb(223, 207, 183);;
	border-color: rgb(223, 207, 183);;
}

.photo-gallery-tab.active {
	background-color: rgb(223, 207, 183);
	color: gb(50, 93, 115)!important;
}

.photo-gallery-tab a {
	text-decoration: none;
	color: inherit;
}

.photo-gallery-tab a {
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
	/* padding: 8px 16px; */
	box-sizing: border-box;
}

/* Навигация - идентичные стрелки */
.photo-gallery-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 25px;
}

.photo-swiper-button-prev,
.photo-swiper-button-next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	min-width: 40px;
	min-height: 40px;
	flex-shrink: 0;
	position: relative;
	z-index: 10;
	top: -6px;
	margin-top: 30px;
	background: #93C7C1;
	border-radius: 50%;
	border: 1px solid #93C7C1;
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* Увеличиваем SVG стрелки */
.photo-swiper-button-prev svg,
.photo-swiper-button-next svg {
	width: 28px;
	height: 28px;
}

/* Область клика */
.photo-swiper-button-prev::after,
.photo-swiper-button-next::after {
	content: '';
	position: absolute;
	top: -5px;
	left: -5px;
	right: -5px;
	bottom: -5px;
	border-radius: 50%;
}

.photo-swiper-button-prev:hover,
.photo-swiper-button-next:hover {
	background-color: #fff;
	color: #203B49;
	/* transform: scale(1.1); */
	border: 1px solid #93C7C1;
}

/* Пагинация - идентичные буллеты */
.photo-swiper-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.photo-swiper-pagination .swiper-pagination-bullet {
	width: 40px;
	height: 40px;
	background: #93C7C1;
	border-radius: 50%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	opacity: 1 !important;
	font-size: 14px;
	flex-shrink: 0;
	position: relative;
	z-index: 5;
}

.photo-swiper-pagination .swiper-pagination-bullet:hover,
.photo-swiper-pagination .swiper-pagination-bullet-active {
	color: #203B49 !important;
	border: 1px solid #93C7C1 !important;
	background: #ffffff;
	color: #203B49;
}

/* Контейнер пагинации */
.photo-pagination-container {
	flex: 1;
	display: flex;
	/* justify-content: center; */
	max-width: 500px;
	padding-top: 32px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
	.photo-gallery-tabs {
		margin: 20px 0px 20px 0px;
	}
	
	.photo-gallery-tab {
		padding: 8px 12px;
		font-size: 14px;
		line-height: 131%;
	}
	
	.photo-gallery-tab a {
		padding: 8px 12px;
		font-size: 14px;
	}
	
	.photo-swiper-button-prev,
	.photo-swiper-button-next {
		width: 40px;
		height: 40px;
		margin-top: 20px;
	}
	
	.photo-swiper-button-prev svg,
	.photo-swiper-button-next svg {
		width: 20px;
		height: 20px;
	}
	
	.photo-swiper-pagination .swiper-pagination-bullet {
		width: 35px;
		height: 35px;
		font-size: 13px;
	}
	
	/* Мобильная пагинация (как в "До/После") */
	@media (max-width: 576px) {
		.photo-swiper-pagination .swiper-pagination-bullet {
			width: 10px;
			height: 10px;
			background: #DCD0BA;
			font-size: 0px;
		}
		
		.photo-swiper-pagination .swiper-pagination-bullet:hover,
		.photo-swiper-pagination .swiper-pagination-bullet-active {
			/* transform: scale(1.1); */
			background: #9EC5C0;
			border: 1px solid #93C7C1 !important;
		}
	}
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1023px) {
	.photo-gallery-tabs {
		gap: 8px;
	}
	
	.photo-gallery-tab {
		font-size: 15px;
	}
}

/* Десктоп улучшения */
@media (min-width: 1024px) {
	.photo-gallery-tabs {
		justify-content: left;
	}
	
	.photo-gallery-tab {
		transition: all 0.3s ease;
	}
	
	.photo-gallery-tab:hover:not(.active) {
		/* transform: translateY(-2px); */
		box-shadow: 0 2px 8px rgba(147, 199, 193, 0.3);
	}
}

/* Состояния disabled для стрелок */
.photo-swiper-button-prev.swiper-button-disabled,
.photo-swiper-button-next.swiper-button-disabled {
	opacity: 0.3 !important;
	pointer-events: none !important;
}

/* Z-index исправления как в "До/После" */
.photo-gallery-navigation {
	position: relative;
	z-index: 1;
}

.photo-pagination-container {
	position: relative;
	z-index: 5;
}

.photo-swiper-pagination {
	position: relative;
	z-index: 5;
}
/* Общие контейнеры как в "До/После" */
.simple-photo-gallery {
	padding: 00px 0;
}

.photo-gallery-container {
	position: relative;
}

/* Анимации переключения табов */
.photo-gallery-content {
	animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Ховер эффекты для фото */
.photo-gallery-item {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery-item:hover {
	/* transform: translateY(-5px); */
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ===== РАЗМЕРЫ И ОТСТУПЫ ФОТОГАЛЛЕРЕИ ===== */

/* Контейнер Swiper */
.photo-gallery-swiper {
	width: 100%;
	padding: 10px 0;
}

/* Слайды - 1/4 ширины экрана */
.photo-gallery-swiper .swiper-slide {
	width: calc(25% - 16.5px) !important; /* 4 колонки с отступами */
	height: 500px; /* Фиксированная высота */
	margin-right: 22px; /* Отступ между фото */
}

/* Обертка Swiper */
.photo-gallery-swiper .swiper-wrapper {
	margin-left: -11px; /* Компенсируем отступы для выравнивания */
	margin-right: -11px;
}

/* Элемент фотографии */
.photo-gallery-item {
	width: 100%;
	height: 100%;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
}

/* Изображение */
.photo-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Ховер эффекты */
.photo-gallery-item:hover {
	/* transform: translateY(-5px); */
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Настройки Swiper для правильного отображения */
.photo-gallery-swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.photo-gallery-swiper .swiper-slide {
	display: flex;
	flex-direction: column;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
	.photo-gallery-swiper .swiper-slide {
		width: calc(33.333% - 14.67px) !important; /* 3 колонки */
		height: 450px;
		margin-right: 22px;
	}
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
	.photo-gallery-swiper .swiper-slide {
		width: calc(50% - 11px) !important; /* 2 колонки */
		height: 400px;
		margin-right: 22px;
	}
	
	.photo-gallery-swiper .swiper-wrapper {
		margin-left: -5px;
		margin-right: -5px;
	}
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
	.photo-gallery-swiper .swiper-slide {
		width: calc(50% - 8px) !important;
		height: 350px;
		margin-right: 16px;
	}
}

/* ===== ЛАЙТБОКС ДЛЯ ФОТОГАЛЛЕРЕИ ===== */

.photo-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.95);
	z-index: 10000;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.photo-lightbox.active {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
}

.photo-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.photo-lightbox-container {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.photo-lightbox.active .photo-lightbox-container {
	transform: scale(1);
}

/* Кнопка закрытия */
.photo-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	background: rgba(0, 0, 0, 0.7);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.photo-lightbox-close:hover {
	background: rgba(0, 0, 0, 0.9);
	/* transform: scale(1.1); */
}

/* Кнопки навигации */
.photo-lightbox-prev,
.photo-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	background: rgba(0, 0, 0, 0.7);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.photo-lightbox-prev {
	left: 20px;
}

.photo-lightbox-next {
	right: 20px;
}

.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
	background: rgba(0, 0, 0, 0.9);
	/* transform: translateY(-50%) scale(1.1); */
}

/* Контент лайтбокса */
.photo-lightbox-content {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.photo-lightbox-image {
	width: 100%;
	height: calc(100% - 100px);
	object-fit: contain;
	background: #f8f9fa;
}

.photo-lightbox-info {
	padding: 20px;
	background: white;
	border-top: 1px solid #e9ecef;
}

.photo-lightbox-title {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 8px;
}

.photo-lightbox-description {
	font-size: 14px;
	color: #6c757d;
	line-height: 1.5;
}

/* Пагинация */
.photo-lightbox-pagination {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	z-index: 10;
}

/* Анимации */
@keyframes lightboxFadeIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.photo-lightbox-container {
	animation: lightboxFadeIn 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
	.photo-lightbox-container {
		max-width: 95vw;
		max-height: 95vh;
		border-radius: 8px;
	}
	
	.photo-lightbox-prev,
	.photo-lightbox-next {
		width: 50px;
		height: 50px;
	}
	
	.photo-lightbox-close {
		width: 40px;
		height: 40px;
	}
	
	.photo-lightbox-info {
		padding: 15px;
	}
	
	.photo-lightbox-title {
		font-size: 16px;
	}
	
	.photo-lightbox-description {
		font-size: 13px;
	}
}

/* Курсор указатель для кликабельных элементов */
.photo-gallery-item {
	cursor: pointer;
}

.photo-gallery-item:hover .photo-gallery-thumb {
	/* transform: scale(1.05); */
}

.photo-gallery-thumb {
	transition: transform 0.3s ease;
}

/* ===== ПРОСТОЕ РЕШЕНИЕ - СКРЫТЬ ВЫХОДЯЩЕЕ ЗА КРАЯ ===== */

.photo-gallery-container {
	width: 100%;
	overflow: hidden !important; /* ← ГЛАВНОЕ ИСПРАВЛЕНИЕ */
	position: relative;
}

/* Дополнительные гарантии */
.simple-photo-gallery {
	width: 100%;
	overflow: hidden;
}

/* Убедимся что Swiper не выходит за границы */
.photo-gallery-swiper {
	width: 100%;
	overflow: hidden;
}

.photo-gallery-swiper .swiper-wrapper {
	width: 100%;
}

.photo-gallery-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0px 5px 0px;
}

.photo-gallery-tab {
	/* position: absolute; */

	height: 100%;
	padding: 8px 16px;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	
	
	.photo-gallery-tab {

		padding: 0;

	}
	
	.photo-gallery-tabs {
		margin: 10px 0px 5px 0px;
	}
}

/* ===== СТРЕЛКИ КАК В "ДО/ПОСЛЕ" ===== */

/* Общие стили для стрелок */
.photo-swiper-button-prev,
.photo-swiper-button-next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	min-width: 40px;
	min-height: 40px;
	flex-shrink: 0;
	position: relative;
	z-index: 10;
	top: -6px;
	margin-top: 30px;
	background: #93C7C1;
	border-radius: 50%;
	border: 1px solid #93C7C1;
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* SVG стрелки */
.photo-swiper-button-prev svg,
.photo-swiper-button-next svg {
	width: 20px;   /* Как в примере */
	height: 20px;  /* Как в примере */
}

/* Область клика */
.photo-swiper-button-prev::after,
.photo-swiper-button-next::after {
	content: '';
	position: absolute;
	top: -5px;
	left: -5px;
	right: -5px;
	bottom: -5px;
	border-radius: 50%;
}

/* Ховер эффекты */
.photo-swiper-button-prev:hover,
.photo-swiper-button-next:hover {
	background-color: #fff;
	color: #203B49;
	transform: scale(1.1);
	border: 1px solid #93C7C1;
}

/* Состояние disabled */
.photo-swiper-button-prev.swiper-button-disabled,
.photo-swiper-button-next.swiper-button-disabled {
	opacity: 0.3 !important;
	pointer-events: none !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
	.photo-swiper-button-prev,
	.photo-swiper-button-next {
		width: 40px;
		height: 40px;
		margin-top: 20px;
	}
	
	.photo-swiper-button-prev svg,
	.photo-swiper-button-next svg {
		width: 18px;
		height: 18px;
	}
}


