/* Satech Carousel 361 — internal lightbox */

.sc361-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sc361-popup.is-open {
	opacity: 1;
	visibility: visible;
}

.sc361-popup[hidden] {
	display: flex !important;
}

.sc361-popup:not(.is-open)[hidden] {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.sc361-popup.is-open[hidden] {
	visibility: visible;
}

.sc361-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	cursor: pointer;
}

.sc361-popup__dialog {
	position: relative;
	z-index: 2;
	width: min(92vw, 960px);
	max-height: 85vh;
	background: #0a0a0a;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
	transform: scale(0.96);
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sc361-popup.is-open .sc361-popup__dialog {
	transform: scale(1);
}

.sc361-popup__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 5;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.sc361-popup__close:hover,
.sc361-popup__close:focus-visible {
	background: rgba(255, 255, 255, 0.25);
	outline: none;
}

.sc361-popup__body {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.sc361-popup__body iframe,
.sc361-popup__body video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
}

[dir="rtl"] .sc361-popup__close {
	right: auto;
	left: 0.75rem;
}
