/* =========================================================
   BLOOD NETWORK PAKISTAN
   GALLERY PAGE
   PART 1
========================================================= */

:root {
    --gallery-red: #e52030;
    --gallery-red-dark: #9d0b1d;
    --gallery-green: #2f8f5b;
    --gallery-green-dark: #1d6840;
    --gallery-dark: #171b22;
    --gallery-dark-soft: #222833;
    --gallery-text: #252b34;
    --gallery-muted: #69717c;
    --gallery-soft: #f5f7fa;
    --gallery-border: #e4e8ed;
    --gallery-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body.gallery-modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
button:focus,
a:focus {
    outline: none;
}

/* =========================================================
   SHARED TYPOGRAPHY
========================================================= */

.bnp-section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gallery-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bnp-gallery-heading-row h2 {
    margin: 0;
    color: var(--gallery-text);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.7px;
}

.bnp-gallery-heading-row h2 span {
    display: block;
    color: var(--gallery-red);
}

/* =========================================================
   HERO
========================================================= */

.bnp-gallery-hero {
    position: relative;
    min-height: 670px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            #14181f 0%,
            #28131b 48%,
            #143727 100%
        );
}

.bnp-gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(229, 32, 48, 0.08),
            transparent 42%,
            rgba(47, 143, 91, 0.09)
        );
}

.bnp-gallery-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px
        );
    background-size: 58px 58px;
}

.bnp-gallery-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.bnp-gallery-glow.glow-red {
    top: -170px;
    left: -140px;
    width: 430px;
    height: 430px;
    background: rgba(229, 32, 48, 0.13);
}

.bnp-gallery-glow.glow-green {
    right: -150px;
    bottom: -170px;
    width: 430px;
    height: 430px;
    background: rgba(47, 143, 91, 0.15);
}

.bnp-gallery-hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.bnp-gallery-hero-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(410px, 0.98fr);
    align-items: center;
    gap: 68px;
    padding: 84px 0 100px;
}

.bnp-gallery-hero-content {
    max-width: 720px;
}

.bnp-gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 16px;
    border: 1px solid rgba(102, 211, 145, 0.25);
    border-radius: 30px;
    color: #cdf4dc;
    background: rgba(47, 143, 91, 0.13);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.bnp-gallery-kicker > span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #63cf8b;
    box-shadow: 0 0 0 6px rgba(47, 143, 91, 0.14);
    animation: bnpGalleryPulse 1.8s infinite;
}

@keyframes bnpGalleryPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.bnp-gallery-hero-content h1 {
    margin: 0;
    color: #ffffff;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -1.3px;
}

.bnp-gallery-hero-content h1 span {
    display: block;
    margin-top: 8px;
    color: #64cf8c;
}

.bnp-gallery-hero-content > p {
    max-width: 670px;
    margin: 23px 0 29px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.8;
}

.bnp-gallery-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.bnp-gallery-primary-btn,
.bnp-gallery-secondary-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 21px;
    border-radius: 11px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    transition:
        transform 0.28s ease,
        color 0.28s ease,
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.bnp-gallery-primary-btn {
    background:
        linear-gradient(
            135deg,
            var(--gallery-red),
            var(--gallery-red-dark)
        );
    box-shadow: 0 15px 32px rgba(229, 32, 48, 0.3);
}

.bnp-gallery-primary-btn:hover {
    transform: translateY(-4px);
    color: #ffffff;
    box-shadow: 0 21px 42px rgba(229, 32, 48, 0.4);
}

.bnp-gallery-secondary-btn {
    border: 1px solid rgba(102, 211, 145, 0.28);
    background: rgba(47, 143, 91, 0.13);
}

.bnp-gallery-secondary-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 211, 145, 0.48);
    color: #ffffff;
    background: rgba(47, 143, 91, 0.23);
}

.bnp-gallery-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 27px;
}

.bnp-gallery-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-weight: 700;
}

