/*--------------------------------------------------------------
# Gallery
--------------------------------------------------------------*/
/* === Grid-Galerie Layout === */
.grid-wrapper {
        display: grid;
        /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 8px;
        grid-auto-rows: 200px;
        grid-auto-flow: dense;
    }

    .grid-wrapper > div {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: grab;
        border: 1px solid #ccc;
        background: #f0f0f0;
        border-radius: 0px;
        overflow: hidden;
    }

    .grid-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        user-select: none;
        border-radius: 0px !important;
    }

    .grid-wrapper a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .wide { grid-column: span 2; }
    .tall { grid-row: span 2; }
    .big  { grid-column: span 2; grid-row: span 2; }

    #lightboxModal .modal-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
    }

    #lightboxModal .modal-content {
        height: 100vh;
        background-color: transparent;
        border: none;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #lightboxModal .modal-body {
        width: 100vw;
        height: 100vh;
        padding: 0;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    #lightboxImage {
        max-width: 95vw;
        max-height: 95vh;
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    #lightboxImage.animate-in {
        transform: translateX(100%);
        opacity: 0;
    }

    #prevBtn, #nextBtn {
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        color: white;
    }

    #prevBtn {
        left: 1rem;
    }
    #nextBtn {
        right: 1rem;
    }

    #prevBtn i, #nextBtn i {
        font-size: 3rem;
    }

    .btn-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 30;
        filter: invert(1) grayscale(100%) brightness(200%);
    }

    .portfolio-item {
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: none;
    }

    .portfolio-item.show {
        display: block !important;
        opacity: 1;
        transform: translateX(0);
    }


.btn-outline-primary:hover,
.btn-outline-primary:hover a {
    color: #fff !important;
    
    
}

.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-outline-primary.active:hover,
.btn-outline-primary:active:hover,
.btn-outline-primary.active a,
.btn-outline-primary:active a,
.btn-outline-primary.active:hover a,
.btn-outline-primary:active:hover a {
    color: #fff !important;
    
    
}
