/**
* 2007-2021 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2021 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

#products #js-product-list .ecommgridcategoryproducts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    grid-auto-flow: dense;
}
#products #js-product-list .ecommgridcategoryproducts .html_inside {
    position: absolute;
    bottom: 0px;
    height: initial;
    background: #ffffffd6;
    left: 0px;
    right: 0px;
    padding: 15px 15px 0px;
}
#products #js-product-list .ecommgridcategoryproducts:after{
    display: none
}
#products #js-product-list .ecommgridcategoryproducts > .product{
    width: 100%
}
.ecommgridcategoryhtml .img_inside img {
    width: 100%;
    object-fit: cover;
}
.ecommgridcategoryhtml *{
    height: 100%
}
#products .product.imgdoble {
    grid-column: span 2;
}
#products .product.imgdoble .thumbnail-container img {
    max-width: 100%;
    height: auto;
}

.ajax_block_product.video_image iframe{
    position: absolute;
    width: 100%;
    height: 100%;
}
.ajax_block_product.video_image video {
    width: 100%;
}
.ajax_block_product.video_image {
    grid-column: span 2;
    position:relative;
    overflow: hidden;
}
.ajax_block_product.video_image:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
}

.block_img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.block_img {
    grid-row: span 2;
    grid-column: span 2;
    position:relative;
}
.product.alternative_img {
    grid-column: span 2;
}

.change-view-grid {
    position: relative;
}
.change-view-grid > p {
    position: absolute;
    top: -35px;
    right: 85px;
    background: no-repeat;
    height: auto;
    border: none;
    padding: 0px;

    font-size: 16px;
    font-weight: 300;
    color: #000;
}




.ajax_block_product.video_image.video_mobile iframe {
    position: initial;
}
span.content_custom {
    position: absolute;
    top: 20px;
    color: black;
    display: block;
    font-size: 25px;
    left: 15px;
}

.form-group:first-child {
    display: block;
}
.form-wrapper > .form-group {
    display: none;
}
span.option_video1, span.option_img1 {
    padding: 10px;
    margin-top: 0px;
    display: inline-block;
    border: 1px solid;
    width: 66px;
    text-align: center;
    margin-right: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.container_product_video iframe {
    width: 100%;
    height: calc(100vh - 49.5vh); 
}

.video_content video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(min-width:768px) and (max-width:991px) {

    #products #js-product-list .products.t-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    #products #js-product-list .products.t-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #products #js-product-list .products.t-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px){
    #products #js-product-list .products.m-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    #products #js-product-list .products.m-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #products #js-product-list .products.m-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #products .products.typeA {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ajax_block_product.video_image iframe{
        position: initial;
    }
}
