
/* =========================================
   NOOR UNITY GALLERY
   Minimal • Masonry • No Cards • No Captions
========================================= */

.noor-unity-gallery {
    padding: 38px 0 44px;
    background: #080e19;
    color: #f5f7fb;
    overflow: hidden;
}

.noor-unity-gallery-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.noor-unity-gallery-head span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #9eafc5;
}

.noor-unity-gallery-head h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
}

/* Free-flow masonry layout */
.noor-unity-masonry {
    columns: 4;
    column-gap: 8px;
}

.noor-unity-image {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    cursor: zoom-in;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    outline-offset: 3px;
}

.noor-unity-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

/* Subtle image interaction — no card styling */
.noor-unity-image:hover img {
    transform: scale(1.035);
    filter: brightness(1.06);
}

.noor-unity-image:focus-visible {
    outline: 2px solid #78c9ff;
}

/* Lightbox */
.noor-unity-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 55px 65px;
    background: rgba(2, 5, 12, .96);
}

.noor-unity-lightbox.is-open {
    display: flex;
}

.noor-unity-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 100px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}

.noor-unity-lightbox button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.noor-unity-lightbox button:hover {
    background: rgba(255,255,255,.2);
}

.noor-unity-close {
    top: 18px;
    right: 20px;
    font-size: 30px !important;
}

.noor-unity-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.noor-unity-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.noor-unity-count {
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    color: #c9d3e1;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Tablet */
@media (max-width: 991.98px) {
    .noor-unity-gallery {
        padding: 32px 0 36px;
    }

    .noor-unity-masonry {
        columns: 3;
        column-gap: 7px;
    }

    .noor-unity-image {
        margin-bottom: 7px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .noor-unity-gallery {
        padding: 26px 0 30px;
    }

    .noor-unity-gallery-head {
        display: block;
        margin-bottom: 15px;
    }

    .noor-unity-gallery-head span {
        display: block;
        margin-bottom: 6px;
        font-size: 9px;
    }

    .noor-unity-gallery-head h2 {
        font-size: 23px;
    }

    .noor-unity-masonry {
        columns: 2;
        column-gap: 6px;
    }

    .noor-unity-image {
        margin-bottom: 6px;
    }

    .noor-unity-lightbox {
        padding: 48px 12px;
    }

    .noor-unity-lightbox img {
        max-height: calc(100vh - 100px);
    }

    .noor-unity-lightbox button {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .noor-unity-prev {
        left: 8px;
    }

    .noor-unity-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .noor-unity-gallery *,
    .noor-unity-lightbox * {
        transition: none !important;
    }
}
