/* BP Photo Archive Gallery — Front-end v3.5.0 */

.bp-photo-gallery {
    --bp-gallery-wide-width: var(--wp--style--global--wide-size, 1280px);
    --bp-gallery-content-width: var(--wp--style--global--content-size, 1140px);
    --bp-gallery-gap: clamp(0.75rem, 1.4vw, 1.25rem);
    --bp-gallery-background: transparent;
    --bp-gallery-image-background: transparent;
    --bp-gallery-image-hover-background: transparent;
    --bp-gallery-image-aspect-ratio: 4 / 3;
    --bp-gallery-hover-opacity: 1;
    --bp-gallery-caption-opacity: 0.68;

    --bp-gallery-pagination-background: transparent;
    --bp-gallery-pagination-border-color: rgba(0,0,0,.14);
    --bp-gallery-pagination-text-color: inherit;
    --bp-gallery-pagination-font-size: 0.875rem;
    --bp-gallery-pagination-gap: 0.75rem;
    --bp-gallery-pagination-padding: 0.75rem 0 0;
    --bp-gallery-pagination-button-background: transparent;
    --bp-gallery-pagination-button-text: inherit;
    --bp-gallery-pagination-button-border-color: currentColor;
    --bp-gallery-pagination-button-hover-background: #111111;
    --bp-gallery-pagination-button-hover-text: #ffffff;
    --bp-gallery-pagination-button-disabled-background: transparent;
    --bp-gallery-pagination-button-disabled-text: rgba(0,0,0,.35);
    --bp-gallery-pagination-button-padding: 0.38rem 0.75rem;
    --bp-gallery-pagination-button-min-width: 5.25rem;
    --bp-gallery-pagination-button-font-size: 0.82rem;
    --bp-gallery-pagination-select-background: #ffffff;
    --bp-gallery-pagination-select-text: #111111;
    --bp-gallery-pagination-select-border-color: currentColor;
    --bp-gallery-pagination-select-padding: 0.25rem 0.45rem;

    max-width: var(--bp-gallery-wide-width);
    margin: clamp(2.5rem, 5vw, 4.5rem) auto;
    color: inherit;
    font-family: inherit;
    background: var(--bp-gallery-background) !important;
}

.elementor-widget-bp_photo_archive_gallery .bp-photo-gallery {
    margin-block: 0;
}

.bp-photo-gallery *,
.bp-photo-gallery *::before,
.bp-photo-gallery *::after {
    box-sizing: border-box;
}

.bp-photo-gallery__header {
    max-width: var(--bp-gallery-content-width);
    margin: 0 auto 1.35rem;
}

.bp-photo-gallery__title {
    margin: 0;
    font: inherit;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.2;
}

.bp-photo-gallery__intro {
    max-width: 760px;
    margin: 0.6rem 0 0;
    opacity: 0.78;
    line-height: 1.6;
}

.bp-photo-gallery--layout-masonry .bp-photo-gallery__grid {
    column-gap: var(--bp-gallery-gap);
}

.bp-photo-gallery--columns-1.bp-photo-gallery--layout-masonry .bp-photo-gallery__grid { column-count: 1; }
.bp-photo-gallery--columns-2.bp-photo-gallery--layout-masonry .bp-photo-gallery__grid { column-count: 2; }
.bp-photo-gallery--columns-3.bp-photo-gallery--layout-masonry .bp-photo-gallery__grid { column-count: 3; }
.bp-photo-gallery--columns-4.bp-photo-gallery--layout-masonry .bp-photo-gallery__grid { column-count: 4; }
.bp-photo-gallery--columns-5.bp-photo-gallery--layout-masonry .bp-photo-gallery__grid { column-count: 5; }

.bp-photo-gallery--layout-grid .bp-photo-gallery__grid {
    display: grid;
    gap: var(--bp-gallery-gap);
}

.bp-photo-gallery--columns-1.bp-photo-gallery--layout-grid .bp-photo-gallery__grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.bp-photo-gallery--columns-2.bp-photo-gallery--layout-grid .bp-photo-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-photo-gallery--columns-3.bp-photo-gallery--layout-grid .bp-photo-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bp-photo-gallery--columns-4.bp-photo-gallery--layout-grid .bp-photo-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bp-photo-gallery--columns-5.bp-photo-gallery--layout-grid .bp-photo-gallery__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.bp-photo-gallery__item {
    display: inline-block;
    width: 100%;
    margin: 0 0 var(--bp-gallery-gap);
    padding: 0 !important;
    break-inside: avoid;
    background: transparent !important;
}

.bp-photo-gallery--layout-grid .bp-photo-gallery__item {
    display: block;
    margin: 0;
}

.bp-photo-gallery__item.is-bp-page-hidden {
    display: none !important;
}

.bp-photo-gallery__image-button,
.bp-photo-gallery__image-button:hover,
.bp-photo-gallery__image-button:focus,
.bp-photo-gallery__image-button:active {
    display: block;
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
    background: var(--bp-gallery-image-background) !important;
    box-shadow: none !important;
    cursor: zoom-in;
    appearance: none;
    -webkit-appearance: none;
}

.bp-photo-gallery__image-button:hover {
    background: var(--bp-gallery-image-hover-background) !important;
}

.bp-photo-gallery__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    transition: opacity 180ms ease;
}

.bp-photo-gallery--layout-grid .bp-photo-gallery__image {
    aspect-ratio: var(--bp-gallery-image-aspect-ratio);
    object-fit: cover;
}

