.slider {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
}

/* Image Styling - always fill & crop like background-size: cover */
.slider .slides .slide > img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  min-height: 0;
  -o-object-fit: cover;
     object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 5s ease-in-out;
}

.slide.active img {
  transform: scale(1.1);
}

/* Overlay styles - configurable per slider in the metabox.
   --sw-ov holds "r,g,b" of the chosen color (defaults to black). */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--sw-ov, 0, 0, 0), 0.88) 0%, rgba(var(--sw-ov, 0, 0, 0), 0.55) 40%, rgba(var(--sw-ov, 0, 0, 0), 0.25) 100%);
  z-index: 1;
}

.sw-overlay-solid .slide::before {
  background: rgba(var(--sw-ov, 0, 0, 0), 0.55);
}

.sw-overlay-soft .slide::before {
  background: rgba(var(--sw-ov, 0, 0, 0), 0.3);
}

.sw-overlay-none .slide::before {
  display: none;
}

/* Slide Content - static overlay pinned to the bottom of the slider */
.slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8vh;
  z-index: 2;
  color: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
}

/* Text alignment options ("justify items") chosen in the slider metabox */
.sw-align-left {
  text-align: left;
}
.sw-align-left .slide-buttons {
  justify-content: flex-start;
}

.sw-align-center {
  text-align: center;
}
.sw-align-center .slide-buttons {
  justify-content: center;
}

.sw-align-right {
  text-align: right;
}
.sw-align-right .slide-buttons {
  justify-content: flex-end;
}

.sw-align-justify {
  text-align: justify;
}
.sw-align-justify .slide-buttons {
  justify-content: space-between;
}

.slide-title {
  font-size: 6vh;
  color: white;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: bold;
  letter-spacing: normal;
  -webkit-hyphens: auto;
          hyphens: auto;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.slide-text {
  font-size: 1.2rem;
  margin: 10px 0;
  -webkit-hyphens: auto;
          hyphens: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* Full post content below the title */
.slide-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin: 10px 0 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.slide-desc p {
  margin: 0 0 8px;
}

.slide-desc p:last-child {
  margin-bottom: 0;
}

.slide-desc img {
  max-width: 100%;
  height: auto;
}

/* Dots Navigation */
.dots-container {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.dots-container span {
  display: none;
}

.dots-container span:nth-child(-n+4) {
  display: inline-block;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background-color: white;
  transform: scale(1.5);
}

/* Slide Buttons */
.slide-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.slide-button {
  padding: 12px 24px;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s, transform 0.2s;
}

.slide-button:hover {
  background: white;
  color: black;
  transform: scale(1.05);
}

.slide-button.secondary {
  background: transparent;
}

.slide-button.secondary:hover {
  background: white;
  color: black;
}

/* Social Media Icons */
.social-media-icons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.social-icon:hover {
  background: white;
  color: black;
  transform: scale(1.1);
}