.bnp-gallery-hero-meta i {
    color: #66d08e;
}

/* =========================================================
   HERO COLLAGE
========================================================= */

.bnp-gallery-hero-collage {
    position: relative;
    min-height: 500px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(145px, 0.75fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 13px;
}

.bnp-gallery-collage-main,
.bnp-gallery-collage-small {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.bnp-gallery-collage-main {
    grid-row: 1 / 3;
    min-height: 500px;
}

.bnp-gallery-collage-small {
    min-height: 240px;
}

.bnp-gallery-collage-main img,
.bnp-gallery-collage-small img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bnp-gallery-collage-main:hover img,
.bnp-gallery-collage-small:hover img {
    transform: scale(1.07);
}

.bnp-gallery-collage-main::after,
.bnp-gallery-collage-small::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bnp-gallery-collage-main::after {
    background:
        linear-gradient(
            to top,
            rgba(10, 13, 17, 0.88),
            rgba(10, 13, 17, 0.08) 58%,
            transparent
        );
}

.bnp-gallery-collage-small::after {
    background:
        linear-gradient(
            to top,
            rgba(10, 13, 17, 0.8),
            transparent 64%
        );
}

.bnp-gallery-collage-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 27px;
}

.bnp-gallery-collage-overlay small,
.bnp-gallery-collage-overlay strong,
.bnp-gallery-collage-overlay span {
    display: block;
}

.bnp-gallery-collage-overlay small {
    margin-bottom: 6px;
    color: #69d393;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.bnp-gallery-collage-overlay strong {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.bnp-gallery-collage-overlay span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.bnp-gallery-collage-small > span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 18px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.bnp-gallery-floating-card {
    position: absolute;
    z-index: 5;
    right: 70px;
    bottom: -25px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 17px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    color: var(--gallery-text);
    background: #ffffff;
    box-shadow: 0 17px 38px rgba(15, 23, 42, 0.18);
}

.bnp-gallery-floating-card > i {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--gallery-red),
            var(--gallery-red-dark)
        );
}

.bnp-gallery-floating-card strong,
.bnp-gallery-floating-card small {
    display: block;
}

.bnp-gallery-floating-card strong {
    margin-bottom: 3px;
    color: var(--gallery-text);
    font-size: 12px;
    font-weight: 800;
}

.bnp-gallery-floating-card small {
    color: #858c95;
    font-size: 10px;
}

/* =========================================================
   GALLERY COLLECTION
========================================================= */

.bnp-gallery-collection {
    position: relative;
    overflow: hidden;
    padding: 95px 0 100px;
    background:
        radial-gradient(
            circle at 10% 12%,
            rgba(47, 143, 91, 0.05),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 90%,
            rgba(229, 32, 48, 0.04),
            transparent 28%
        ),
        var(--gallery-soft);
}

.bnp-gallery-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 32px;
}

.bnp-gallery-heading-row > div {
    max-width: 680px;
}

.bnp-gallery-heading-row > p {
    max-width: 430px;
    margin: 0;
    color: var(--gallery-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   FILTER TOOLBAR
========================================================= */

.bnp-gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 15px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 17px;
    background: #ffffff;
    box-shadow:
        0 16px 38px rgba(15, 23, 42, 0.07),
        0 5px 14px rgba(15, 23, 42, 0.025);
}

.bnp-gallery-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.bnp-gallery-filters button {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--gallery-border);
    border-radius: 22px;
    color: #68717b;
    background: #fafbfc;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.bnp-gallery-filters button:hover,
.bnp-gallery-filters button.active {
    transform: translateY(-2px);
    border-color: var(--gallery-green);
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--gallery-green),
            var(--gallery-green-dark)
        );
    box-shadow: 0 10px 22px rgba(47, 143, 91, 0.18);
}

.bnp-gallery-count {
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 8px 4px;
    color: var(--gallery-muted);
    font-size: 12px;
    font-weight: 700;
}

