/*CSS styles for moving slider*/
.is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
}

.slideshow-container .wp-block-cover__inner-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Container styles */
.scrolling-text-container {
  overflow: hidden;
  background-color: transparent;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 20px 0;
}

/* Inner container styles */
.scrolling-text-inner {
  display: flex;
  white-space: nowrap;
  font-style: serif;
  font-size: 40px;
  font-weight: 600;
  padding-top: 0%;
  padding-bottom: 0%;
  animation: scroll-loop var(--marquee-speed) linear infinite;
  width: fit-content;
}

/* Scrolling track wrapper */
.scrolling-track {
  display: flex;
  flex-shrink: 0;
}

/*Margin and handling of size on text and IMG item*/
.scrolling-text-item,
.scrolling-image-item {
  flex-shrink: 0;
  margin-right: 40px;
  margin-left: 40px;
}

/* Position of text item*/
.scrolling-text-item {
  display: flex;
  align-items: center;
}

/* IMG styles */
.scrolling-image-item img {
  width: 100% !important;
  max-width: 15vw;
  width: 15vw;
  height: 100% !important;
  object-fit: contain;
  transition: all 0.3s ease;
  background: transparent;
  mix-blend-mode: multiply;
  border-radius: 8px;
}

/* Hover effect on images */
.scrolling-image-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Image item container - centered with name below */
.scrolling-image-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 18vh;
  min-width: 18vw;
  background-color: white;
  box-shadow: 1px 1px 10px 0px #00000040;
  border-radius: 16px;
}

/* Name label under logo */
.scrolling-image-name {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

/* Hover effect on name */
.scrolling-image-item:hover .scrolling-image-name {
  opacity: 1;
  color: #000;
}

/* Text styles */
.scrolling-text {
  display: flex;
}

/* Reversed animation - scrolls the other direction */
.scrolling-text-inner.reversed {
  animation: scroll-loop-reversed var(--marquee-speed) linear infinite;
}

@keyframes scroll-loop-reversed {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/*Styles of overlay*/
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 90%;
  pointer-events: none;
  z-index: 1000;
}

/* Pause the animation when a user hovers over it */
.scrolling-text-container:hover .scrolling-text-inner {
  animation-play-state: paused;
}

/* Setting the Animation using Keyframes - FIXED VERSION */
@keyframes scroll-loop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scrolling-image-item img {
    max-width: 80px;
    max-height: 40px !important;
  }

  .scrolling-image-name {
    font-size: 11px;
  }

  .scrolling-text-item,
  .scrolling-image-item {
    margin-right: 25px;
    margin-left: 25px;
    max-height: 60px;
  }
}
