/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* 1. Add space between the main featured image and the thumbnail strip */
.woocommerce-product-gallery .flex-viewport {
    margin-bottom: 15px !important; 
}

/* 2. Convert the thumbnail row into a Grid for perfect spacing */
.woocommerce-product-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Forces 4 equal columns */
    gap: 12px !important; /* Adjust this value to increase/decrease the space between thumbs */
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Strip out WooCommerce's default float calculations that are causing them to stick together */
.woocommerce-product-gallery .flex-control-thumbs li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. Ensure the images and the new video wrapper fill their grid cells perfectly */
.woocommerce-product-gallery .flex-control-thumbs li img,
.woocommerce-product-gallery .flex-control-thumbs li .vwg-video-wrapper {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Keeps images from distorting if they aren't perfect squares */
    display: block;
}