/* =====================================
   Gallery Block General Styles
===================================== */
.gallery-block {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Container inside gallery block */
.gallery-block .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Titles & subtitles */
.gallery-block .block-title,
.gallery-block .block-subtitle {
    margin: 0 0 15px;
    line-height: 1.3;
}
.gallery-block .block-subtitle {
    font-size: 1rem;
    color: #777;
}
.gallery-block .block-title {
    font-size: 2rem;
    font-weight: 700;
}

/* Paragraphs */
.gallery-block .block-paragraphs {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
}


.content-block.partners .gallery-square-grid {
    max-width: 1260px;
    margin: 0 auto;
}

.content-block.partners .gallery-wrapper .modular-gallery-ul {
    gap: 40px;
}

.content-block.partners .gallery-wrapper .modular-gallery-ul .gallery-item {
    width: calc(33.33% - 40px);
}

.content-block.partners .gallery-wrapper .modular-gallery-ul .gallery-item img{
    width: auto;
}

.content-block.partners .gallery-wrapper .modular-gallery-ul .gallery-item a.modular_gallery_image {
    display: flex;
    justify-content: center;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: var(--border-radius);
}


/* =====================================
   Gallery Wrapper & Items
===================================== */
.gallery-wrapper {
    position: relative;
    width: 100%;
    padding: 20px;
}

/* Modular gallery list */
.gallery-wrapper .modular-gallery-ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    list-style: none;
    padding: 0px 0 40px;
}

/* Gallery item */
.gallery-wrapper .modular-image-container {
    padding: 10px;
    box-sizing: border-box;
}

/* Square Grid (default) */
.gallery-wrapper.gallery-type-square-grid .modular-image-container {
    width: 33.3333%;
}
.gallery-wrapper.gallery-type-rectangle-grid .modular-image-container {
    width: 50%;
}

/* Masonry Grid */
.gallery-wrapper.masonry-grid .modular-image-container {
    width: 33.3333%; /* Masonry width, adjust as needed */
    margin-bottom: 20px;
}

/* Images */
.gallery-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

body.home .gallery-wrapper img{
    filter: grayscale(1);
}

.gallery-type-carousel {
    padding: 10px 0 30px;
}

.center-align-gallery {
  display: flex;
  justify-content: center;
  gap: 20px; /* match your gutter */
}


body.home .gallery-wrapper .modular-gallery-ul{
    padding-bottom: 0;
}

body.home .gallery-type-carousel{
    width:var(--container-width);
    max-width: 1700px;
    padding: var(--contrainer-padding);
    padding-bottom: 0;
    margin: 0 auto;
    overflow: hidden;
}


/* =====================================
   Carousel Specific
===================================== */
.carousel-slider .modular-image-container {
    width: auto !important;
    max-width: 236px;
    display: flex;
    align-items: center;
}

.carousel-slider .slick-track{
    display: flex;
}

.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
}
.slick-prev { left: 10px; }
.slick-next { right: 10px; }

/* Slide index */
.slide-index {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}


/* Logo slider wrapper */
.logo-slider {
  padding: 40px 0 20px;
  overflow: hidden;
  position: relative;
}

/* Track */
.logo-scroll-track {
  display: flex;
  gap: 10px;
  width: max-content; /* allow stretching */
  animation: logo-scroll 100s linear infinite; /* slower */
}

/* Each logo */
.logo-scroll-track img {
  width: auto;
  height: auto;
  max-height: 100px;
  flex: 0 0 auto;
}

.logo-slider .carousel-slider .modular-image-container{
    pointer-events: none;
}

.gallery-type-carousel,
.logo-slider .gallery-type-carousel{
    position: relative;
}

.gallery-type-carousel::before,
.gallery-type-carousel::after,
.logo-slider .gallery-type-carousel::before,
.logo-slider .gallery-type-carousel::after {
    content: "";
    position: absolute;
    top: -10px;
    z-index: 2;
    width: clamp(150px, 15%, 335px); 
    height: 100%; 
}

.gallery-type-carousel::before,
.logo-slider .gallery-type-carousel::before {
    left: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 56.25%);
}

.gallery-type-carousel::after,
.logo-slider .gallery-type-carousel::after {
    right: 0;
    left: auto;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 56.25%);
    transform: scaleX(-1);
}


/* Infinite scroll effect */
@keyframes logo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* move by half since duplicated */
}


.modular-gallery-ul.slides.carousel-slider ul.slick-dots {
    bottom: 0;
}

/* =====================================
   Responsive Adjustments
===================================== */

@media only screen and (max-width: 1720px) {
    
}

@media only screen and (max-width: 1536px) {
    .hero-container .hero-content .hero-content-outer {
        max-width: 500px;
    }
}

@media only screen and (max-width: 1280px) {
    .gallery-wrapper.gallery-type-square-grid .modular-image-container,
    .gallery-wrapper.masonry-grid .modular-image-container {
        width: 50%;
    }
}

@media only screen and (max-width: 992px) {
    .content-block.partners .gallery-wrapper .modular-gallery-ul .gallery-item {
        width: calc(50% - 20px);
    }
}

@media only screen and (max-width: 767px) {
    .gallery-wrapper.gallery-type-square-grid .modular-image-container,
    .gallery-wrapper.gallery-type-rectangle-grid .modular-image-container,
    .gallery-wrapper.masonry-grid .modular-image-container {
        width: 100%;
    }

    .slick-prev, .slick-next {
        padding: 6px 10px;
    }

    .logo-slider .gallery-type-carousel::before,
    .logo-slider .gallery-type-carousel::after {
        width: 80px;
        height: 40px;
    }

    .content-block.partners .gallery-wrapper .modular-gallery-ul {
        gap: 20px;
    }

    .content-block.partners .gallery-wrapper .modular-gallery-ul .gallery-item {
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {

}