/* =========================================
   K6 GALLERY
========================================= */

.k6-gallery-section {
    padding: 70px 20px;
    background: #ffffff;
}

.k6-gallery-heading {
    max-width: 1180px;
    margin: 0 auto 32px;
    text-align: center;
}

.k6-gallery-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 38px;
    line-height: 1.2;
}


/* =========================================
   MASONRY FOTOGALERIJ
========================================= */

.k6-gallery-grid {
    max-width: 1180px;
    margin: 0 auto;

    columns: 3 260px;
    column-gap: 18px;
}

.k6-gallery-item {
    display: block;
    width: 100%;

    margin: 0 0 18px;
    padding: 0;

    border: 0;
    background: transparent;

    border-radius: 6px;
    overflow: hidden;

    cursor: zoom-in;

    break-inside: avoid;
}

.k6-gallery-image {
    display: block;
    width: 100%;
    height: auto;

    transition: transform 0.25s ease;
}

.k6-gallery-item:hover .k6-gallery-image {
    transform: scale(1.035);
}

.k6-gallery-item:focus-visible {
    outline: 3px solid #1769aa;
    outline-offset: 3px;
}


/* =========================================
   VERGROTE FOTO
========================================= */

.k6-gallery-lightbox[hidden] {
    display: none !important;
}

.k6-gallery-lightbox {
    position: fixed;
    inset: 0;

    z-index: 999999;

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

    gap: 18px;
    padding: 70px 24px 30px;

    background: rgba(10, 15, 25, 0.92);
}

.k6-gallery-lightbox-image {
    display: block;

    max-width: min(1100px, 80vw);
    max-height: 82vh;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* KNOPPEN */

.k6-gallery-close,
.k6-gallery-prev,
.k6-gallery-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;
    min-height: 44px;

    border: 0;
    border-radius: 50%;

    background: #1769aa;
    color: #ffffff;

    font-size: 26px;

    cursor: pointer;
}

.k6-gallery-close {
    position: absolute;
    top: 18px;
    right: 22px;

    font-size: 34px;
}

.k6-gallery-prev,
.k6-gallery-next {
    flex: 0 0 44px;
}


/* =========================================
   MOBIEL
========================================= */

@media (max-width: 700px) {

    .k6-gallery-section {
        padding: 50px 15px;
    }

    .k6-gallery-heading h2 {
        font-size: 30px;
    }

    .k6-gallery-grid {
        columns: 2 140px;
        column-gap: 10px;
    }

    .k6-gallery-item {
        margin-bottom: 10px;
    }

    .k6-gallery-lightbox {
        gap: 8px;
        padding: 65px 10px 20px;
    }

    .k6-gallery-lightbox-image {
        max-width: calc(100vw - 120px);
        max-height: 75vh;
    }

    .k6-gallery-prev,
    .k6-gallery-next {
        min-width: 38px;
        min-height: 38px;
        flex-basis: 38px;
        font-size: 20px;
    }
}