.ppml-masonry {
    background: transparent !important;
    column-count: var(--ppml-columns, 3);
    column-gap: var(--ppml-gap, 24px);
    padding: 0 !important;
}

.ppml-project {
    background: transparent !important;
    border: 0 !important;
    break-inside: avoid;
    box-shadow: none !important;
    display: block;
    margin: 0 0 var(--ppml-gap, 24px);
    outline: 0 !important;
    padding: 0 !important;
}

.ppml-project-button {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    display: block;
    margin: 0 !important;
    outline: 0;
    overflow: visible !important;
    padding: 0 !important;
    position: relative;
    text-align: left;
    text-decoration: none !important;
    width: 100%;
}

.ppml-project-button::before,
.ppml-project-button::after {
    display: none !important;
}

.ppml-project-button:hover img,
.ppml-project-button:focus-visible img {
    filter: none;
}

.ppml-project-button:focus-visible {
    outline: 0;
}

.ppml-project-button img,
.ppml-project-placeholder {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
    height: auto;
    min-height: 180px;
    object-fit: cover;
    outline: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.ppml-project-button figure,
.ppml-project-button picture,
.ppml-project-button .wp-caption,
.ppml-project-button .wp-block-image {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
}

.ppml-project-placeholder {
    align-items: center;
    color: #666;
    display: flex;
    justify-content: center;
}

.ppml-project-title {
    color: inherit;
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    padding: 10px 0 0;
    position: static;
}

.ppml-lightbox-open {
    overflow: hidden;
}

.ppml-lightbox {
    display: none;
    inset: 0;
    position: fixed;
    z-index: 999999;
}

.ppml-lightbox.is-open {
    display: block;
}

.ppml-lightbox-backdrop {
    background: rgba(0, 0, 0, 0.88);
    inset: 0;
    position: absolute;
}

.ppml-lightbox-dialog {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 56px 72px;
    position: absolute;
}

.ppml-lightbox-figure {
    margin: 0;
    max-height: 100%;
    max-width: 100%;
}

.ppml-lightbox-image {
    display: block;
    max-height: calc(100vh - 150px);
    max-width: calc(100vw - 160px);
    object-fit: contain;
}

.ppml-lightbox-caption {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    line-height: 1.4;
    padding-top: 12px;
}

.ppml-lightbox-title {
    font-size: 17px;
    font-weight: 700;
}

.ppml-lightbox-counter {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    white-space: nowrap;
}

.ppml-lightbox-close,
.ppml-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    position: absolute;
}

.ppml-lightbox-close {
    border-radius: 50%;
    font-size: 34px;
    height: 44px;
    line-height: 1;
    right: 22px;
    top: 18px;
    width: 44px;
}

.ppml-lightbox-nav {
    border-radius: 8px;
    font-size: 58px;
    height: 78px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
}

.ppml-lightbox-prev {
    left: 18px;
}

.ppml-lightbox-next {
    right: 18px;
}

@media (max-width: 900px) {
    .ppml-masonry {
        column-count: var(--ppml-tablet-columns, 2);
    }
}

@media (max-width: 640px) {
    .ppml-masonry {
        column-count: 1;
    }

    .ppml-lightbox-dialog {
        padding: 58px 16px 28px;
    }

    .ppml-lightbox-image {
        max-height: calc(100vh - 160px);
        max-width: calc(100vw - 32px);
    }

    .ppml-lightbox-nav {
        bottom: 18px;
        height: 46px;
        top: auto;
        transform: none;
        width: 46px;
    }

    .ppml-lightbox-prev {
        left: 18px;
    }

    .ppml-lightbox-next {
        right: 18px;
    }
}