.bnp-gallery-count i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--gallery-red),
            var(--gallery-red-dark)
        );
}

.bnp-gallery-count strong {
    color: var(--gallery-text);
    font-weight: 800;
}
/* =========================================================
   GALLERY GRID
========================================================= */

.bnp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 230px;
    gap: 16px;
}

.bnp-gallery-item {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 19px;
    background: #dfe4e8;
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.09),
        0 5px 15px rgba(15, 23, 42, 0.03);
    cursor: pointer;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.3s ease;
}

.bnp-gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bnp-gallery-item.wide {
    grid-column: span 2;
}

.bnp-gallery-item.tall {
    grid-row: span 2;
}

.bnp-gallery-item[hidden] {
    display: none !important;
}

.bnp-gallery-item:hover {
    transform: translateY(-7px);
    box-shadow:
        0 29px 62px rgba(15, 23, 42, 0.16),
        0 8px 20px rgba(15, 23, 42, 0.05);
}

.bnp-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 0.65s ease,
        filter 0.45s ease;
}

.bnp-gallery-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.bnp-gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to top,
            rgba(8, 11, 15, 0.92) 0%,
            rgba(8, 11, 15, 0.48) 38%,
            rgba(8, 11, 15, 0.04) 72%,
            transparent 100%
        );
    transition: background 0.35s ease;
}

.bnp-gallery-item:hover::before {
    background:
        linear-gradient(
            to top,
            rgba(8, 11, 15, 0.95) 0%,
            rgba(8, 11, 15, 0.58) 42%,
            rgba(8, 11, 15, 0.08) 75%,
            transparent 100%
        );
}

.bnp-gallery-item-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding: 21px;
}

.bnp-gallery-item-overlay > div {
    min-width: 0;
}

.bnp-gallery-item-overlay small,
.bnp-gallery-item-overlay h3,
.bnp-gallery-item-overlay span {
    display: block;
}

.bnp-gallery-item-overlay small {
    margin-bottom: 6px;
    color: #6bd394;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.bnp-gallery-item-overlay h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.bnp-gallery-item.large .bnp-gallery-item-overlay h3 {
    font-size: 23px;
}

.bnp-gallery-item-overlay span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.bnp-gallery-item-overlay span i {
    margin-right: 5px;
    color: #6bd394;
}

.bnp-gallery-preview-btn {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px) scale(0.92);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.bnp-gallery-item:hover .bnp-gallery-preview-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bnp-gallery-preview-btn:hover {
    border-color: var(--gallery-red);
    background:
        linear-gradient(
            135deg,
            var(--gallery-red),
            var(--gallery-red-dark)
        );
}

/* =========================================================
   EMPTY STATE
========================================================= */

.bnp-gallery-empty {
    padding: 55px 20px;
    text-align: center;
}

.bnp-gallery-empty[hidden] {
    display: none !important;
}

.bnp-gallery-empty > i {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 21px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--gallery-green),
            var(--gallery-green-dark)
        );
    box-shadow: 0 16px 34px rgba(47, 143, 91, 0.22);
    font-size: 27px;
}

.bnp-gallery-empty h3 {
    margin: 0 0 8px;
    color: var(--gallery-text);
    font-size: 23px;
    font-weight: 800;
}

.bnp-gallery-empty p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 14px;
}

/* =========================================================
   IMPACT STRIP
========================================================= */

.bnp-gallery-impact {
    padding: 75px 0;
    background: #ffffff;
}

.bnp-gallery-impact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 32px;
    border: 1px solid rgba(47, 143, 91, 0.14);
    border-radius: 21px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f2faf5
        );
    box-shadow:
        0 22px 50px rgba(15, 23, 42, 0.08),
        0 6px 16px rgba(15, 23, 42, 0.025);
}

.bnp-gallery-impact-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 17px;
}

