/* K Coffee native video gallery compatibility — Huỳnh Tuấn Trọng.
 * Preserve CS-Cart/AB attribution. No vendor files, product data or player scripts are changed.
 * UniTheme2's broad descendant grid rule exposes the hidden poster and leaves the player at 16:9.
 * Fill the existing gallery slot; the provider keeps the source video ratio with letterboxing.
 */
.ut2-pb .ty-product-img a.ty-product-images-gallery-video-link .ty-product-images-gallery-video__video-container {
  display: block;
  height: 100%;
  position: relative;
}
.ut2-pb .ty-product-img a.ty-product-images-gallery-video-link .ty-video--aspect-ratio {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-top: 0;
}
.ut2-pb .ty-product-img a.ty-product-images-gallery-video-link .ty-video__content {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ut2-pb .ty-product-img a.ty-product-images-gallery-video-link .ty-video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}
.ut2-pb .ty-product-img a.ty-product-images-gallery-video-link .ty-product-images-gallery-video__video-container > .hidden {
  display: none !important;
}
