/* ==========================================
        PREMIUM CATEGORY IMAGE GALLERY
        =========================================== */

.bbr-category-gallery {
    --gallery-navy: #030914;
    --gallery-card: #071426;
    --gallery-gold: #d6b25e;
    --gallery-gold-light: #f8edcf;
    --gallery-muted: #c1c8d2;

    padding: 100px 0;
    overflow: hidden;
    color: #f4f2eb;
    background:
        radial-gradient(ellipse at 50% 0%,
            rgba(214, 178, 94, 0.08),
            transparent 42%),
        var(--gallery-navy);
    font-family: var(--font-body, 'DM Sans', sans-serif);
}

/* HEADING */

.bbr-gallery-heading {
    max-width: 800px;
    margin: 0 auto 55px;
    text-align: center;
}

.bbr-gallery-eyebrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--gallery-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.bbr-gallery-eyebrow>span {
    width: 28px;
    height: 1px;
    background: var(--gallery-gold);
}

.bbr-gallery-heading h2 {
    margin: 0 0 18px;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(34px, 4.2vw, 53px);
    font-weight: 600;
    line-height: 1.2;
}

.bbr-gallery-heading h2 span {
    color: var(--gallery-gold);
}

.bbr-gallery-heading>p {
    max-width: 640px;
    margin: auto;
    color: var(--gallery-muted);
    font-size: 14px;
    line-height: 1.9;
}

.bbr-gallery-ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    color: var(--gallery-gold);
    font-size: 11px;
}

.bbr-gallery-ornament span {
    width: 45px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--gallery-gold));
}

.bbr-gallery-ornament span:last-child {
    transform: rotate(180deg);
}

/* IMAGE CARDS */

.bbr-gallery-card {
    position: relative;
    display: block;
    height: 390px;
    overflow: hidden;
    border: 1px solid rgba(214, 178, 94, 0.20);
    border-radius: 10px;
    background: var(--gallery-card);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition:
        border-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.bbr-gallery-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 22px;
    width: 48px;
    height: 3px;
    background: var(--gallery-gold);
    transition: width 0.35s ease;
}

.bbr-gallery-card:hover {
    color: #fff;
    border-color: rgba(214, 178, 94, 0.7);
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.bbr-gallery-card:hover::before {
    width: 85px;
}

.bbr-gallery-card>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bbr-gallery-card:hover>img {
    transform: scale(1.07);
}

/* DARK IMAGE OVERLAY */

.bbr-gallery-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(3, 9, 20, 0.12) 0%,
            rgba(3, 9, 20, 0.12) 30%,
            rgba(3, 9, 20, 0.70) 62%,
            rgba(3, 9, 20, 0.97) 100%);
    transition: background 0.35s ease;
}

.bbr-gallery-card:hover .bbr-gallery-overlay {
    background: linear-gradient(180deg,
            rgba(3, 9, 20, 0.12) 0%,
            rgba(3, 9, 20, 0.20) 25%,
            rgba(3, 9, 20, 0.76) 58%,
            rgba(3, 9, 20, 0.98) 100%);
}

/* NUMBER BADGE */

.bbr-gallery-number {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(248, 237, 207, 0.55);
    border-radius: 50%;
    color: var(--gallery-gold-light);
    background: rgba(3, 9, 20, 0.48);
    backdrop-filter: blur(8px);
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 13px;
}

/* CARD CONTENT */

.bbr-gallery-content {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 23px;
    left: 24px;
}

.bbr-gallery-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gallery-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.6;
}

.bbr-gallery-content h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.bbr-gallery-card:hover .bbr-gallery-content h3 {
    color: var(--gallery-gold-light);
}

.bbr-gallery-content>p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.8;
}

.bbr-gallery-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(248, 237, 207, 0.25);
    color: var(--gallery-gold-light);
    font-size: 11px;
    font-weight: 700;
}

.bbr-gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid rgba(214, 178, 94, 0.55);
    border-radius: 50%;
    color: var(--gallery-gold);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.bbr-gallery-card:hover .bbr-gallery-arrow {
    color: var(--gallery-navy);
    background: var(--gallery-gold);
    transform: translateX(3px);
}

