/* =========================================================
 * EesyTrip
 * lightbox.css
 * ========================================================= */

/* ---------------------------------------------------------
 * Lightbox
 * --------------------------------------------------------- */

#lightbox-gallery {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
}

.lightbox-content {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
 * Bild
 * --------------------------------------------------------- */

#lightbox-image {

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 0 40px rgba(0,0,0,.7);
}


/* ---------------------------------------------------------
 * Navigation
 * --------------------------------------------------------- */

.lightbox-prev,
.lightbox-next {

    position: absolute;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;

    color: white;
    font-size: 42px;

    cursor: pointer;
    user-select: none;

    border-radius: 50%;

    transition:
        background-color .2s,
        transform .15s;
}

.lightbox-prev {

    left: 20px;
}

.lightbox-next {

    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {

    background: rgba(255,255,255,.15);

    transform: scale(1.08);
}


/* ---------------------------------------------------------
 * Aktionen
 * --------------------------------------------------------- */

.lightbox-close,
.lightbox-delete {

    position: absolute;
    top: 16px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 50%;

    background: transparent;

    color: white;

    cursor: pointer;

    transition:
        background-color .2s,
        transform .15s;
}

.lightbox-close {

    right: 16px;
}

.lightbox-delete {

    left: 16px;
}

.lightbox-close:hover {

    background: rgba(255,255,255,.15);

    transform: scale(1.08);
}

.lightbox-delete:hover {

    background: var(--danger-color);

    transform: scale(1.08);
}

.lightbox-close svg,
.lightbox-delete svg {

    width: 22px;
    height: 22px;
}