/* ============================================================
   Madgi Projects Slider — Frontend + VB Styles
   Full-screen fade slider of project featured images. The same
   __slide / __img classes are used by the VB preview.
   ============================================================ */

.madgi-projects-slider__inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.madgi-projects-slider__slide {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 480px;
    overflow: hidden;
    background: #1a1a1a;
}

/* Logged-in admin bar: keep the slide within the visible viewport */
.admin-bar .madgi-projects-slider__slide {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}

@media screen and ( max-width: 782px ) {
    .admin-bar .madgi-projects-slider__slide {
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

.madgi-projects-slider__link {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-user-drag: none;
}

.madgi-projects-slider__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    -webkit-user-drag: none;
}

/* ============================================================
   Dot navigation — the shared Instagram-style dots
   (assets/css/carousel-dots.css), overlaid on the image and
   recoloured to read against photography
   ============================================================ */

.madgi-projects-slider .madgi-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    z-index: 2;
    margin: 0;
    pointer-events: none;
}

.madgi-projects-slider .madgi-carousel-dots__dot {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.madgi-projects-slider .madgi-carousel-dots__dot.is-active {
    background: #fff;
}

.madgi-projects-slider .madgi-carousel-dots__dot:focus-visible {
    outline-color: #fff;
}

/* ============================================================
   VB Canvas — slide notices (no project / no featured image)
   ============================================================ */

.madgi-projects-slider__notice {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: #bbb;
}
