.bas-wrapper {
  position: relative;
  height: calc(60vh + 2px);
  overflow: hidden;
  user-select: none;
}

.bas-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bas-before,
.bas-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

}

.bas-before {
  z-index: 2;
  overflow: hidden;
}

.bas-after {
  z-index: 1;
}

.bas-before img {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Slider handle button */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 
      0 0 5px rgba(255, 255, 255, 0.5), 
      0 0 10px rgba(255, 255, 255, 0.4), 
      0 0 15px rgba(255, 255, 255, 0.3), 
      0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 0 10px rgba(255, 255, 255, 0.9), 
      0 0 20px rgba(255, 255, 255, 0.8), 
      0 0 30px rgba(255, 255, 255, 0.7), 
      0 0 40px rgba(255, 255, 255, 0.6);
  }
}

/* Slider line */
.bas-divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 24px; /* Total height now includes red + white + red */
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: row-resize;
  background: transparent; /* Clear background, we'll layer the white part */
}

.bas-divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px; /* This stays aligned to the image seam */
  background: white;
  z-index: 3;
  cursor: row-resize;
}

.bas-divider::before,
.bas-divider::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 70px;
  background: transparent;
  z-index: -1; /* behind the white divider */
}

.bas-divider::before {
  top: -10px; /* Red bar above */
}

.bas-divider::after {
  bottom: -10px; /* Red bar below */
}

/* White center bar */
.bas-divider-inner {
  height: 4px;
  width: 100%;
  background: white;
  position: relative;
  z-index: 1;
}

/* Optional: move your glowing diamond inside this */
.bas-divider-inner::before {
  content: "";
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
  animation: glow-pulse 5s infinite ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}



.bas-before {
  overflow: hidden; /* Hide any parts of the image that go outside the container */
  position: relative; /* Ensure the container positions elements correctly */
}

.bas-before img {
box-sizing: border-box;
  height: calc(60vh + 2px)!important; /* Keep the height consistent */
  width: 100%; /* Maintain width consistency */
  border: none;
  min-height: 0px;
  max-width: 100%;
  vertical-align: bottom;
  transform: scale(1); /* Default scale */
  transform-origin: center 25%; /* Center the zoom effect */
  transition: transform 5s ease-out; /* Smooth transition for the zoom effect */
	object-fit: cover; /* Ensure the image fills the container without distortion */
	  object-position: center center; /* Keep the image centered in the container */  
}

@media (orientation: portrait) {
  .waymark-map {
    height: 30vh !important;
  }

  .wp-block-post-featured-image img {
    height: calc(30vh + 2px) !important;
  }

  .bas-before img {
    height: calc(30vh + 2px) !important;
  }

  .bas-wrapper {
    height: calc(30vh + 2px);
  }
}