.clb-gallery {
  --clb-gallery-radius: 14px;
  --clb-gallery-gap: 8px;
  --clb-gallery-main-height: 450px;
  --clb-gallery-top-height: 146px;
  --clb-gallery-bottom-height: 162px;
}

/* Sfondo del nuovo template, senza modificare il template precedente. */
body.clb-barche-modern-page,
body.clb-barche-modern-page #page,
body.clb-barche-modern-page #content,
body.clb-barche-modern-page main,
body.clb-barche-modern-page .site-main {
  background-color: #ece3d3 !important;
}

.clb-gallery,
.clb-gallery * {
  box-sizing: border-box;
}

.clb-gallery .clb-gallery-slot-0,
.clb-gallery .clb-hero-image,
.clb-gallery .clb-zoomable,
.clb-gallery .clb-gallery-slot-1,
.clb-gallery .clb-gallery-slot-2,
.clb-gallery .clb-gallery-top-img,
.clb-gallery .clb-gallery-bot-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--clb-gallery-radius);
  cursor: zoom-in;
}

.clb-gallery .clb-gallery-slot-0 .elementor-widget-container,
.clb-gallery .clb-hero-image .elementor-widget-container,
.clb-gallery .clb-zoomable .elementor-widget-container,
.clb-gallery .clb-gallery-slot-1 .elementor-widget-container,
.clb-gallery .clb-gallery-slot-2 .elementor-widget-container,
.clb-gallery .clb-gallery-top-img .elementor-widget-container,
.clb-gallery .clb-gallery-bot-img .elementor-widget-container,
.clb-gallery .clb-gallery-slot-0 .elementor-image,
.clb-gallery .clb-hero-image .elementor-image,
.clb-gallery .clb-zoomable .elementor-image,
.clb-gallery .clb-gallery-slot-1 .elementor-image,
.clb-gallery .clb-gallery-slot-2 .elementor-image,
.clb-gallery .clb-gallery-top-img .elementor-image,
.clb-gallery .clb-gallery-bot-img .elementor-image {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: inherit;
  line-height: 0;
}

.clb-gallery .clb-gallery-slot-0 img,
.clb-gallery .clb-hero-image img {
  display: block;
  width: 100%;
  height: var(--clb-gallery-main-height);
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.clb-gallery .clb-gallery-slot-1 img,
.clb-gallery .clb-gallery-top-img img {
  display: block;
  width: 100%;
  height: var(--clb-gallery-top-height);
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.clb-gallery .clb-gallery-slot-2 img,
.clb-gallery .clb-gallery-bot-img img {
  display: block;
  width: 100%;
  height: var(--clb-gallery-bottom-height);
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.clb-gallery .clb-gallery-slot-0 img,
.clb-gallery .clb-hero-image img,
.clb-gallery .clb-gallery-slot-1 img,
.clb-gallery .clb-gallery-slot-2 img,
.clb-gallery .clb-gallery-top-img img,
.clb-gallery .clb-gallery-bot-img img {
  transition: filter 0.25s ease;
}

.clb-gallery .clb-gallery-slot-0:hover img,
.clb-gallery .clb-hero-image:hover img,
.clb-gallery .clb-gallery-slot-1:hover img,
.clb-gallery .clb-gallery-slot-2:hover img,
.clb-gallery .clb-gallery-top-img:hover img,
.clb-gallery .clb-gallery-bot-img:hover img {
  filter: brightness(1.04);
}

.clb-gallery .clb-zoom-badge,
.clb-hero-image .clb-zoom-badge,
.clb-gallery-top-img .clb-zoom-badge,
.clb-gallery-bot-img .clb-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(16, 35, 55, 0.72);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.clb-gallery .clb-gallery-slot-0:hover .clb-zoom-badge,
.clb-gallery .clb-hero-image:hover .clb-zoom-badge,
.clb-gallery .clb-gallery-slot-1:hover .clb-zoom-badge,
.clb-gallery .clb-gallery-slot-2:hover .clb-zoom-badge,
.clb-gallery .clb-gallery-top-img:hover .clb-zoom-badge,
.clb-gallery .clb-gallery-bot-img:hover .clb-zoom-badge,
.clb-hero-image:hover .clb-zoom-badge,
.clb-gallery-top-img:hover .clb-zoom-badge,
.clb-gallery-bot-img:hover .clb-zoom-badge {
  opacity: 1;
  transform: scale(1);
}

.clb-gallery .clb-zoom-badge svg,
.clb-hero-image .clb-zoom-badge svg,
.clb-gallery-top-img .clb-zoom-badge svg,
.clb-gallery-bot-img .clb-zoom-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

@media (max-width: 1024px) {
  .clb-gallery .clb-gallery-slot-0 img,
  .clb-gallery .clb-hero-image img,
  .clb-hero-image img {
    height: 240px;
  }

  .clb-gallery .clb-gallery-slot-1 img,
  .clb-gallery .clb-gallery-slot-2 img,
  .clb-gallery .clb-gallery-top-img img,
  .clb-gallery .clb-gallery-bot-img img,
  .clb-gallery-top-img img,
  .clb-gallery-bot-img img {
    height: 90px;
  }
}

/* Compatibilità con il template precedente, senza obbligo della classe clb-gallery. */
.clb-hero-image,
.clb-gallery-top-img,
.clb-gallery-bot-img,
.clb-zoomable {
  position: relative;
  overflow: hidden;
  border-radius: var(--clb-gallery-radius);
  cursor: zoom-in;
}

.clb-hero-image .elementor-widget-container,
.clb-gallery-top-img .elementor-widget-container,
.clb-gallery-bot-img .elementor-widget-container,
.clb-zoomable .elementor-widget-container,
.clb-hero-image .elementor-im   age,
.clb-gallery-top-img .elementor-image,
.clb-gallery-bot-img .elementor-image,
.clb-zoomable .elementor-image {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: inherit;
  line-height: 0;
}

.clb-hero-image img,
.clb-zoomable img {
  display: block;
  width: 100%;
  height: var(--clb-gallery-main-height);
  object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.clb-gallery-top-img img {
  display: block;
  width: 100%;
  height: var(--clb-gallery-top-height);
  object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.clb-gallery-bot-img img {
  display: block;
  width: 100%;
  height: var(--clb-gallery-bottom-height);
  object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.clb-hero-image:hover .clb-zoom-badge,
.clb-gallery-top-img:hover .clb-zoom-badge,
.clb-gallery-bot-img:hover .clb-zoom-badge,
.clb-zoomable:hover .clb-zoom-badge {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 1024px) {
  .clb-hero-image img,
  .clb-zoomable img {
    height: 240px;
  }

  .clb-gallery-top-img img,
  .clb-gallery-bot-img img {
    height: 90px;
  }
}
