/*
 * Caledros Basic Blocks - Easy to use Gutenberg blocks
 * Copyright (C) 2025  David Arnado
 * 
 * This file is part of Caledros Basic Blocks.
 * 
 * Caledros Basic Blocks is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.

 * Caledros Basic Blocks is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License along
 * with Caledros Basic Blocks; if not, see <https://www.gnu.org/licenses/>.
 */

/*CSS fixes for flex containers inside the slider block*/
/*Light mode*/
.swiper-slide .cbb-flex-container--has-bg-gradient {
  background-image: var(--cbb-light-bg-gradient, none) !important;
}
.swiper-slide .cbb-flex-container--has-bg-color {
  background-color: var(--cbb-light-bg-color, #00000000) !important;
}
.swiper-slide .cbb-flex-container--has-box-shadow {
  box-shadow: var(--cbb-light-box-shadow, none) !important;
}
.swiper-slide .cbb-flex-container--has-border {
  border-color: var(--cbb-light-border-color, #00000000) !important;
}

/*Dark mode*/
html[data-theme="dark"] .swiper-slide .cbb-flex-container--has-bg-gradient {
  background-image: var(--cbb-dark-bg-gradient, none) !important;
}
html[data-theme="dark"] .swiper-slide .cbb-flex-container--has-bg-color {
  background-color: var(--cbb-dark-bg-color, #00000000) !important;
}
html[data-theme="dark"] .swiper-slide .cbb-flex-container--has-box-shadow {
  box-shadow: var(--cbb-dark-box-shadow, none) !important;
}
html[data-theme="dark"] .swiper-slide .cbb-flex-container--has-border {
  border-color: var(--cbb-dark-border-color, #00000000) !important;
}

/*CSS fixes for grid containers inside the slider block*/
/*Light mode*/
.swiper-slide .cbb-grid-container--has-bg-gradient {
  background-image: var(--cbb-light-bg-gradient, none) !important;
}
.swiper-slide .cbb-grid-container--has-bg-color {
  background-color: var(--cbb-light-bg-color, #00000000) !important;
}
.swiper-slide .cbb-grid-container--has-box-shadow {
  box-shadow: var(--cbb-light-box-shadow, none) !important;
}
.swiper-slide .cbb-grid-container--has-border {
  border-color: var(--cbb-light-border-color, #00000000) !important;
}

/*Dark mode*/
html[data-theme="dark"] .swiper-slide .cbb-grid-container--has-bg-gradient {
  background-image: var(--cbb-dark-bg-gradient, none) !important;
}
html[data-theme="dark"] .swiper-slide .cbb-grid-container--has-bg-color {
  background-color: var(--cbb-dark-bg-color, #00000000) !important;
}
html[data-theme="dark"] .swiper-slide .cbb-grid-container--has-box-shadow {
  box-shadow: var(--cbb-dark-box-shadow, none) !important;
}
html[data-theme="dark"] .swiper-slide .cbb-grid-container--has-border {
  border-color: var(--cbb-dark-border-color, #00000000) !important;
}
