/* ==================================================
   BHC Clubhaus – Digitaler Schaukasten
   ================================================== */

* {
    box-sizing: border-box;
}

::-webkit-scrollbar { width: 0px; }

body {
    margin: 8px;
    padding: 8px;
    overflow:hidden;
}

@media (display-mode: standalone) {
	body {
	    margin: 0 !important;
	    padding: 0 !important;
	}
}

/* ==================================================
   Galerie
   ================================================== */

.schaukasten {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}

@media (max-width: 992px) {
    .schaukasten {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .schaukasten {
        grid-template-columns: 1fr;
    }
}


/* ==================================================
   Bilder
   ================================================== */

.schaukasten img {

    display: block;

    width: 100%;
    height: auto;

    border-radius: 8px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* ==================================================
   Hover
   ================================================== */

.schaukasten img:hover {

    transform: scale(1.02);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.18);
}


/* ==================================================
   Keine Bilder
   ================================================== */

.no-images {

    padding: 30px;

    text-align: center;

    opacity: 0.7;
}

/* ==================================================
   Bild-Viewer
   ================================================== */

.image-modal {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.88);
}


/* geöffnet */

.image-modal.open {

    display: flex;
}


/* ==================================================
   Bild
   ================================================== */

.image-modal-content {

    display: flex;

    align-items: center;
    justify-content: center;

    width: calc(100vw - 140px);
    height: calc(100vh - 60px);
}


.image-modal-content img {

    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 4px;
}


/* ==================================================
   Schließen
   ================================================== */

.image-modal-close {

    position: absolute;

    top: 15px;
    right: 20px;

    z-index: 2;

    width: 44px;
    height: 44px;

    border: 0;

    background: transparent;

    color: white;

    font-size: 40px;
    line-height: 1;

    cursor: pointer;
}


/* ==================================================
   Navigation
   ================================================== */

.image-modal-nav {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    width: 50px;
    height: 70px;

    border: 0;

    background: rgba(0, 0, 0, 0.35);

    color: white;

    font-size: 50px;
    line-height: 1;

    cursor: pointer;

    border-radius: 6px;
}


.image-modal-nav:hover {

    background: rgba(0, 0, 0, 0.6);
}


.image-modal-prev {

    left: 20px;
}


.image-modal-next {

    right: 20px;
}


/* ==================================================
   Mobile
   ================================================== */

@media (max-width: 600px) {

    .image-modal-content {

        width: calc(100vw - 80px);
        height: calc(100vh - 40px);
    }

    .image-modal-nav {

        width: 38px;
        height: 56px;

        font-size: 40px;
    }

    .image-modal-prev {

        left: 8px;
    }

    .image-modal-next {

        right: 8px;
    }

    .image-modal-close {

        top: 8px;
        right: 8px;
    }

}