.bnp-gallery-impact-content > span {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--gallery-green),
            var(--gallery-green-dark)
        );
    box-shadow: 0 14px 28px rgba(47, 143, 91, 0.2);
    font-size: 22px;
}

.bnp-gallery-impact-content small {
    display: block;
    margin-bottom: 5px;
    color: var(--gallery-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.bnp-gallery-impact-content h2 {
    margin: 0 0 7px;
    color: var(--gallery-text);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.35;
}

.bnp-gallery-impact-content p {
    max-width: 700px;
    margin: 0;
    color: var(--gallery-muted);
    font-size: 13px;
    line-height: 1.65;
}

.bnp-gallery-impact-points {
    display: grid;
    gap: 10px;
}

.bnp-gallery-impact-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #56605c;
    font-size: 12px;
    font-weight: 800;
}

.bnp-gallery-impact-points i {
    color: var(--gallery-green);
}

/* =========================================================
   FINAL CTA
========================================================= */

.bnp-gallery-final-cta {
    padding: 0 0 85px;
    background: #ffffff;
}

.bnp-gallery-final-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background:
        linear-gradient(
            125deg,
            #171b22 0%,
            #173e2d 53%,
            #40101c 100%
        );
    box-shadow: 0 30px 72px rgba(15, 23, 42, 0.19);
}

.bnp-gallery-final-card::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -100px;
    width: 320px;
    height: 320px;
    border: 45px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;
}

.bnp-gallery-final-card > * {
    position: relative;
    z-index: 2;
}

.bnp-gallery-final-card > div:first-child > span {
    display: block;
    margin-bottom: 7px;
    color: #69d393;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.bnp-gallery-final-card h2 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
}

.bnp-gallery-final-card p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.7;
}

.bnp-gallery-final-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.bnp-gallery-final-actions a {
    min-width: 190px;
    min-height: 61px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 11px;
    color: #ffffff;
    transition:
        transform 0.28s ease,
        color 0.28s ease,
        box-shadow 0.28s ease;
}

.bnp-gallery-final-actions a.primary {
    background:
        linear-gradient(
            135deg,
            var(--gallery-green),
            var(--gallery-green-dark)
        );
    box-shadow: 0 13px 28px rgba(47, 143, 91, 0.24);
}

.bnp-gallery-final-actions a.secondary {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.06);
}

.bnp-gallery-final-actions a > i {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.13);
}

.bnp-gallery-final-actions a span,
.bnp-gallery-final-actions a small {
    display: block;
}

.bnp-gallery-final-actions a small {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    text-transform: uppercase;
}

.bnp-gallery-final-actions a span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.bnp-gallery-final-actions a:hover {
    transform: translateY(-4px);
    color: #ffffff;
}

.bnp-gallery-final-actions a.primary:hover {
    box-shadow: 0 19px 36px rgba(47, 143, 91, 0.35);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.bnp-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.bnp-gallery-lightbox.active {
    visibility: visible;
    opacity: 1;
}

.bnp-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,11,15,.90);
    backdrop-filter: blur(8px);
}

.bnp-gallery-lightbox-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1150px;
    border-radius: 22px;
    overflow: hidden;
    background: #11161d;
    box-shadow: 0 35px 90px rgba(0,0,0,.45);
    animation: galleryZoom .35s ease;
}

@keyframes galleryZoom{
    from{
        transform:scale(.92);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.bnp-gallery-lightbox-image{
    background:#000;
}

.bnp-gallery-lightbox-image img{
    width:100%;
    max-height:75vh;
    display:block;
    object-fit:contain;
}

.bnp-gallery-lightbox-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:24px 28px;
    background:#171b22;
}

.bnp-gallery-lightbox-info small{
    display:block;
    color:#68d18f;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    margin-bottom:6px;
}

.bnp-gallery-lightbox-info h2{
    margin:0 0 6px;
    color:#fff;
    font-size:25px;
    font-weight:800;
}

.bnp-gallery-lightbox-info span{
    color:rgba(255,255,255,.55);
    font-size:13px;
}

.bnp-gallery-lightbox-counter{
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
    font-size:18px;
    font-weight:800;
}

.bnp-gallery-lightbox-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:58px;
    height:58px;
    border:0;
    border-radius:50%;
    color:#fff;
    background:rgba(255,255,255,.10);
    backdrop-filter:blur(10px);
    cursor:pointer;
    transition:.3s;
}

