/* Food Story — mod_st_slider */
.st-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  overflow: hidden;
}

.sequence {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
}

.sequence-canvas {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
}

.sequence-canvas > li {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

/* Show first slide, or animated-in slide */
.sequence-canvas > li.animate-in,
.sequence-canvas > li.current {
  opacity: 1;
  z-index: 2;
}

.slide-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  overflow: hidden;
}

.slide-image.fade { opacity: 1; }

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

.slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.text-block {
  position: absolute;
  bottom: 12%;
  left: 6%;
  z-index: 5;
  max-width: 560px;
}

.text-block.fade { opacity: 1; }

.title-block { margin-bottom: 8px; }

.slide-title {
  font-size: 40px;
  font-weight: 300;
  color: #fff;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.slide-title a {
  color: #fff;
  text-decoration: none;
}

.slide-title a:hover { text-decoration: underline; }

.subtitle-block { margin-top: 8px; }

.slide-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Preloader */
.sequence-preloader {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.sequence-preloader.sequence-preloader-complete {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: st-spin 0.7s linear infinite;
}

@keyframes st-spin { to { transform: rotate(360deg); } }

/* Progress indicator */
.st-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,0.15);
  z-index: 10;
  overflow: hidden;
}

.st-progress::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: rgba(255,255,255,0.6);
}

/* Animations */
.st-animate { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in .st-animate { opacity: 1; transform: translateY(0); }
.short-delay { transition-delay: 0.2s; }
.medium-delay { transition-delay: 0.4s; }
