.emmg-gallery-v2 {
    width: 100%;
}

.emmg-gallery-v2__filters {
    margin-bottom: 18px;
}

.emmg-gallery-v2 .emmg-filter-menu__items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid currentColor;
}

.emmg-gallery-v2 .emmg-filter,
.emmg-gallery-v2 .emmg-gallery-v2__more {
    appearance: none;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font: inherit;
    line-height: 1.2;
}

.emmg-gallery-v2 .emmg-filter.is-active,
.emmg-gallery-v2 .emmg-gallery-v2__more:hover,
.emmg-gallery-v2 .emmg-gallery-v2__more:focus-visible {
    background: transparent;
    color: inherit;
}

.emmg-gallery-v2__grid {
    column-count: var(--emmg-v2-columns, 4);
    column-gap: var(--emmg-v2-gap, 6px);
}

.emmg-gallery-v2__item {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    isolation: isolate;
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 var(--emmg-v2-gap, 6px);
    padding: 0;
    border: 0 solid transparent !important;
    border-radius: 0;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: inherit;
    cursor: zoom-in;
    filter: none;
    outline: 0;
    overflow: hidden;
    contain: paint;
    clip-path: inset(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    text-decoration: none;
    text-shadow: none;
    transform: translateZ(0);
    transition: none;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.emmg-gallery-v2__item:hover,
.emmg-gallery-v2__item:focus,
.emmg-gallery-v2__item:focus-visible,
.emmg-gallery-v2__item:active {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: inherit;
    filter: none;
    outline: 0;
    text-decoration: none;
    text-shadow: none;
    transform: translateZ(0);
}

.emmg-gallery-v2__item::before,
.emmg-gallery-v2__item::after {
    display: none !important;
    background: transparent !important;
    content: none !important;
}

.emmg-gallery-v2__series-badges {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 3;
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    align-items: flex-end;
    opacity: 1 !important;
    pointer-events: none;
    visibility: visible !important;
}

.emmg-gallery-v2__series-badge {
    display: inline-flex !important;
    max-width: 100%;
    min-width: 0;
    padding: 2px 6px;
    background: rgba(0, 0, 0, .62) !important;
    color: #fff !important;
    font: 700 11px/1.3 Arial, sans-serif !important;
    opacity: 1 !important;
    text-transform: uppercase !important;
    overflow: hidden;
    text-overflow: ellipsis;
    visibility: visible !important;
    white-space: nowrap;
}

.emmg-gallery-v2__item img {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    box-shadow: none;
    filter: none;
    object-fit: cover;
    transform: translateZ(0);
    transform-origin: center center;
    transition: transform 180ms ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.emmg-gallery-v2__item picture {
    display: block;
    width: 100%;
}

.emmg-gallery-v2__item:hover img,
.emmg-gallery-v2__item:focus img,
.emmg-gallery-v2__item:focus-visible img,
.emmg-gallery-v2__item:active img {
    box-shadow: none;
    filter: none;
}

.emmg-gallery-v2.has-hover-zoom .emmg-gallery-v2__item:hover img,
.emmg-gallery-v2.has-hover-zoom .emmg-gallery-v2__item:focus-visible img {
    transform: translateZ(0) scale(1.025);
}

.emmg-gallery-v2__more-wrap {
    display: block;
    margin: 22px auto 0;
    text-align: center;
}

.emmg-gallery-v2__more-wrap[hidden] {
    display: none !important;
}

.emmg-gallery-v2__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
}

.emmg-gallery-v2__more-spinner {
    display: none;
    width: 1em;
    height: 1em;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: emmg-gallery-v2-button-spin 780ms linear infinite;
}

.emmg-gallery-v2__more.is-loading .emmg-gallery-v2__more-spinner {
    display: inline-block;
}

@keyframes emmg-gallery-v2-button-spin {
    to {
        transform: rotate(360deg);
    }
}

.emmg-gallery-v2__status {
    margin: 18px 0;
    text-align: center;
}

.emmg-gallery-v2-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 32px;
    background: #D9E0D6;
    opacity: 1;
    transition: opacity 420ms ease;
}

.emmg-gallery-v2-loader[hidden] {
    display: none !important;
}

html.emmg-gallery-v2-warm .emmg-gallery-v2-loader {
    display: none !important;
}

.emmg-gallery-v2-loader img {
    display: block !important;
    width: min(280px, 62vw) !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    animation: emmg-gallery-v2-loader-pulse 1400ms ease-in-out infinite;
}

.emmg-gallery-v2-loader.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.emmg-gallery-v2-is-loading {
    overflow: hidden;
}

@keyframes emmg-gallery-v2-loader-pulse {
    0%,
    100% {
        opacity: .64;
        transform: scale(.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.emmg-gallery-v2__lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 48px 72px;
    background: rgba(0, 0, 0, .92);
}

.emmg-gallery-v2__lightbox[hidden] {
    display: none;
}

.emmg-gallery-v2__lightbox-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 144px) !important;
    max-height: calc(100vh - 96px) !important;
    max-height: calc(100dvh - 96px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: contain !important;
}

.emmg-gallery-v2__lightbox picture {
    display: contents;
}

.emmg-gallery-v2__lightbox-button {
    all: unset !important;
    box-sizing: border-box !important;
    position: fixed !important;
    z-index: 1 !important;
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer !important;
    font: 400 42px/1 Arial, sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.emmg-gallery-v2__lightbox-button::before,
.emmg-gallery-v2__lightbox-button::after {
    display: none !important;
    content: none !important;
}

.emmg-gallery-v2__lightbox-button svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    pointer-events: none !important;
    stroke: currentColor !important;
}

.emmg-gallery-v2__lightbox-button:hover,
.emmg-gallery-v2__lightbox-button:focus-visible {
    background: transparent;
    color: #fff;
    outline: 2px solid rgba(255, 255, 255, .75);
    outline-offset: 4px;
    text-decoration: none;
}

.emmg-gallery-v2__lightbox-button[hidden] {
    display: none !important;
}

.emmg-gallery-v2__lightbox-close {
    top: 14px !important;
    right: 18px !important;
}

.emmg-gallery-v2__lightbox-nav {
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 54px !important;
}

.emmg-gallery-v2__lightbox-prev {
    left: 18px !important;
}

.emmg-gallery-v2__lightbox-next {
    right: 18px !important;
}

.emmg-gallery-v2-lock {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .emmg-gallery-v2__grid {
        column-count: var(--emmg-v2-columns-tablet, 2);
        column-gap: var(--emmg-v2-gap-tablet, 6px);
    }

    .emmg-gallery-v2__item {
        margin-bottom: var(--emmg-v2-gap-tablet, 6px);
    }
}

@media (max-width: 767px) {
    .emmg-gallery-v2__grid {
        column-count: var(--emmg-v2-columns-mobile, 1);
        column-gap: var(--emmg-v2-gap-mobile, 6px);
    }

    .emmg-gallery-v2__item {
        margin-bottom: var(--emmg-v2-gap-mobile, 6px);
    }

    .emmg-gallery-v2__lightbox {
        padding: 42px 42px 24px;
    }

    .emmg-gallery-v2__lightbox-image {
        max-width: calc(100vw - 84px) !important;
        max-height: calc(100vh - 66px) !important;
        max-height: calc(100dvh - 66px) !important;
    }

    .emmg-gallery-v2__lightbox-button {
        width: 38px !important;
        height: 38px !important;
        font-size: 36px !important;
    }

    .emmg-gallery-v2__lightbox-close {
        top: 6px !important;
        right: 8px !important;
    }

    .emmg-gallery-v2__lightbox-prev {
        left: 2px !important;
    }

    .emmg-gallery-v2__lightbox-next {
        right: 2px !important;
    }
}
