/* =========================================================
   Restaurant-Bildergalerie
   ========================================================= */

.rb-restaurant-gallery {
    margin-top: 48px;
}

.rb-restaurant-gallery h2 {
    margin: 0 0 20px;

    font-size: 1.65rem;
    line-height: 1.2;
}

/* Raster */

.rb-gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* Einzelnes Bild */

.rb-gallery-item {
    margin: 0;
}


/* Bildrahmen */

.rb-gallery-item a {
    display: block;

    overflow: hidden;

    border: 1px solid #444444;

    border-radius: 6px;

    background: #111111;
}


/* Bild */

.rb-gallery-item img {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* Hover */

.rb-gallery-item a:hover img {
    transform: scale(1.03);

    opacity: 0.9;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.rb-lightbox {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.94);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    z-index: 999999;
}


/* geöffnet */

.rb-lightbox.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* Bildbereich */

.rb-lightbox-content {
    position: relative;

    max-width: 90vw;
    max-height: 90vh;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* Bild */

#rb-lightbox-image {
    display: block;

    max-width: 90vw;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border: 1px solid #444;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6);
}


/* Schließen */

.rb-lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #ffffff;

    font-size: 38px;

    line-height: 1;

    cursor: pointer;

    z-index: 2;
}


/* Pfeile */

.rb-lightbox-prev,
.rb-lightbox-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 50px;
    height: 70px;

    padding: 0;

    border: 0;

    background: rgba(0, 0, 0, 0.5);

    color: #ffffff;

    font-size: 45px;

    line-height: 1;

    cursor: pointer;

    z-index: 2;

    transition:
        background 0.2s ease;
}


.rb-lightbox-prev:hover,
.rb-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.15);
}


.rb-lightbox-prev {
    left: 20px;
}


.rb-lightbox-next {
    right: 20px;
}


/* ---------------------------------------------------------
   Während Lightbox geöffnet ist: Seite nicht scrollen
   --------------------------------------------------------- */

body.rb-lightbox-open {
    overflow: hidden;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .rb-lightbox {
        padding: 15px;
    }


    #rb-lightbox-image {
        max-width: 94vw;
        max-height: 80vh;
    }


    .rb-lightbox-prev,
    .rb-lightbox-next {
        width: 40px;
        height: 55px;

        font-size: 35px;
    }


    .rb-lightbox-prev {
        left: 5px;
    }


    .rb-lightbox-next {
        right: 5px;
    }


    .rb-lightbox-close {
        top: 8px;
        right: 10px;
    }

}
