/**
 * Стили компактной горизонтальной галереи скриншотов с кнопками навигации
 *
 * Дизайн: горизонтальная прокрутка с arrow-кнопками (как в Real Drive)
 * Расположение: после короткого описания, БЕЗ заголовка "Screenshots"
 *
 * @package GrandScreen
 * @since 1.0.0
 */



.screenshots-gallery-compact {
	margin: 20px 0 24px 0;
	padding: 0;
}



.screenshots-scroll-container {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}



.screenshot-nav {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	color: #ffffff;
	z-index: 2;
	backdrop-filter: blur(4px);
}

.screenshot-nav:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: scale(1.1);
}

.screenshot-nav:active {
	transform: scale(0.95);
}

.screenshot-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.screenshot-nav svg {
	width: 20px;
	height: 20px;
	color: #ffffff;
}


@media (min-width: 769px) {
	.screenshot-nav {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}

	.screenshot-nav-left {
		left: -20px;
	}

	.screenshot-nav-right {
		right: -20px;
	}

	.screenshot-nav:hover.screenshot-nav-left {
		transform: translateY(-50%) translateX(-4px) scale(1.1);
	}

	.screenshot-nav:hover.screenshot-nav-right {
		transform: translateY(-50%) translateX(4px) scale(1.1);
	}
}



.screenshots-wrapper {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; 
	-ms-overflow-style: none; 
	padding: 8px 0;
	flex: 1;
	
	height: 296px; 
	align-items: center;
}


.screenshots-wrapper::-webkit-scrollbar {
	display: none;
}



.screenshot-item {
	flex-shrink: 0;
	width: 158px; 
	height: 280px;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	display: block;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	background: #f8f9fa;
}

.screenshot-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}


.screenshots-gallery-compact img {
	max-width: none !important;
	height: 100% !important;
	width: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: 8px;
}




@media (max-width: 1024px) {
	.screenshots-gallery-compact {
		margin: 16px 0 20px 0;
	}

	.screenshot-item {
		height: 240px;
	}

	.screenshot-item__image {
		height: 240px !important;
	}

	.screenshots-wrapper {
		gap: 10px;
		height: 256px; 
	}

	.screenshot-nav {
		width: 36px;
		height: 36px;
	}

	.screenshot-nav svg {
		width: 18px;
		height: 18px;
	}
}


@media (max-width: 768px) {
	.screenshots-gallery-compact {
		margin: 12px 0 16px 0;
	}

	.screenshot-item {
		height: 200px;
	}

	.screenshot-item__image {
		height: 200px !important;
	}

	.screenshots-wrapper {
		gap: 8px;
		padding: 6px 0;
		height: 212px; 
	}

	.screenshot-nav {
		display: none; 
	}

	.screenshots-scroll-container {
		gap: 0;
	}
}


@media (max-width: 480px) {
	.screenshot-item {
		height: 180px;
		border-radius: 6px;
	}

	.screenshot-item__image {
		height: 180px !important;
		border-radius: 6px;
	}

	.screenshots-wrapper {
		gap: 6px;
		height: 192px; 
	}
}



@keyframes slideInFromRight {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.screenshot-item {
	animation: slideInFromRight 0.4s ease forwards;
}


.screenshot-item:nth-child(1) { animation-delay: 0.05s; }
.screenshot-item:nth-child(2) { animation-delay: 0.1s; }
.screenshot-item:nth-child(3) { animation-delay: 0.15s; }
.screenshot-item:nth-child(4) { animation-delay: 0.2s; }
.screenshot-item:nth-child(5) { animation-delay: 0.25s; }
.screenshot-item:nth-child(n+6) { animation-delay: 0.3s; }




.glightbox-container {
	background: rgba(0, 0, 0, 0.95) !important;
}


.glightbox-button-next,
.glightbox-button-prev {
	background: rgba(255, 107, 53, 0.9) !important;
	color: #ffffff !important;
	border-radius: 50% !important;
	width: 50px !important;
	height: 50px !important;
	transition: all 0.3s ease !important;
}

.glightbox-button-next:hover,
.glightbox-button-prev:hover {
	background: #ff6b35 !important;
	transform: scale(1.1) !important;
}


.glightbox-close {
	background: rgba(255, 107, 53, 0.9) !important;
	color: #ffffff !important;
	border-radius: 50% !important;
	width: 40px !important;
	height: 40px !important;
	top: 20px !important;
	right: 20px !important;
	transition: all 0.3s ease !important;
}

.glightbox-close:hover {
	background: #ff6b35 !important;
	transform: rotate(90deg) scale(1.1) !important;
}


.gslide-description {
	background: rgba(0, 0, 0, 0.8) !important;
	color: #ffffff !important;
	padding: 12px 20px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
}


.gslide-counter {
	background: rgba(255, 107, 53, 0.9) !important;
	color: #ffffff !important;
	padding: 6px 12px !important;
	border-radius: 20px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
}



.screenshot-item:focus {
	outline: 2px solid #ff6b35;
	outline-offset: 2px;
}

.screenshot-nav:focus {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}


@media (prefers-reduced-motion: reduce) {
	.screenshot-item,
	.screenshot-item__image,
	.screenshot-nav {
		animation: none !important;
		transition: none !important;
	}

	.screenshots-wrapper {
		scroll-behavior: auto;
	}
}
