/* Full-size video overlay inside Blocksy's existing gallery viewport. */
.ct-product-gallery-container .flexy-view {
    position: relative;
}

.gilibb-video-slide {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: #fff;
}

.gilibb-video-slide.is-active {
    display: flex;
}

.gilibb-video-slide video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    background: #fff;
}

.ct-product-gallery-container.gilibb-video-is-active .flexy-arrow,
.ct-product-gallery-container.gilibb-video-is-active [class*="flexy-arrow"] {
    visibility: hidden !important;
    pointer-events: none !important;
}

.gilibb-video-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

/* Match the rounded Blocksy product thumbnails without changing the gallery layout. */
.gilibb-video-thumb img,
.gilibb-video-thumb .gilibb-video-thumb-fallback {
    border-radius: inherit;
}

.gilibb-video-thumb::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    pointer-events: none;
}

.gilibb-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gilibb-video-thumb-fallback {
    width: 100%;
    height: 100%;
    min-height: 64px;
    background: #eee;
}
