/*
Theme Name: Lamb
Author: Author Name
Author URI: http://domain.ca

*/

@import "sass/style.css";

.ratio {
    position: relative;
    width: 100%;
}

.equal {
    display: flex;
    flex-direction: row;
}

.brands-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: auto;
	grid-column-gap: 10px;
	grid-row-gap: 10px;
}

.column-group-slim:before {
	display: none;
}

@media (max-width: 991.98px) {
    .equal {
        flex-direction: column;
    }

    .equal .col-one-half {
        width: 100%;
    }

    .equal .has-background {
        position: relative;
        width: 100%;
    }

    .equal .has-background::before {
        display: block;
        padding-top: 56.25%;
        content: "";
    }
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.image-grid .grid-item {
    width: 100%;
    aspect-ratio: 1 / 1; /* makes perfect squares */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* hides excess parts from tall images */
    background: #fff; /* optional */
    border-radius: 8px; /* optional */
}

.image-grid .grid-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* keeps full image visible */
    display: block;
}

@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 1. Wrapper to control the aspect ratio */
.video-responsive-container {
    /* Set the width of the container */
    width: 100%;
    /* Start of aspect ratio trick */
    position: relative;
    padding-bottom: 56.25%; /* 9 / 16 = 0.5625 (for 16:9 aspect ratio) */
    height: 0;
    overflow: hidden;
    /* Optional: Add a max-width if you don't want it to stretch across extremely large screens */
    max-width: 1980px; 
    margin: 0 auto;
	margin-bottom: 15px;
}

/* 2. Style for the Video.js player itself */
#my-video,
.video-responsive-container .video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; /* Forces the player to fill the wrapper width */
    height: 100% !important; /* Forces the player to fill the calculated height */
}

/* 3. Optional: Ensure the poster image also fills the space */
.vjs-poster {
    background-size: cover;
}

@media(max-width:864px){
	.wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-list-horizontal{
		margin-top: 0 !important;
	}
}