.com-gallery4j {
    --g4j-gap: clamp(1rem, 2vw, 1.5rem);
    --g4j-radius: var(--border-radius-lg, .75rem);
    --g4j-border: var(--border-color, #dfe3e7);
    --g4j-surface: var(--body-bg, #fff);
    --g4j-muted: var(--secondary-color, #667085);
    --g4j-shadow: 0 .4rem 1.4rem rgb(0 0 0 / .08);
}

.g4j-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-block-end: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--g4j-border);
    border-radius: var(--g4j-radius);
    background: var(--g4j-surface);
}

.g4j-filter__search {
    flex: 1 1 18rem;
}

.g4j-filter__category {
    flex: 0 1 18rem;
}

.g4j-album-grid,
.g4j-image-grid {
    display: grid;
    grid-template-columns: repeat(var(--g4j-columns, 3), minmax(0, 1fr));
    gap: var(--g4j-gap);
}

.g4j-album-card,
.g4j-image-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--g4j-border);
    border-radius: var(--g4j-radius);
    background: var(--g4j-surface);
    box-shadow: var(--g4j-shadow);
}

.g4j-album-card {
    display: flex;
    flex-direction: column;
}

.g4j-album-card__image,
.g4j-image-card__link {
    position: relative;
    display: block;
    overflow: hidden;
    background: color-mix(in srgb, var(--g4j-border) 45%, transparent);
}

.g4j-album-card__image {
    aspect-ratio: 3 / 2;
}

.g4j-image-card__link {
    aspect-ratio: 3 / 2;
}

.g4j-album-card__image img,
.g4j-image-card__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.g4j-album-card__image:hover img,
.g4j-image-card__link:hover img {
    transform: scale(1.025);
}

.g4j-album-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--g4j-muted);
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.g4j-album-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .7rem;
    padding: 1rem;
}

.g4j-album-card__title,
.g4j-image-card__title {
    margin: 0;
    line-height: 1.25;
}

.g4j-album-card__title {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.g4j-album-card__title a {
    color: inherit;
    text-decoration: none;
}

.g4j-album-card__title a:hover,
.g4j-album-card__title a:focus-visible,
.g4j-album-card__link:hover,
.g4j-album-card__link:focus-visible {
    text-decoration: underline;
}

.g4j-album-card__description,
.g4j-image-card__description {
    margin: 0;
    color: var(--g4j-muted);
}

.g4j-album-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-block-start: auto;
    padding-block-start: .3rem;
}

.g4j-album-card__count {
    color: var(--g4j-muted);
    font-size: .9rem;
}

.g4j-album-card__link {
    font-weight: 600;
}

.g4j-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.g4j-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: .15rem .55rem;
    border: 1px solid var(--g4j-border);
    border-radius: 999px;
    color: var(--g4j-muted);
    background: color-mix(in srgb, var(--g4j-surface) 85%, var(--g4j-border));
    font-size: .78rem;
    line-height: 1.2;
}

.g4j-pagination {
    margin-block-start: 2rem;
}

.g4j-album-header {
    margin-block-end: 1.5rem;
}

.g4j-album-header > h1 {
    margin-block-end: .75rem;
}

.g4j-album-description {
    margin-block-start: 1rem;
}

.g4j-image-card {
    display: flex;
    flex-direction: column;
}

.g4j-image-card__caption {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .85rem 1rem 1rem;
}

.g4j-image-card__title {
    font-size: 1rem;
}

.g4j-image-card__description {
    font-size: .92rem;
}

.g4j-lightbox {
    width: min(96vw, 110rem);
    height: min(94vh, 70rem);
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--g4j-radius);
    color: #fff;
    background: rgb(12 15 20 / .98);
}

.g4j-lightbox::backdrop {
    background: rgb(0 0 0 / .82);
    backdrop-filter: blur(3px);
}