/* BOTTOM CTA */

.bbr-gallery-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 65px;
    padding: 32px;
    border: 1px solid rgba(214, 178, 94, 0.30);
    border-radius: 10px;
    background:
        radial-gradient(ellipse at 0% 50%,
            rgba(214, 178, 94, 0.12),
            transparent 45%),
        linear-gradient(110deg, #0d2340, #071426);
}

.bbr-gallery-cta-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border: 1px solid rgba(214, 178, 94, 0.45);
    border-radius: 10px;
    color: var(--gallery-gold);
    background: rgba(214, 178, 94, 0.07);
    font-size: 29px;
}

.bbr-gallery-cta-content {
    flex: 1;
    min-width: 0;
}

.bbr-gallery-cta-content>span {
    display: block;
    margin-bottom: 8px;
    color: var(--gallery-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.bbr-gallery-cta-content h3 {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 27px;
    font-weight: 600;
}

.bbr-gallery-cta-content p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 12px;
    line-height: 1.8;
}

.bbr-gallery-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 49px;
    padding: 13px 19px;
    flex-shrink: 0;
    border: 1px solid var(--gallery-gold);
    border-radius: 5px;
    color: #030914;
    background: var(--gallery-gold);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.3s ease,
        background 0.3s ease;
}

.bbr-gallery-cta-btn:hover {
    color: var(--gallery-gold-light);
    background: transparent;
}

.bbr-gallery-cta-btn i {
    transition: transform 0.3s ease;
}

.bbr-gallery-cta-btn:hover i {
    transform: translateX(4px);
}

/* TABLET */

@media (max-width: 991.98px) {
    .bbr-category-gallery {
        padding: 80px 0;
    }

    .bbr-gallery-card {
        height: 370px;
    }

    .bbr-gallery-content h3 {
        font-size: 22px;
    }

    .bbr-gallery-cta {
        flex-wrap: wrap;
        gap: 20px;
    }

    .bbr-gallery-cta-content {
        flex-basis: calc(100% - 100px);
    }

    .bbr-gallery-cta-btn {
        margin-left: 96px;
    }
}

/* MOBILE */

@media (max-width: 575.98px) {
    .bbr-category-gallery {
        padding: 60px 0;
    }

    .bbr-gallery-heading {
        margin-bottom: 35px;
    }

    .bbr-gallery-eyebrow {
        gap: 7px;
        font-size: 8px;
        letter-spacing: 1.3px;
    }

    .bbr-gallery-eyebrow>span {
        width: 18px;
    }

    .bbr-gallery-heading h2 {
        font-size: 32px;
    }

    .bbr-gallery-heading>p {
        font-size: 12px;
    }

    .bbr-gallery-card {
        height: 350px;
        border-radius: 8px;
    }

    .bbr-gallery-content {
        right: 19px;
        bottom: 19px;
        left: 19px;
    }

    .bbr-gallery-content h3 {
        font-size: 23px;
    }

    .bbr-gallery-content>p {
        font-size: 11px;
    }

    .bbr-gallery-number {
        top: 16px;
        right: 16px;
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .bbr-gallery-cta {
        display: grid;
        grid-template-columns: 55px minmax(0, 1fr);
        gap: 17px 13px;
        margin-top: 42px;
        padding: 22px 18px;
    }

    .bbr-gallery-cta-emblem {
        width: 55px;
        height: 55px;
        font-size: 23px;
    }

    .bbr-gallery-cta-content {
        flex-basis: auto;
    }

    .bbr-gallery-cta-content>span {
        font-size: 8px;
        letter-spacing: 1px;
        line-height: 1.6;
    }

    .bbr-gallery-cta-content h3 {
        font-size: 21px;
        line-height: 1.4;
    }

    .bbr-gallery-cta-content p {
        font-size: 11px;
    }

    .bbr-gallery-cta-btn {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .bbr-category-gallery *,
    .bbr-category-gallery *::before,
    .bbr-category-gallery *::after {
        transition-duration: 0.01ms !important;
    }
}