@charset "UTF-8";
/**
 * Galería Carousel - Estilos SCSS
**/
.cbc-gallery-carousel {
  position: relative;
  padding: 4rem 0;
}
.cbc-gallery-carousel.cbc-blue-style .cbc-gallery-icon {
  color: #0071ab;
}
.cbc-gallery-carousel.cbc-blue-style .cbc-gallery-caption {
  background-color: #0071ab;
}
.cbc-gallery-carousel.cbc-blue-style .cbc-gallery-nav svg {
  color: #0071ab;
}
.cbc-gallery-carousel.cbc-blue-style .cbc-gallery-pagination .swiper-pagination-bullet {
  background: #0071ab;
}
.cbc-gallery-carousel.cbc-blue-style .cbc-gallery-pagination .swiper-pagination-bullet:focus, .cbc-gallery-carousel.cbc-blue-style .cbc-gallery-pagination .swiper-pagination-bullet:hover, .cbc-gallery-carousel.cbc-blue-style .cbc-gallery-pagination .swiper-pagination-bullet-active {
  background: transparent;
  border: 2px solid #0071ab;
}
.cbc-gallery-carousel.cbc-orange-style .cbc-gallery-icon {
  color: #F96030;
}
.cbc-gallery-carousel.cbc-orange-style .cbc-gallery-caption {
  background-color: #F96030;
}
.cbc-gallery-carousel.cbc-orange-style .cbc-gallery-nav svg {
  color: #F96030;
}
.cbc-gallery-carousel.cbc-orange-style .cbc-gallery-pagination .swiper-pagination-bullet {
  background: #F96030;
}
.cbc-gallery-carousel.cbc-orange-style .cbc-gallery-pagination .swiper-pagination-bullet:focus, .cbc-gallery-carousel.cbc-orange-style .cbc-gallery-pagination .swiper-pagination-bullet:hover, .cbc-gallery-carousel.cbc-orange-style .cbc-gallery-pagination .swiper-pagination-bullet-active {
  background: transparent;
  border: 2px solid #F96030;
}

.cbc-gallery-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 0 0 1.5rem;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .cbc-gallery-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

.cbc-gallery-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 992px) {
  .cbc-gallery-container {
    padding: 0 2rem;
  }
}

.cbc-gallery-swiper {
  position: relative;
  overflow: hidden;
}
.cbc-gallery-swiper .swiper-wrapper {
  display: flex;
}
.cbc-gallery-swiper .swiper-slide {
  height: auto;
}

.cbc-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 570px;
  max-height: 570px;
  min-height: unset;
  background: #f5f5f5;
}
@media (max-width: 767px) {
  .cbc-gallery-grid {
    height: 350px;
    max-height: 350px;
  }
}
@media (max-width: 575px) {
  .cbc-gallery-grid {
    height: 280px;
    max-height: 280px;
  }
}

.cbc-gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.cbc-gallery-item--large {
  grid-column: 1;
  grid-row: 1/3;
}
.cbc-gallery-item--small {
  grid-column: 2;
}
.cbc-gallery-item--small:nth-of-type(2) {
  grid-row: 1;
}
.cbc-gallery-item--small:nth-of-type(3) {
  grid-row: 2;
}

.cbc-gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}
.cbc-gallery-link:focus {
  outline: 3px solid #0071ab;
  outline-offset: -3px;
}

.cbc-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.cbc-gallery-link:hover .cbc-gallery-image {
  transform: scale(1.05);
}

.cbc-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cbc-gallery-link:hover .cbc-gallery-overlay, .cbc-gallery-link:focus .cbc-gallery-overlay {
  opacity: 1;
}

.cbc-gallery-icon {
  width: 48px;
  height: 48px;
  color: #fff;
}
.cbc-gallery-icon svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 767px) {
  .cbc-gallery-icon {
    width: 36px;
    height: 36px;
  }
}

