/* ===== COMMON BACKGROUND STYLES FOR ALL LAYOUTS ===== */
/* These styles apply to all layout components that support backgrounds */

/* Common layout background styles */
.layout-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.layout-background img,
.layout-background__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.layout-background video,
.layout-background__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.layout-background.layout-background--left {
  width: 50%;
  left: 0;
  right: auto;
}

.layout-background.layout-background--right {
  width: 50%;
  left: auto;
  right: 0;
}

.layout-background.layout-background--full {
  width: 100%;
  left: 0;
  right: 0;
}

/* Overlay styles */
.layout-background-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.layout-background-overlay-layer.layout-background--left {
  width: 50%;
  left: 0;
  right: auto;
}

.layout-background-overlay-layer.layout-background--right {
  width: 50%;
  left: auto;
  right: 0;
}

.layout-background-overlay-layer.layout-background--full {
  width: 100%;
  left: 0;
  right: 0;
}

/* Swiper slideshow styles */
.layout-background-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.layout-background-slideshow .swiper {
  width: 100%;
  height: 100%;
}

.layout-background-slideshow .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.layout-background-slideshow .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-background-slideshow .swiper-slide img,
.layout-background-slideshow .swiper-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.layout-background-slideshow .swiper-pagination {
  bottom: 20px;
  z-index: 10;
}

.layout-background-slideshow .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 4px;
}

.layout-background-slideshow .swiper-pagination-bullet-active {
  background: #fff;
}