.bp-photo-gallery__image-button:hover .bp-photo-gallery__image,
.bp-photo-gallery__image-button:focus-visible .bp-photo-gallery__image {
    opacity: var(--bp-gallery-hover-opacity) !important;
}

.bp-photo-gallery__caption {
    margin-top: 0.45rem;
    font-size: 0.84em;
    line-height: 1.45;
    opacity: var(--bp-gallery-caption-opacity);
}

.bp-photo-gallery__tools,
.bp-photo-gallery__proofing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.45rem;
    font-size: 0.78rem;
}

.bp-photo-gallery__tools button,
.bp-photo-gallery__tools a,
.bp-photo-gallery__proofing button {
    padding: 0.25rem 0.5rem !important;
    border: 1px solid currentColor !important;
    background: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
    font: inherit !important;
    cursor: pointer;
}

.bp-photo-gallery__tools button.is-favorited {
    background: #111 !important;
    color: #fff !important;
}

.bp-photo-gallery__pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: var(--bp-gallery-pagination-gap) !important;
    margin-top: clamp(1rem, 2vw, 1.5rem) !important;
    padding: var(--bp-gallery-pagination-padding) !important;
    border-top: 1px solid var(--bp-gallery-pagination-border-color) !important;
    background: var(--bp-gallery-pagination-background) !important;
    color: var(--bp-gallery-pagination-text-color) !important;
    font: inherit !important;
    font-size: var(--bp-gallery-pagination-font-size) !important;
}

.bp-photo-gallery__page-size,
.bp-photo-gallery__pager {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--bp-gallery-pagination-gap) !important;
}

.bp-photo-gallery__page-size select {
    width: auto !important;
    min-width: 4.2rem !important;
    padding: var(--bp-gallery-pagination-select-padding) !important;
    border: 1px solid var(--bp-gallery-pagination-select-border-color) !important;
    background: var(--bp-gallery-pagination-select-background) !important;
    color: var(--bp-gallery-pagination-select-text) !important;
    font: inherit !important;
    box-shadow: none !important;
}

.bp-photo-gallery__pager-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: var(--bp-gallery-pagination-button-min-width) !important;
    padding: var(--bp-gallery-pagination-button-padding) !important;
    border: 1px solid var(--bp-gallery-pagination-button-border-color) !important;
    background: var(--bp-gallery-pagination-button-background) !important;
    color: var(--bp-gallery-pagination-button-text) !important;
    font: inherit !important;
    font-size: var(--bp-gallery-pagination-button-font-size) !important;
    line-height: 1.15 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.bp-photo-gallery__pager-button:hover:not(:disabled),
.bp-photo-gallery__pager-button:focus-visible:not(:disabled) {
    background: var(--bp-gallery-pagination-button-hover-background) !important;
    color: var(--bp-gallery-pagination-button-hover-text) !important;
}

.bp-photo-gallery__pager-button:disabled {
    background: var(--bp-gallery-pagination-button-disabled-background) !important;
    color: var(--bp-gallery-pagination-button-disabled-text) !important;
    opacity: 1 !important;
    cursor: default !important;
}

.bp-photo-gallery__page-status {
    min-width: 5.8rem;
    text-align: center;
    opacity: 0.72;
}

.bp-photo-gallery__gate {
    max-width: 420px;
    padding: 1rem;
    border: 1px solid currentColor;
}

.bp-photo-gallery__gate label {
    display: block;
    margin-bottom: 0.75rem;
}

.bp-photo-gallery__gate input {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
}

.bp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(0,0,0,.93);
}

.bp-lightbox.is-open {
    display: flex;
}

.bp-lightbox__inner {
    max-width: min(1180px, 94vw);
    max-height: 92vh;
}

.bp-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.bp-lightbox__caption {
    max-width: 860px;
    margin: .85rem auto 0;
    color: rgba(255,255,255,.78);
    text-align: center;
}

.bp-lightbox__close,
.bp-lightbox__prev,
.bp-lightbox__next {
    position: fixed;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.08);
    cursor: pointer;
}

.bp-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 2rem;
}

.bp-lightbox__prev,
.bp-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 4rem;
    font-size: 2.25rem;
}

.bp-lightbox__prev { left: 1rem; }
.bp-lightbox__next { right: 1rem; }

body.bp-lightbox-open {
    overflow: hidden;
}

.bp-photo-gallery-index__grid {
    display: grid;
    gap: 1rem;
}

.bp-photo-gallery-index--columns-1 .bp-photo-gallery-index__grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.bp-photo-gallery-index--columns-2 .bp-photo-gallery-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-photo-gallery-index--columns-3 .bp-photo-gallery-index__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bp-photo-gallery-index--columns-4 .bp-photo-gallery-index__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bp-photo-gallery-index--columns-5 .bp-photo-gallery-index__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.bp-photo-gallery-index__card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bp-photo-gallery-index__card img {
    display: block;
    width: 100%;
    height: auto;
}

.bp-photo-gallery-index__card span {
    display: block;
    margin-top: .5rem;
}

@media (max-width: 900px) {
    .bp-photo-gallery--layout-masonry .bp-photo-gallery__grid {
        column-count: 2 !important;
    }

    .bp-photo-gallery--layout-grid .bp-photo-gallery__grid,
    .bp-photo-gallery-index__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .bp-photo-gallery--layout-masonry .bp-photo-gallery__grid {
        column-count: 1 !important;
    }

    .bp-photo-gallery--layout-grid .bp-photo-gallery__grid,
    .bp-photo-gallery-index__grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .bp-photo-gallery__pagination {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .bp-photo-gallery__pager {
        justify-content: space-between !important;
        width: 100%;
    }
}
