/* Tile Slider Container */
.lm-tile-slider {
  position: relative;
  width: 100%;
  height: 350px;       
  overflow: hidden;
  background-color: #f8f8f8;
  transform: translateZ(0);
  touch-action: pan-y;
  
  /* Ensure arrows can be positioned relative to this */
  display: flex;
  align-items: center;
}

/* The Scrolling Track */
.lm-tile-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  
  /* Dynamic width */
  width: max-content;
  
  /* Pure JS control */
  animation: none !important;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Images inside the track */
.lm-tile-img {
  display: block;
  height: 350px !important; 
  width: auto !important; 
  flex: 0 0 auto !important;
  object-fit: contain !important; 
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background-color: #fff; 
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Arrows - Hidden by default (Desktop) */
.lm-slider-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lm-slider-prev { left: 10px; }
.lm-slider-next { right: 10px; }

@media (max-width: 768px) {
  .lm-tile-slider { 
      height: 250px; 
  }
  .lm-tile-img {
      height: 250px !important;
      
      /* On mobile, let's snap to full width or close to it? 
         User said "scroll through each image".
         If images are mixed aspect ratios, 'auto' width is best.
      */
  }
  
  /* On mobile, disable the JS transform style if we want native scrolling?
     But we are using custom buttons.
     Let's keep the track structure but use JS to move it.
  */
  
  /* Show arrows on mobile */
  .lm-slider-arrow {
    display: flex;
  }
}