.bnp-gallery-lightbox-nav:hover{
    background:var(--gallery-red);
}

.bnp-gallery-lightbox-nav.previous{
    left:22px;
}

.bnp-gallery-lightbox-nav.next{
    right:22px;
}

.bnp-gallery-lightbox-close{
    position:absolute;
    top:18px;
    right:18px;
    width:46px;
    height:46px;
    border:0;
    border-radius:12px;
    color:#fff;
    background:rgba(0,0,0,.45);
    cursor:pointer;
    z-index:3;
    transition:.3s;
}

.bnp-gallery-lightbox-close:hover{
    background:var(--gallery-red);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1200px){

    .bnp-gallery-hero-layout{
        grid-template-columns:1fr;
    }

    .bnp-gallery-hero-collage{
        max-width:760px;
    }

    .bnp-gallery-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:991px){

    .bnp-gallery-hero{
        min-height:auto;
    }

    .bnp-gallery-hero-layout{
        padding:70px 0;
    }

    .bnp-gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .bnp-gallery-item.large,
    .bnp-gallery-item.wide,
    .bnp-gallery-item.tall{
        grid-column:auto;
        grid-row:auto;
    }

    .bnp-gallery-toolbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .bnp-gallery-impact-card,
    .bnp-gallery-final-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .bnp-gallery-final-actions{
        width:100%;
        flex-direction:column;
    }

    .bnp-gallery-final-actions a{
        width:100%;
    }

}

@media(max-width:767px){

    .bnp-gallery-hero-content h1{
        font-size:40px;
    }

    .bnp-gallery-heading-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .bnp-gallery-heading-row h2{
        font-size:33px;
    }

    .bnp-gallery-grid{
        grid-template-columns:1fr;
    }

    .bnp-gallery-hero-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .bnp-gallery-primary-btn,
    .bnp-gallery-secondary-btn{
        width:100%;
    }

    .bnp-gallery-lightbox-info{
        flex-direction:column;
        align-items:flex-start;
    }

    .bnp-gallery-lightbox-nav{
        width:48px;
        height:48px;
    }

}

@media(max-width:480px){

    .bnp-gallery-hero-content h1{
        font-size:32px;
    }

    .bnp-gallery-collage-main{
        min-height:320px;
    }

    .bnp-gallery-collage-small{
        min-height:150px;
    }

    .bnp-gallery-floating-card{
        position:static;
        margin-top:15px;
    }

    .bnp-gallery-heading-row h2{
        font-size:28px;
    }

    .bnp-gallery-lightbox{
        padding:10px;
    }

    .bnp-gallery-lightbox-nav{
        display:none;
    }

}

/* =========================================================
   UTILITIES
========================================================= */

.bnp-gallery-item,
.bnp-gallery-collage-main,
.bnp-gallery-collage-small{
    will-change:transform;
}

.bnp-gallery-item img,
.bnp-gallery-collage-main img,
.bnp-gallery-collage-small img{
    backface-visibility:hidden;
}

.bnp-gallery-item *,
.bnp-gallery-lightbox *,
.bnp-gallery-final-card *{
    user-select:none;
}


/* Gallery missing image fallback */

.bnp-gallery-image-missing {
    position: relative;
    background:
        linear-gradient(
            135deg,
            #20252d,
            #173d2c
        );
}

.bnp-gallery-missing-message {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
}

.bnp-gallery-missing-message i {
    font-size: 32px;
    color: #68d18f;
}

.bnp-gallery-missing-message span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}