* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    margin-left: auto;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    background-image: url('../image/backgroundDive.png');
    background-color: #000;
    background-repeat: repeat-x;
}

h1, h2 {
    text-align:center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    display:none;
}

    .gallery img {
        height: 200px;
        width: auto;
        border-radius: 4px;
        display: block;
    }

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    /*background: rgba(0,0,0,.95);*/
    background-image: url('../image/backgroundDive.png');
    /*background-color: rgba(0,0,0,.95);*/
    background-color: #000;
    background-repeat: repeat-x;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#lightbox-image {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nav-arrow {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100px;
    border: none;
    background: transparent;
    color: white;
    font-size: 60px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
    z-index: 10000;
}

#lightbox:hover .nav-arrow {
    opacity: 1;
}

#prev-image {
    left: 0;
}

#next-image {
    right: 0;
}

    #prev-image::before,
    #next-image::before {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

#prev-image::before {
    content: "‹";
    left: 30px;
}

#next-image::before {
    content: "›";
    right: 30px;
}

#close-lightbox {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: white;
    font-size: 36px;
    line-height: 50px;
    cursor: pointer;
    z-index: 10001;
    transition: background .2s;
}

    #close-lightbox:hover {
        background: rgba(255,255,255,.30);
    }

#info-button {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    transition: background .2s;
}

    #info-button:hover {
        background: rgba(255,255,255,.30);
    }

#info-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: rgba(20,20,20,.95);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    transition: right .25s ease;
    z-index: 10000;
    overflow-y: auto;
}

    #info-panel.open {
        right: 0;
    }

#slideshow-button {
    position: fixed;
    top: 140px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}

#image-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(0,0,0,.5);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

@media (max-width: 768px) {

    #close-lightbox {
        top: 15px;
        right: 15px;
    }

    #info-button {
        top: 15px;
        right: 75px;
    }

    #slideshow-button {
        top: 15px;
        right: 135px;
    }
}