.timeless-slideshow {
  position: relative;
  width: 100%;
  margin: 2em auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.timeless-slide-wrapper {
  position: relative;
  width: 100%;
  height: 100%; /* fixed by inline style from shortcode */
  overflow: hidden;
}

.timeless-slide {
  width: 100%;
  height: 100%;       /* fill the container */
  object-fit: cover;  /* ensures no black bars, crops edges if needed */
  display: none;
  background: #000;
}

.timeless-slide.active {
  display: block;
}

.timeless-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  color: #222;
  font-size: 2.5em;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  transition: background 0.2s;
  opacity: 0.85;
}

.timeless-arrow.left { left: 18px; }
.timeless-arrow.right { right: 18px; }
.timeless-arrow:hover { background: #005be0; color: #fff; }

.timeless-preview-container {
  position: absolute;
  left: 0; right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

.timeless-preview {
  background: rgba(30, 30, 30, 0.85);
  border-radius: 18px;
  padding: 7px 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  display: flex;
  gap: 10px;
  max-width: 440px;
  overflow-x: auto;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.28s;
}

.timeless-slideshow:hover .timeless-preview {
  opacity: 1;
}

.timeless-thumb {
  width: 52px;
  height: 38px;
  object-fit: cover;
  opacity: 0.62;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: opacity 0.2s, border 0.2s;
  pointer-events: auto;
}

.timeless-thumb.active,
.timeless-thumb:hover {
  opacity: 1;
  border: 2px solid #005be0;
}

.timeless-preview {
  opacity: 0;
  visibility: hidden;
}

.timeless-slideshow:hover .timeless-preview {
  opacity: 1;
  visibility: visible;
}

/* Responsive fallback */
@media (max-width: 700px) {
  .timeless-slide-wrapper { height: 240px !important; }
  .timeless-preview { max-width: 260px; }
}
