.edkys-gallery {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: var(--edkys-gallery-main-width, 100%);
	max-width: 100%;
	border: none;
	box-shadow: none;
}
.edkys-gallery-thumbs {
	border: none;
	box-shadow: none;
	min-height: 0;
}
.edkys-gallery-main {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--edkys-gallery-radius, 12px);
	background: #f7f5f0;
	cursor: zoom-in;
}
.edkys-gallery-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .2s ease;
}
.edkys-gallery-secondary-img {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	visibility: hidden;
}
.edkys-gallery-secondary-img.is-active {
	visibility: visible;
}
.edkys-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.85);
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	color: #3d3d3a;
	display: flex;
	align-items: center;
	justify-content: center;
}
.edkys-gallery-nav-prev { left: 10px; }
.edkys-gallery-nav-next { right: 10px; }

.edkys-gallery-thumbs {
	display: flex;
	gap: var(--edkys-gallery-thumb-gap, 8px);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 4px;
}
.edkys-gallery-thumb {
	width: var(--edkys-gallery-thumb-size, 52px);
	height: var(--edkys-gallery-thumb-size, 52px);
	object-fit: cover;
	border-radius: var(--edkys-gallery-thumb-radius, 10px);
	border: 2px solid transparent;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color .15s ease, opacity .15s ease;
	opacity: .7;
}
.edkys-gallery-thumb:hover {
	opacity: 1;
}
.edkys-gallery-thumb.is-active {
	border-color: var(--edkys-gallery-active-color, #d9a860);
	opacity: 1;
}

@media (min-width: 782px) {
	body.edkys-gallery-thumbs-left .edkys-gallery {
		flex-direction: row-reverse;
	}
	body.edkys-gallery-thumbs-left .edkys-gallery-thumbs {
		flex-direction: column;
		overflow-y: auto;
		overflow-x: hidden;
		max-height: 520px;
	}
	body.edkys-gallery-thumbs-left .edkys-gallery-main {
		flex: 1;
	}
}


/* Média principale : image ou vidéo */
.edkys-gallery-media {
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
	transform:translate3d(0,0,0);
	background:#f7f5f0;
	will-change:transform;
}
.edkys-gallery-main .edkys-gallery-media {
	z-index:1;
}
.edkys-gallery-secondary-media {
	z-index:2;
	visibility:hidden;
}
.edkys-gallery-secondary-media.is-active { visibility:visible; }
.edkys-gallery-media img {
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
	user-select:none;
	-webkit-user-drag:none;
}
.edkys-gallery-video-wrap {
	position:absolute;
	inset:0;
	background:#111;
}
.edkys-gallery-video {
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
	background:#111;
	outline:none;
}
.edkys-gallery-video-badge {
	position:absolute;
	left:50%;
	top:50%;
	transform:translate(-50%,-50%);
	display:flex;
	align-items:center;
	gap:7px;
	padding:10px 14px;
	border-radius:999px;
	background:rgba(0,0,0,.68);
	color:#fff;
	font-size:12px;
	font-weight:700;
	letter-spacing:.04em;
	cursor:pointer;
	backdrop-filter:blur(4px);
	transition:opacity .18s ease, transform .18s ease;
}
.edkys-gallery-video-badge:hover { transform:translate(-50%,-50%) scale(1.04); }
.edkys-gallery-video-badge.is-hidden { opacity:0; pointer-events:none; }
.edkys-gallery-thumb {
	position:relative;
	display:block;
	padding:0;
	background:none;
	line-height:0;
	overflow:hidden;
}
.edkys-gallery-thumb img {
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}
.edkys-gallery-thumb.is-video-thumb { background:#111; }
.edkys-thumb-play {
	position:absolute;
	left:50%;
	top:50%;
	transform:translate(-50%,-50%);
	width:24px;
	height:24px;
	border-radius:50%;
	display:flex;
	align-items:center;
	justify-content:center;
	background:rgba(0,0,0,.68);
	color:#fff;
	font-size:9px;
	line-height:1;
}

/* Lightbox */
.edkys-gallery-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(20,20,18,.94);
	z-index: 999995;
	display: none;
	align-items: center;
	justify-content: center;
}
.edkys-gallery-lightbox.is-open {
	display: flex;
}
.edkys-gallery-lightbox-media {
	max-width: 92vw;
	max-height: 88vh;
	width: min(92vw, 1100px);
	height: min(88vh, 850px);
	display:flex;
	align-items:center;
	justify-content:center;
}
.edkys-gallery-lightbox-img, .edkys-gallery-lightbox-video {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	user-select: none;
}
.edkys-gallery-lightbox-close {
	position: absolute;
	top: 18px;
	right: 20px;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
}
.edkys-gallery-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.15);
	border: none;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
}
.edkys-gallery-lightbox-prev { left: 16px; }
.edkys-gallery-lightbox-next { right: 16px; }

/* --- Mise en page à deux colonnes sur ordinateur : l'image à gauche,
   les infos produit (titre, prix, bouton) à droite. On utilise la technique
   "flottant + overflow" avec la classe .summary.entry-summary, qui est une
   classe standard WooCommerce présente sur tous les thèmes — fiable, sans
   dépendre d'un réglage spécifique à ton thème. --- */
@media (min-width: 782px) {
	.single-product .edkys-gallery {
		float: left;
		margin-right: 40px;
		margin-bottom: 20px;
	}
	.single-product .summary.entry-summary {
		overflow: hidden;
	}
	.single-product .woocommerce-tabs,
	.single-product .related.products {
		clear: both;
	}
}