.g4j-lightbox__stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #fff;
    background: rgb(12 15 20 / .98);
}

.g4j-lightbox__stage:fullscreen,
.g4j-lightbox__stage:-webkit-full-screen,
.g4j-lightbox__stage--viewport-fullscreen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

.g4j-lightbox__stage:fullscreen,
.g4j-lightbox__stage:-webkit-full-screen {
    margin: 0;
}

.g4j-lightbox--viewport-fullscreen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
}

html.g4j-fullscreen-open {
    overflow: hidden;
}

.g4j-lightbox__content {
    display: grid;
    width: 100%;
    height: 100%;
    padding: clamp(2.75rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6.5rem) 1rem;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: .75rem;
}

.g4j-lightbox__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.g4j-lightbox__caption {
    max-width: 70rem;
    margin-inline: auto;
    text-align: center;
}

.g4j-lightbox__title {
    margin: 0 0 .25rem;
    color: inherit;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.g4j-lightbox__description {
    margin: 0;
    color: rgb(255 255 255 / .78);
}

.g4j-lightbox__close,
.g4j-lightbox__slideshow,
.g4j-lightbox__fullscreen,
.g4j-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: rgb(0 0 0 / .42);
    cursor: pointer;
}

.g4j-lightbox__close:hover,
.g4j-lightbox__slideshow:hover,
.g4j-lightbox__fullscreen:hover,
.g4j-lightbox__nav:hover,
.g4j-lightbox__close:focus-visible,
.g4j-lightbox__slideshow:focus-visible,
.g4j-lightbox__fullscreen:focus-visible,
.g4j-lightbox__nav:focus-visible {
    background: rgb(255 255 255 / .18);
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.g4j-lightbox__toolbar {
    position: absolute;
    z-index: 3;
    inset-block-start: .75rem;
    inset-inline-end: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.g4j-lightbox__toolbar .g4j-lightbox__close,
.g4j-lightbox__toolbar .g4j-lightbox__slideshow,
.g4j-lightbox__toolbar .g4j-lightbox__fullscreen {
    position: static;
}

.g4j-lightbox__close {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.g4j-lightbox__slideshow,
.g4j-lightbox__fullscreen {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    font-size: .9rem;
    line-height: 1;
}

.g4j-lightbox__slideshow-icon,
.g4j-lightbox__fullscreen-icon {
    min-width: 1.1em;
    text-align: center;
}

.g4j-lightbox__nav {
    inset-block-start: 50%;
    width: 3rem;
    height: 4.5rem;
    transform: translateY(-50%);
    font-size: 3rem;
    line-height: 1;
}

.g4j-lightbox__prev {
    inset-inline-start: .5rem;
    border-radius: 0 .5rem .5rem 0;
}

.g4j-lightbox__next {
    inset-inline-end: .5rem;
    border-radius: .5rem 0 0 .5rem;
}

@media (max-width: 900px) {
    .g4j-album-grid,
    .g4j-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .g4j-filter > * {
        flex-basis: 100%;
        width: 100%;
    }

    .g4j-album-grid,
    .g4j-image-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .g4j-lightbox {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .g4j-lightbox__content {
        padding-inline: 2.5rem;
    }

    .g4j-lightbox__nav {
        width: 2.3rem;
    }

    .g4j-lightbox__slideshow,
    .g4j-lightbox__fullscreen {
        width: 2.6rem;
        justify-content: center;
        padding-inline: 0;
    }

    .g4j-lightbox__slideshow [data-g4j-slideshow-label],
    .g4j-lightbox__fullscreen [data-g4j-fullscreen-label] {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.g4j-load-more {
    display: flex;
    justify-content: center;
    margin-block-start: 1.75rem;
}

.g4j-load-more[hidden] {
    display: none;
}

.g4j-image-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-block-start: 1.75rem;
}

.g4j-image-pagination > span {
    color: var(--g4j-muted);
    font-size: .95rem;
}
