/* Product videos + gallery + lightbox. Logical properties: works in RTL and LTR. */
.injaz-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(6, 36, 73, .85); box-shadow: 0 4px 14px rgba(0,0,0,.35); pointer-events: none; }
.injaz-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }

/* Product page */
.injaz-product-videos { clear: both; padding-top: 1.5rem; margin-bottom: 2rem; }
.injaz-product-videos h2 { font-size: 1.35rem; }
.injaz-product-videos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 440px)); gap: 1rem; }
@media (max-width: 600px) { .injaz-product-videos__grid { grid-template-columns: 1fr; } }
.injaz-product-videos__item { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.injaz-video, .injaz-yt, .injaz-yt-frame, .injaz-yt-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.injaz-video { object-fit: contain; background: #000; }
.injaz-yt { position: relative; padding: 0; cursor: pointer; background: #000; }
.injaz-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.injaz-yt:hover .injaz-play, .injaz-yt:focus-visible .injaz-play { background: #f0a202; }
.injaz-video-badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: rgba(6, 36, 73, .88); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.woocommerce ul.products li.product { position: relative; }

/* Gallery */
.injaz-gallery__filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.25rem; }
.injaz-gallery__filter { min-height: 42px; padding: .4rem 1.1rem; border-radius: 22px; border: 1px solid #cfd6df; background: #fff; color: #062449; font: inherit; font-weight: 600; cursor: pointer; }
.injaz-gallery__filter[aria-pressed="true"] { background: #062449; border-color: #062449; color: #fff; }
.injaz-gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
@media (max-width: 600px) { .injaz-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }
.injaz-gallery__item[hidden] { display: none; }
.injaz-gallery__open { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #0f1b2b; }
.injaz-gallery__item[data-kind="video"] .injaz-gallery__open { cursor: pointer; }
.injaz-gallery__open img, .injaz-gallery__open video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.injaz-gallery__open:hover img, .injaz-gallery__open:hover video { transform: scale(1.04); }
.injaz-gallery__open:focus-visible { outline: 3px solid #f0a202; outline-offset: 2px; }
.injaz-gallery__caption { margin: .35rem 0 0; font-size: .9rem; color: #4f5b6b; line-height: 1.4; }

/* Lightbox */
.injaz-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(5, 12, 24, .95); color: #fff; }
.injaz-lightbox::backdrop { background: rgba(5, 12, 24, .9); }
.injaz-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.injaz-lightbox__stage { width: min(92vw, 1200px); height: min(78dvh, 820px); display: flex; align-items: center; justify-content: center; }
.injaz-lightbox__stage img, .injaz-lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.injaz-lightbox__stage iframe { width: 100%; aspect-ratio: 16 / 9; max-height: 100%; border: 0; }
.injaz-lightbox__caption { margin: .75rem 1rem 0; text-align: center; font-size: 1rem; }
.injaz-lightbox__close, .injaz-lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; font: 400 2rem/1 Arial, sans-serif; }
.injaz-lightbox__close { top: 14px; inset-inline-end: 14px; width: 48px; height: 48px; border-radius: 50%; }
.injaz-lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border-radius: 8px; }
.injaz-lightbox__prev { inset-inline-start: 12px; }
.injaz-lightbox__next { inset-inline-end: 12px; }
.injaz-lightbox__close:hover, .injaz-lightbox__nav:hover { background: rgba(240, 162, 2, .85); color: #1b1300; }
.injaz-lightbox__nav[hidden] { display: none; }
@media (max-width: 600px) {
	.injaz-lightbox__nav { width: 42px; height: 56px; top: auto; bottom: 18px; transform: none; }
	.injaz-lightbox__stage { height: 70dvh; }
}
