/* ========================================
   CA Brooklyn Style Gallery
======================================== */

.ca-brooklyn-style-gallery,
.ca-brooklyn-style-gallery * {
    box-sizing: border-box;
}

.ca-brooklyn-style-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    color: #ffffff;
    isolation: isolate;
}

@supports (overflow: clip) {
    .ca-brooklyn-style-gallery {
        overflow-x: clip;
    }
}

/* .ca-brooklyn-style-gallery--full-width {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
} */

/* html,
body{
    overflow-x:hidden;
} */
.ca-brooklyn-style-gallery--full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ca-brooklyn-style-gallery__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
}

.ca-brooklyn-style-gallery--boxed .ca-brooklyn-style-gallery__inner {
    max-width: var(--ca-brooklyn-gallery-max-width);
}

.ca-brooklyn-style-gallery--wide .ca-brooklyn-style-gallery__inner {
    max-width: 1600px;
}

.ca-brooklyn-style-gallery--full-width .ca-brooklyn-style-gallery__inner {
    max-width: none;
}

.ca-brooklyn-style-gallery__header {
    max-width: var(--ca-brooklyn-gallery-header-max-width);
    margin-bottom: var(--ca-brooklyn-gallery-header-spacing);
}

.ca-brooklyn-style-gallery--header-left .ca-brooklyn-style-gallery__header {
    margin-right: auto;
    text-align: left;
}

.ca-brooklyn-style-gallery--header-center .ca-brooklyn-style-gallery__header {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.ca-brooklyn-style-gallery--header-right .ca-brooklyn-style-gallery__header {
    margin-left: auto;
    text-align: right;
}

.ca-brooklyn-style-gallery__eyebrow {
    display: block;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ca-brooklyn-style-gallery__title {
    margin: 0;
    font-size: var(--ca-brooklyn-gallery-title-size);
    font-weight: var(--ca-brooklyn-gallery-title-weight);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.ca-brooklyn-style-gallery__description {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.7;
}

.ca-brooklyn-style-gallery__description p {
    margin-top: 0;
    margin-bottom: 0;
}

.ca-brooklyn-style-gallery__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: var(--ca-brooklyn-gallery-filter-spacing);
}

.ca-brooklyn-style-gallery--filter-left .ca-brooklyn-style-gallery__filters {
    justify-content: flex-start;
}

.ca-brooklyn-style-gallery--filter-center .ca-brooklyn-style-gallery__filters {
    justify-content: center;
}

.ca-brooklyn-style-gallery--filter-right .ca-brooklyn-style-gallery__filters {
    justify-content: flex-end;
}

.ca-brooklyn-style-gallery__filter {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    min-height: 38px;
    padding: 9px 17px;
    border: 1px solid var(--ca-brooklyn-gallery-filter-border);
    border-radius: var(--ca-brooklyn-gallery-filter-radius);
    background: var(--ca-brooklyn-gallery-filter-bg);
    color: var(--ca-brooklyn-gallery-filter-color);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ca-brooklyn-style-gallery__filter:hover,
.ca-brooklyn-style-gallery__filter:focus,
.ca-brooklyn-style-gallery__filter.is-active {
    background: var(--ca-brooklyn-gallery-filter-active-bg);
    color: var(--ca-brooklyn-gallery-filter-active-color);
    border-color: var(--ca-brooklyn-gallery-filter-active-bg);
    transform: translateY(-1px);
}

.ca-brooklyn-style-gallery__grid {
    display: grid;
    grid-template-columns: repeat(var(--ca-brooklyn-gallery-cols-desktop), minmax(0, 1fr));
    gap: var(--ca-brooklyn-gallery-gap);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.ca-brooklyn-style-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--ca-brooklyn-gallery-item-radius);
    background: #111827;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transform: translateZ(0);
}

.ca-brooklyn-style-gallery__item.is-hidden {
    display: none;
}

.ca-brooklyn-style-gallery__media {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: var(--ca-brooklyn-gallery-aspect-ratio);
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 47, 95, 0.55), transparent 30%),
        radial-gradient(circle at 10% 86%, rgba(0, 219, 255, 0.35), transparent 32%),
        linear-gradient(135deg, #181827 0%, #541533 48%, #07111f 100%);
}

.ca-brooklyn-style-gallery--ratio-auto .ca-brooklyn-style-gallery__media {
    aspect-ratio: auto;
}

.ca-brooklyn-style-gallery__media img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 100%;
    object-fit: var(--ca-brooklyn-gallery-object-fit);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.ca-brooklyn-style-gallery--ratio-auto .ca-brooklyn-style-gallery__media img {
    height: auto;
    min-height: 0;
}

.ca-brooklyn-style-gallery--hover-zoom .ca-brooklyn-style-gallery__item:hover img,
.ca-brooklyn-style-gallery--hover-zoom .ca-brooklyn-style-gallery__item:focus img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.ca-brooklyn-style-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 240px;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ca-brooklyn-style-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: clamp(18px, 2.6vw, 34px);
    background: var(--ca-brooklyn-gallery-overlay-bg);
    color: var(--ca-brooklyn-gallery-overlay-color);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.32s ease, transform 0.32s ease;
    pointer-events: none;
}

