/* 08-ma-20-image-slider.css
   ============================================================
   Site-specific lightSlider styling, extracted as-is from the Campo Rasa
   "Seilbahnerneuerung" page. The base plugin CSS is vendor/lightslider.min.css;
   this file holds the project's customisations (slide height, custom arrows,
   the white heading band). Scoped under .image-slider so it stays contained.
   ============================================================ */

/* ---- slides ---- */
.image-slider .lightSlider > li {
    width: 480px;        /* fixed frame → uniform slides + a peek of the next photo */
    max-width: 80vw;     /* shrink on narrow screens */
    height: 370px;
    overflow: hidden;
    position: relative;
}
.image-slider .lightSlider > li img {
    transition: transform .5s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* fill the frame uniformly, cropping as needed */
    display: block;
}
.image-slider .lightSlider > li:hover img {
    transform: scale(1.05);
}

/* the slide link fills the whole frame */
.image-slider .lightSlider > li > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* caption = a layer pinned over the bottom of the photo (every slide) */
.image-slider .slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px 16px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    z-index: 3;
    pointer-events: none;   /* clicks pass through to the photo (opens lightbox) */
}

/* ---- custom prev / next arrows (fed in via prevHtml/nextHtml) ---- */
.image-slider .slider-prev,
.image-slider .slider-next {
    display: block;
    width: 34px;
    height: 58px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 58px;
    font-size: 34px;
    background: rgba(0, 0, 0, 0.4);
    transition: background-color 0.5s, width 0.5s;
}
.image-slider .lSAction > .lSPrev { left: 0 !important; }
.image-slider .lSAction > .lSNext { right: 0 !important; }

/* Neutralise the canonical controls.png sprite so our custom spans show. */
.image-slider .lSAction > a {
    width: 34px;
    height: 58px;
    margin-top: -29px;
    background-image: none;
}

/* Preview "eye" icon — the original slider-preview PNGs, bundled in icons/.
   Shown at 42px, growing to 50px on hover (as on the source page). */
.image-slider .lightSlider span.slider-icon {
    position: absolute;
    top: 20px;
    left: calc(50% - 25px);
    display: block;
    width: 50px;
    height: 50px;
    z-index: 2;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url("icons/slider-preview-1.png");
    background-size: 42px 42px;
}
.image-slider .lightSlider > li:hover span.slider-icon {
    background-image: url("icons/slider-preview-2.png");
    background-size: 50px 50px;
}

/* ---- white heading band above the slider ---- */
.image-slider .dce-slider-top,
.image-slider .dce-slider-bottom {
    max-width: 800px;
    min-height: 60px;
    background-color: #fff;
    margin: 0 auto;
    padding: 30px 70px;
}
.image-slider .dce-slider-top header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