.cbc-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cbc-gallery-link:hover + .cbc-gallery-caption, .cbc-gallery-link:focus + .cbc-gallery-caption {
  transform: translateY(0);
}

.cbc-gallery-nav {
  position: absolute;
  top: calc(50% + 24px);
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.cbc-gallery-nav::after {
  display: none;
}
.cbc-gallery-nav svg {
  width: 24px;
  height: 24px;
  color: #0071ab;
  transition: color 0.3s ease;
}
.cbc-gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.cbc-gallery-nav:focus {
  outline: 3px solid #0071ab;
  outline-offset: 2px;
}
.cbc-gallery-nav.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.cbc-gallery-nav--prev {
  left: 1em;
}
@media (max-width: 991px) {
  .cbc-gallery-nav--prev {
    left: 8px;
  }
}
.cbc-gallery-nav--next {
  right: 1em;
}
@media (max-width: 991px) {
  .cbc-gallery-nav--next {
    right: 8px;
  }
}
@media (max-width: 767px) {
  .cbc-gallery-nav {
    width: 40px;
    height: 40px;
  }
  .cbc-gallery-nav svg {
    width: 20px;
    height: 20px;
  }
}

.cbc-gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}
.cbc-gallery-pagination.swiper-pagination-horizontal {
  bottom: -2.5em;
}
.cbc-gallery-pagination .swiper-pagination-bullet {
  background: #0071AB;
  border: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  opacity: 1;
  margin: 0 0.25em !important;
  transition: all 0.3s ease;
  cursor: pointer;
}
.cbc-gallery-pagination .swiper-pagination-bullet:focus, .cbc-gallery-pagination .swiper-pagination-bullet:hover, .cbc-gallery-pagination .swiper-pagination-bullet-active {
  width: 15px;
  height: 15px;
  background: transparent;
  border: 2px solid #0071AB;
  outline: none;
}
.cbc-gallery-pagination .swiper-pagination-bullet:focus, .cbc-gallery-pagination .swiper-pagination-bullet-active {
  cursor: grabbing;
}

.pswp {
  --pswp-bg: rgba(0, 0, 0, 0.9);
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: rgba(255, 255, 255, 0.6);
}
.pswp.lightbox-orange-style {
  --pswp-icon-color: #F96030;
  --pswp-icon-color-secondary:#F96030;
}
.pswp.lightbox-blue-style {
  --pswp-icon-color: #0071ab;
  --pswp-icon-color-secondary:#0071ab;
}

.pswp__counter {
  display: none !important;
}

.pswp-custom-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

.pswp__button {
  transition: opacity 0.3s ease;
}
.pswp__button:hover {
  opacity: 1 !important;
}
.pswp__button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .cbc-gallery-carousel {
    padding: 4em 0;
  }
  .cbc-gallery-container {
    padding: 0 0.5rem;
  }
  .cbc-gallery-grid {
    min-height: 250px;
    gap: 2px;
  }
  .cbc-gallery-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}
@media (max-width: 575px) and (max-width: 400px) {
  .cbc-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr 1fr;
    min-height: 400px;
  }
  .cbc-gallery-item--large {
    grid-column: 1;
    grid-row: 1;
  }
  .cbc-gallery-item--small {
    grid-column: 1;
  }
  .cbc-gallery-item--small:nth-of-type(2) {
    grid-row: 2;
  }
  .cbc-gallery-item--small:nth-of-type(3) {
    grid-row: 3;
  }
}
.block-editor-block-list__block .cbc-gallery-carousel .cbc-gallery-nav--prev {
  left: 1em;
}
.block-editor-block-list__block .cbc-gallery-carousel .cbc-gallery-nav--next {
  right: 1em;
}

@media print {
  .cbc-gallery-carousel .cbc-gallery-nav,
  .cbc-gallery-carousel .cbc-gallery-pagination,
  .cbc-gallery-carousel .cbc-gallery-overlay {
    display: none !important;
  }
  .cbc-gallery-carousel .cbc-gallery-grid {
    break-inside: avoid;
  }
}