.ca-brooklyn-style-gallery--no-overlay .ca-brooklyn-style-gallery__overlay {
    display: none;
}

.ca-brooklyn-style-gallery__item:hover .ca-brooklyn-style-gallery__overlay,
.ca-brooklyn-style-gallery__item:focus .ca-brooklyn-style-gallery__overlay {
    opacity: 1;
    transform: translateY(0);
}

.ca-brooklyn-style-gallery__overlay-inner {
    width: 100%;
    max-width: 420px;
}

.ca-brooklyn-style-gallery__category {
    display: block;
    margin-bottom: 8px;
    color: var(--ca-brooklyn-gallery-overlay-accent);
    font-size: 11px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ca-brooklyn-style-gallery__item-title {
    margin: 0;
    color: inherit;
    font-size: clamp(21px, 2.1vw, 32px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.ca-brooklyn-style-gallery__caption {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.76);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.ca-brooklyn-style-gallery__lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    padding: clamp(56px, 7vh, 78px) clamp(18px, 4vw, 56px) clamp(28px, 5vh, 58px);
    overflow: hidden;
    background: var(--ca-brooklyn-gallery-lightbox-bg, rgba(0,0,0,0.92));
    box-sizing: border-box;
}

.ca-brooklyn-style-gallery__lightbox.is-open {
    display: flex;
}

.ca-brooklyn-style-gallery__lightbox-inner {
    position: relative;
    width: min(92vw, 980px);
    max-width: 92vw;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    text-align: center;
}

.ca-brooklyn-style-gallery__lightbox-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    max-height: calc(100dvh - 180px);
    margin: 0 auto;
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(0,0,0,0.58);
}

.ca-brooklyn-style-gallery__lightbox-caption {
    margin-top: 16px;
    color: var(--ca-brooklyn-gallery-lightbox-caption-color);
}

.ca-brooklyn-style-gallery__lightbox-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.ca-brooklyn-style-gallery__lightbox-text {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.5;
}

.ca-brooklyn-style-gallery__lightbox-close,
.ca-brooklyn-style-gallery__lightbox-prev,
.ca-brooklyn-style-gallery__lightbox-next {
    position: fixed;
    z-index: 2147483647;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    background: rgba(0,0,0,0.54);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(0,0,0,0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.ca-brooklyn-style-gallery__lightbox-close:hover,
.ca-brooklyn-style-gallery__lightbox-prev:hover,
.ca-brooklyn-style-gallery__lightbox-next:hover {
    background: rgba(255,255,255,0.16);
    transform: scale(1.04);
}

.ca-brooklyn-style-gallery__lightbox-close {
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
}

.ca-brooklyn-style-gallery__lightbox-prev,
.ca-brooklyn-style-gallery__lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.ca-brooklyn-style-gallery__lightbox-prev:hover,
.ca-brooklyn-style-gallery__lightbox-next:hover {
    transform: translateY(-50%) scale(1.04);
}

.ca-brooklyn-style-gallery__lightbox-prev {
    left: 22px;
}

.ca-brooklyn-style-gallery__lightbox-next {
    right: 22px;
}


body.ca-brooklyn-style-gallery-lightbox-open {
    overflow: hidden !important;
}

body.ca-brooklyn-style-gallery-lightbox-open .ca-brooklyn-style-gallery__lightbox {
    pointer-events: auto;
}

@media (max-width: 991px) {
    .ca-brooklyn-style-gallery__grid {
        grid-template-columns: repeat(var(--ca-brooklyn-gallery-cols-tablet), minmax(0, 1fr));
    }

    .ca-brooklyn-style-gallery__title {
        font-size: var(--ca-brooklyn-gallery-title-mobile-size);
        letter-spacing: -0.045em;
    }
}

@media (max-width: 576px) {
    
    .ca-brooklyn-style-gallery {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: var(--ca-brooklyn-gallery-mobile-padding) !important;
        overflow-x: hidden;
    }

    @supports (overflow: clip) {
        .ca-brooklyn-style-gallery {
            overflow-x: clip;
        }
    }

    .ca-brooklyn-style-gallery--full-width {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ca-brooklyn-style-gallery__inner,
    .ca-brooklyn-style-gallery__header,
    .ca-brooklyn-style-gallery__grid,
    .ca-brooklyn-style-gallery__item,
    .ca-brooklyn-style-gallery__media {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .ca-brooklyn-style-gallery__grid {
        grid-template-columns: repeat(var(--ca-brooklyn-gallery-cols-mobile), minmax(0, 1fr));
        gap: var(--ca-brooklyn-gallery-mobile-gap);
        overflow: hidden;
    }

    .ca-brooklyn-style-gallery__filters {
        justify-content: flex-start !important;
        flex-wrap: wrap;
        overflow: visible;
        gap: 8px;
        padding-bottom: 0;
    }

    .ca-brooklyn-style-gallery__filter {
        flex: 0 1 auto;
        max-width: 100%;
        min-height: 36px;
        padding: 8px 14px;
        white-space: normal;
        text-align: center;
        word-break: break-word;
    }

    .ca-brooklyn-style-gallery__overlay {
        padding: 18px;
    }

    .ca-brooklyn-style-gallery__caption {
        display: none;
    }

    .ca-brooklyn-style-gallery__lightbox {
        padding: 62px 12px 82px;
        align-items: center;
        overflow: hidden;
    }

    .ca-brooklyn-style-gallery__lightbox-inner {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 144px);
        max-height: calc(100dvh - 144px);
    }

    .ca-brooklyn-style-gallery__lightbox-image {
        max-width: 100%;
        max-height: calc(100vh - 178px);
        max-height: calc(100dvh - 178px);
    }

    .ca-brooklyn-style-gallery__lightbox-caption {
        margin-top: 10px;
        padding: 0 10px;
    }

    .ca-brooklyn-style-gallery__lightbox-title {
        font-size: 15px;
    }

    .ca-brooklyn-style-gallery__lightbox-text {
        font-size: 13px;
    }

    .ca-brooklyn-style-gallery__lightbox-close {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
        background: rgba(0,0,0,0.72);
    }

    .ca-brooklyn-style-gallery__lightbox-prev,
    .ca-brooklyn-style-gallery__lightbox-next {
        top: auto;
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
        transform: none;
        background: rgba(0,0,0,0.72);
    }

    .ca-brooklyn-style-gallery__lightbox-prev {
        left: max(14px, env(safe-area-inset-left));
    }

    .ca-brooklyn-style-gallery__lightbox-next {
        right: max(14px, env(safe-area-inset-right));
    }

    .ca-brooklyn-style-gallery__lightbox-prev:hover,
    .ca-brooklyn-style-gallery__lightbox-next:hover {
        transform: scale(1.04);
    }
}
