

#slider-top {
	display: flex;
	justify-content: center;
	/*max-width: 512px;*/
	/*max-width: 200px;*/
  /*margin-bottom: 80px;*/

    /*border: 2px solid red;*/
    box-sizing: border-box;
}
.slider {
  margin: 0;
  padding: 0;

	position: relative;
	/*min-width: 512px;*/
	/*width: 512px;*/   /* Adjust to your desired size */
	height: auto;  /* Adjust to your desired size */
  width: 100%;
	overflow: hidden;
	/*border-radius: 12px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
	background: #000;*/

    /* PC */
    /*border: 1px solid lime;*/
    box-sizing: border-box;
    width: 100%;
}

.slides {
  margin: 0;
  padding: 0;

	display: flex;
	/*width: 100%;
	height: 100%;*/
	transition: transform 0.8s ease-in-out; /* slide duration */

  width: max-content;
  will-change: transform;

  /*border: 4px dashed cyan;*/
  box-sizing: border-box;

  /*border: 2px solid magenta;*/
  /*box-sizing: border-box;*/
  /*justify-content: center;*/
    /*align-items: flex-end;
    align-items: center;*/
}

.slide {
	/*min-width: 512px;
	height: 512px;*/

	display: flex;
	margin: 0;
	padding: 0;
	flex-shrink: 0;

  flex: 0 0 100vw;

	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;

    /*border: 4px dashed magenta;*/
    box-sizing: border-box;

    /*width: 100vw;
    height: 512px;*/

    /* Must be vw not % to track true window width ignoring scrollbars */
    width: 100vw;
    /*width: 100%;*/
    height: 512px;

  /*border: 2px solid cyan;*/
  box-sizing: border-box;

    align-items: center;
    align-items: flex-end;


    /* iphone */
    margin: auto;
    /*height: 368px;*/
    overflow: hidden;
}

.slide img {
	/*display: none;*/
	display: block;
  margin-left: auto;
  margin-right: auto;

  /*width: auto;
  height: 100%;*/

  /*width: 1080px;
  height: auto;*/
  width: auto;
  max-height: 512px;

  /*border: 2px solid red;*/
  box-sizing: border-box;

  /*border: 2px solid black;*/
  /* iphone */
  /*object-fit: cover;*/
}

/* Optional: simple overlay for caption / indicator */
.slider-caption {
	display: none;
	position: absolute;
	left: 16px;
	bottom: 12px;
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 14px;
	border-radius: 6px;
}


.floater-container {
  position: relative;       /* anchor for the absolute floater */
  /*margin: 40px 0;*/
  /*overflow: hidden;*/
  /*padding: 24px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f8f8f8;*/
  /*
  max-width: 512px;
  */
    width: 100%;
  margin-bottom: 2em;
  /*height: 113px;
  */
}
.floater-lane {
  top: -60px;
	position: absolute;
	height: 113px;
	width: 100%;
	overflow: hidden;
}

.floater-container p {
  margin-bottom: 0;
}

/* === The floating image === */
.floater {
  position: absolute;
  left: 100%;               /* start off to the right of the container */
  width: 87px;             /* adjust image size as needed */
  height: 113px;
  opacity: 1;
  pointer-events: none;     /* do not block interaction with underlying content */
  z-index: 2;

  --scale: 1;

  animation: float-across calc(18s * var(--scale)) linear infinite,
             float-fade calc(18s * var(--scale)) linear infinite;
  /* 20s = one full cycle. Change to speed up/slow down overall behavior. */
}
.walk-anim {
  /*width: 100%;
  height: auto;*/

  transform-origin: 50% 90%;  /* bottom center pivot point */

  animation: walk-swing 0.9s ease-in-out infinite alternate;
  /* adjust speed for more/less vigorous movement */
}

.floater img {
  width: 100%;
  height: auto;
  display: block;
}

/* Keyframes:
   - 0–10%: off-screen right, invisible (wait)
   - 10–20%: fade in at right edge
   - 20–80%: move left across container
   - 80–90%: fade out at left edge
   - 90–100%: invisible, waiting to restart
*/
@keyframes float-across {
  0% {
    left: 100%;
  }
  100% {
    left: -20%;
  }
}
@keyframes float-fade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
 
}
@keyframes walk-swing {
      0% {
        transform: rotate(-3deg);
      }
      100% {
        transform: rotate(3deg);
      }
    }
