.sj-project-gallery {
    position: relative;
    margin: 0;
    overflow: visible;
}

.sj-project-gallery-track {
    overflow: hidden;
}

.sj-project-gallery-list {
    display: flex;
    transition: transform 400ms ease;
    will-change: transform;
}

.sj-project-gallery-slide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 100%;
    gap: clamp(12px, 2vw, 20px);
}

.sj-project-gallery-item {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 24px;
    background: #f2f2f2;
}

.sj-project-gallery-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    border-radius: inherit;
}

.sj-project-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 500ms ease;
}

.sj-project-gallery-trigger:hover .sj-project-gallery-image,
.sj-project-gallery-trigger:focus-visible .sj-project-gallery-image {
    transform: scale(1.08);
}

.sj-project-gallery-arrows {
    pointer-events: none;
}

.sj-project-gallery-arrow {
    position: absolute;
    top: calc(50% - 12px);
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bricks-color-fkwvsu, #fff);
    cursor: pointer;
    pointer-events: auto;
    font-size: 24px;
    transition: opacity 200ms ease, transform 200ms ease;
}

.sj-project-gallery-arrow:hover,
.sj-project-gallery-arrow:focus-visible {
    opacity: 0.75;
    transform: translateY(-1px);
}

.sj-project-gallery-arrow svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.sj-project-gallery-arrow-prev {
    left: -34px;
    transform: rotate(180deg);
}

.sj-project-gallery-arrow-prev:hover,
.sj-project-gallery-arrow-prev:focus-visible {
    transform: rotate(180deg) translateY(-1px);
}

.sj-project-gallery-arrow-next {
    right: -34px;
}

.sj-project-gallery-lightbox[hidden] {
    display: none;
}

.sj-project-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(18px, 4vw, 48px);
    background: rgba(0, 0, 0, 0.86);
}

.sj-project-gallery-lightbox-track {
    width: min(100%, 1200px);
    overflow: hidden;
}

.sj-project-gallery-lightbox-list {
    display: flex;
    transition: transform 400ms ease;
    will-change: transform;
}

.sj-project-gallery-lightbox-slide {
    display: grid;
    place-items: center;
    flex: 0 0 100%;
}

.sj-project-gallery-lightbox-slide img {
    display: block;
    max-width: min(100%, 1200px);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
}

.sj-project-gallery-lightbox-arrows {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sj-project-gallery-lightbox-arrow {
    top: calc(50% - 12px);
}

.sj-project-gallery-lightbox-arrow.sj-project-gallery-arrow-prev {
    left: clamp(18px, 4vw, 52px);
}

.sj-project-gallery-lightbox-arrow.sj-project-gallery-arrow-next {
    right: clamp(18px, 4vw, 52px);
}

.sj-project-gallery-lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.sj-project-gallery-lightbox-open {
    overflow: hidden;
}
