.mbs-gallery-hero-area {
    position: relative;
    padding: 138px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(246, 182, 60, 0.24), transparent 18%),
        radial-gradient(circle at 84% 22%, rgba(43, 108, 184, 0.22), transparent 20%),
        radial-gradient(circle at 78% 78%, rgba(204, 31, 31, 0.16), transparent 20%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0%, transparent 32%),
        linear-gradient(135deg, #081227 0%, #11285d 48%, #0d1d43 100%);
}

.mbs-gallery-hero-orb,
.mbs-gallery-hero-grid {
    position: absolute;
    pointer-events: none;
}

.mbs-gallery-hero-orb {
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.9;
}

.mbs-gallery-hero-orb-one {
    left: -90px;
    top: 90px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(246, 182, 60, 0.24), transparent 68%);
}

.mbs-gallery-hero-orb-two {
    right: -70px;
    bottom: 54px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(43, 108, 184, 0.24), transparent 70%);
}

.mbs-gallery-hero-grid {
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 100%);
    opacity: 0.28;
}

.mbs-gallery-hero-shell {
    position: relative;
    padding: 34px 38px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(3, 10, 28, 0.28);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.mbs-gallery-hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.12), transparent 20%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.04) 44%, transparent 68%);
    pointer-events: none;
}

.mbs-gallery-hero-copy,
.mbs-gallery-hero-panel {
    position: relative;
    z-index: 1;
}

.mbs-gallery-hero-kicker,
.mbs-gallery-section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mbs-gallery-hero-kicker {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #f6d089;
}

.mbs-gallery-hero-copy h1 {
    margin: 0 0 18px;
    max-width: 10ch;
    color: #fff;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.98;
}

.mbs-gallery-hero-copy p {
    margin: 0 0 20px;
    max-width: 58ch;
    color: rgba(229, 236, 246, 0.88);
    font-size: 17px;
    line-height: 1.78;
}

.mbs-gallery-hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mbs-gallery-hero-breadcrumb a,
.mbs-gallery-hero-breadcrumb strong,
.mbs-gallery-hero-breadcrumb span {
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}

.mbs-gallery-hero-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(229, 236, 246, 0.9);
}

.mbs-gallery-hero-panel {
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 84% 18%, rgba(246, 182, 60, 0.16), transparent 20%),
        linear-gradient(180deg, rgba(10, 24, 58, 0.52), rgba(10, 24, 58, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mbs-gallery-hero-panel-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #ffd58c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mbs-gallery-hero-panel h3 {
    margin: 0 0 12px;
    color: #f7d58f;
    font-size: 24px;
    line-height: 1.3;
}

.mbs-gallery-hero-panel p {
    margin: 0 0 16px;
    color: rgba(222, 234, 248, 0.88);
    font-size: 15px;
    line-height: 1.72;
}

.mbs-gallery-hero-panel-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mbs-gallery-hero-panel-points span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(246, 182, 60, 0.16), rgba(43, 108, 184, 0.12));
    color: #f4f8ff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mbs-gallery-wall-area {
    position: relative;
    padding: 84px 0 94px;
    background:
        radial-gradient(circle at 12% 18%, rgba(246, 182, 60, 0.1), transparent 18%),
        radial-gradient(circle at 88% 22%, rgba(43, 108, 184, 0.08), transparent 18%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.mbs-gallery-wall-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.mbs-gallery-section-kicker {
    margin-bottom: 16px;
    background: rgba(17, 40, 93, 0.06);
    color: #11285d;
}

.mbs-gallery-wall-head h2 {
    margin: 0;
    color: #11285d;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.mbs-gallery-wall-head p {
    margin: 0;
    color: #556579;
    font-size: 15px;
    line-height: 1.8;
}

.mbs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.mbs-gallery-empty-card {
    grid-column: 1 / -1;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(17, 40, 93, 0.08);
    box-shadow: 0 18px 40px rgba(12, 28, 67, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.mbs-gallery-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(17, 40, 93, 0.08);
    box-shadow: 0 18px 40px rgba(12, 28, 67, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.mbs-gallery-card-media {
    position: relative;
    height: 260px;
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(17, 40, 93, 0.06), rgba(43, 108, 184, 0.08));
}

.mbs-gallery-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 40, 93, 0.02), rgba(17, 40, 93, 0.18));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mbs-gallery-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.mbs-gallery-card-content {
    padding: 18px 18px 20px;
}

.mbs-gallery-card-content span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(17, 40, 93, 0.05);
    color: #11285d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mbs-gallery-card-content h3 {
    margin: 0;
    color: #11285d;
    font-size: 20px;
    line-height: 1.3;
}

