.my-custom-section-widget {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.my-custom-section-widget .full-screen-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  display: flex;
}

.overlay-image {
  position: absolute;
  z-index: 1000;
}
.overlay-image.top-right {
  top: 0;
  right: 0;
}
.overlay-image.left-side {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.four-sections {
  display: flex;
  width: 100%;
  height: 100%; /* Set height to 100% so it uses all available space*/
}

.section {
  width: 25%;
  height: 100vh;
  flex-basis: 100vh; /* Set the height of the sections to be 100vh */
  position: relative;
  overflow: hidden;
}

/* Images fit without stretching */
.section-image {
  position: absolute;
  width: auto;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;

  opacity: 0;
  transition: opacity 2s ease;
}

.four-sections .section .section-image {
  height: 100%;
}

/* First image visible by default */
.section .image1 {
  opacity: 1;
}