/* Retain the original lightbox fit fix; the inline gallery uses native sizing. */
div.pswp__scroll-wrap div.cgkit-video-wrap {
	width: 100% !important;
	max-width: 100%;
}
div.pswp__scroll-wrap div.cgkit-video-wrap video.pdp-video {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
}
/* Native controls replace the poster/play overlay without changing gallery sizing. */
.cgkit-video-wrap.tk-native-controls-wrap > img,
.cgkit-video-wrap.tk-native-controls-wrap > .cgkit-play { display: none; }
.cgkit-video-wrap > video.tk-native-controls { display: block; }
/* The thumbnail strip retains its native dragging, without duplicate arrows. */
#commercegurus-pdp-gallery .cg-thumb-swiper > :is(.swiper-button-prev,.swiper-button-next) { display: none; }
body.admin-bar .pswp__top-bar { top: var(--wp-admin--admin-bar--height, 32px); }

/* A compact action inside the existing video area; no extra rows or spacing. */
#commercegurus-pdp-gallery .swiper-slide > .tk-video-expand {
	position: absolute; top: 8px; right: 8px; z-index: 2;
	width: 44px; height: 44px; min-height: 0; padding: 0;
	display: grid; place-items: center; border: 0; border-radius: 4px;
	background: rgba(0, 0, 0, .5) !important; color: #fff !important; line-height: 1;
}
#commercegurus-pdp-gallery .tk-video-expand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Desktop uses the existing thumbnail nodes; mobile retains native Swiper. */
#commercegurus-pdp-gallery .tk-thumb-grid {height:auto!important;overflow:visible;cursor:default!important;}
#commercegurus-pdp-gallery .tk-thumb-grid > .swiper-wrapper {display:grid;grid-template-columns:repeat(var(--tk-thumb-columns,8),minmax(0,1fr));gap:10px;width:100%!important;height:auto!important;transform:none!important;}
#commercegurus-pdp-gallery .tk-thumb-grid .swiper-slide {width:auto!important;height:auto!important;margin:0!important;cursor:pointer;}
#commercegurus-pdp-gallery .tk-video-thumb {position:relative;}
#commercegurus-pdp-gallery .tk-video-thumb > img {visibility:hidden;}
#commercegurus-pdp-gallery .tk-thumb-frame {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;}
#commercegurus-pdp-gallery .tk-thumb-play {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:28px;height:28px;border:1px solid #fff;border-radius:50%;background:#111b;color:#fff;font-size:13px;line-height:1;pointer-events:none;}
.pswp .cgkit-video-wrap {position:relative;}
.pswp .tk-video-play {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:72px;height:72px;padding:18px;border:2px solid #fff;border-radius:50%;background:#111b;color:#fff;z-index:3;cursor:pointer;}
.pswp .tk-video-play[hidden] {display:none;}
.pswp .tk-video-play svg {width:100%;height:100%;fill:currentColor;}
.pswp .tk-video-play:focus-visible {outline:3px solid #EBBA69;outline-offset:4px;}
