/* EBS PDP media: extra photo gallery slider + vertical video preview */
.ebs-photo-gallery {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}
.ebs-photo-gallery::after {
	content: none !important;
}
.ebs-photo-gallery__swiper {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}
.ebs-photo-gallery__slide {
	width: calc((100% - 32px) / 5);
	height: auto;
}
.ebs-photo-gallery__link {
	display: block;
	aspect-ratio: 1;
	border-radius: var(--theme-button-border-radius, 8px);
	overflow: hidden;
	cursor: zoom-in;
}
.ebs-photo-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ebs-photo-gallery__nav {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'><path d='M10 3L5 8l5 5' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
	cursor: pointer;
}
.ebs-photo-gallery__nav--next {
	transform: scaleX(-1);
}
.ebs-photo-gallery__nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}
@media (max-width: 767px) {
	.ebs-photo-gallery__slide {
		width: calc((100% - 16px) / 3);
	}
}

.ebs-video-preview-wrap {
	margin-top: 10px;
	max-width: max-content;
}
.ebs-video-preview {
	display: flex;
	align-items: center;
	gap: 10px;
	width: auto;
	padding: 5px 10px 5px 5px;
	border: 0;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font: inherit;
}
.ebs-video-preview__media {
	position: relative;
	flex: 0 0 54px;
	width: 54px;
	height: 96px;
	border-radius: 6px;
	overflow: hidden;
	background: #f2f2f2;
}
.ebs-video-preview__media img,
.ebs-video-preview__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	pointer-events: none;
}
.ebs-video-preview__frame {
	transform: scale(1.35);
	transform-origin: center center;
}
.ebs-video-preview__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e31e24 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M8 5v14l11-7z'/></svg>") center/10px no-repeat;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	z-index: 2;
	pointer-events: none;
}
.ebs-video-preview__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.ebs-video-preview__title {
	font-weight: 600;
	font-size: 13px;
	line-height: 1.25;
}
.ebs-video-preview__note {
	font-size: 12px;
	color: #666;
}
@media (min-width: 768px) {
	.ebs-video-preview-wrap {
		margin-top: 12px;
	}
	.ebs-video-preview {
		gap: 12px;
		padding: 6px 12px 6px 6px;
	}
	.ebs-video-preview__media {
		flex-basis: 68px;
		width: 68px;
		height: 120px;
		border-radius: 8px;
	}
	.ebs-video-preview__play {
		width: 27px;
		height: 27px;
		background-size: 12px;
	}
	.ebs-video-preview__title {
		font-size: 14px;
	}
	.ebs-video-preview__note {
		font-size: 13px;
	}
}

html.ebs-video-modal-open,
body.ebs-video-modal-open {
	overflow: hidden;
}
.ebs-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.ebs-video-modal[hidden] {
	display: none !important;
}
.ebs-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 20, 0.72);
}
.ebs-video-modal__dialog {
	position: relative;
	width: 380px;
	height: 674px;
	max-width: min(380px, calc(100vw - 48px));
	max-height: calc(100vh - 48px);
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
	z-index: 1;
}
.ebs-video-modal__frame,
.ebs-video-modal__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
	display: block;
}
.ebs-video-modal__close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.ebs-video-modal__close:hover {
	background: #f3f3f3;
}
@media (max-width: 767px) {
	.ebs-video-modal {
		padding: 16px;
	}
	.ebs-video-modal__dialog {
		width: min(92vw, 420px);
		height: min(82vh, 746px);
		max-width: 92vw;
		max-height: 82vh;
	}
}