.mbs-gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 108, 184, 0.16);
    box-shadow: 0 26px 52px rgba(12, 28, 67, 0.12);
}

.mbs-gallery-card:hover .mbs-gallery-card-media img {
    transform: scale(1.06);
}

.mbs-gallery-card:hover .mbs-gallery-card-media::after {
    opacity: 1;
}

.mbs-gallery-lightbox-open {
    overflow: hidden;
}

.mbs-gallery-lightbox[hidden] {
    display: none !important;
}

.mbs-gallery-lightbox {
    position: fixed;
    left: 0;
    top: 0;
    inset: 0;
    z-index: 2600;
    display: grid;
    place-items: center;
    padding: 24px;
}

.mbs-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 16, 36, 0.78);
    backdrop-filter: blur(8px);
}

.mbs-gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(17, 40, 93, 0.08);
    box-shadow: 0 34px 70px rgba(4, 12, 30, 0.28);
    margin: 0 auto;
}

.mbs-gallery-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(17, 40, 93, 0.08);
    color: #11285d;
    font-size: 18px;
    z-index: 2;
}

.mbs-gallery-lightbox-media {
    padding: 26px 26px 0;
    background: linear-gradient(160deg, rgba(17, 40, 93, 0.06), rgba(43, 108, 184, 0.08));
}

.mbs-gallery-lightbox-media img {
    display: block;
    width: 100%;
    max-height: min(68vh, 760px);
    object-fit: contain;
    background: #eef3f9;
    border-radius: 22px;
}

.mbs-gallery-lightbox-content {
    padding: 16px 22px 20px;
}

.mbs-gallery-lightbox-content span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(17, 40, 93, 0.06);
    color: #11285d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mbs-gallery-lightbox-content h3 {
    margin: 0 0 8px;
    color: #11285d;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.12;
}

.mbs-gallery-lightbox-content p {
    margin: 0;
    color: #556579;
    font-size: 14px;
    line-height: 1.7;
}

.mbs-news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.mbs-news-pagination a,
.mbs-news-pagination span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(17, 40, 93, 0.08);
    color: #11285d;
    box-shadow: 0 12px 24px rgba(12, 28, 67, 0.05);
}

.mbs-news-pagination a.is-active,
.mbs-news-pagination a:hover {
    background: #11285d;
    color: #fff;
}

.mbs-news-pagination span {
    opacity: 0.45;
    cursor: default;
}

@media (max-width: 1199px) {
    .mbs-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mbs-gallery-wall-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .mbs-gallery-hero-area {
        padding: 126px 0 60px;
    }

    .mbs-gallery-hero-shell {
        padding: 28px;
    }

    .mbs-gallery-wall-area {
        padding: 56px 0 74px;
    }

    .mbs-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mbs-gallery-hero-area {
        padding: 112px 0 38px;
    }

    .mbs-gallery-hero-shell {
        padding: 20px;
        border-radius: 24px;
    }

    .mbs-gallery-hero-copy h1 {
        margin-bottom: 12px;
        max-width: 100%;
        font-size: 30px;
        line-height: 1.04;
    }

    .mbs-gallery-hero-copy p {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .mbs-gallery-hero-breadcrumb {
        padding: 10px 12px;
        gap: 8px;
    }

    .mbs-gallery-wall-area {
        padding: 40px 0 58px;
    }

    .mbs-gallery-wall-head {
        gap: 14px;
        margin-bottom: 18px;
    }

    .mbs-gallery-wall-head h2 {
        font-size: 26px;
    }

    .mbs-gallery-wall-head p {
        font-size: 13px;
        line-height: 1.65;
    }

    .mbs-gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mbs-gallery-card {
        border-radius: 20px;
    }

    .mbs-gallery-empty-card {
        border-radius: 22px;
    }

    .mbs-gallery-card-media {
        height: 220px;
        min-height: 220px;
    }

    .mbs-gallery-card-content {
        padding: 16px;
    }

    .mbs-news-pagination {
        gap: 8px;
        margin-top: 26px;
        flex-wrap: wrap;
    }

    .mbs-news-pagination a,
    .mbs-news-pagination span {
        width: 38px;
        height: 38px;
    }

    .mbs-gallery-card-content h3 {
        font-size: 18px;
    }

    .mbs-gallery-lightbox {
        padding: 12px;
    }

    .mbs-gallery-lightbox-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 22px;
    }

    .mbs-gallery-lightbox-media {
        padding: 18px 18px 0;
    }

    .mbs-gallery-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .mbs-gallery-lightbox-content {
        padding: 14px 16px 18px;
    }

    .mbs-gallery-lightbox-content h3 {
        font-size: 22px;
    }
}