.gallery-tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pt-cv-content-item .pt-cv-thumbnail {
    object-fit: contain;
    object-position: left center;
}

#main :is(#pt-cv-view-4f5f45ax0c, #pt-cv-view-8d260a9bnf) .pt-cv-ifield > .pt-cv-href-thumbnail {
    margin-bottom: 15px !important;
}

.pt-cv-same-height > .pt-cv-page {
    display: flex;
    flex-wrap: wrap;
}

.pt-cv-same-height > .pt-cv-page > .pt-cv-content-item > .pt-cv-ifield {
    height: 100%;
}

.gallery-open-filters,
.wpc-filter-chips-list:empty {
    display: none;
}

.gallery-classification-archive .gb-container-ec5acdb0 {
    display: none;
}

#primary:has(.pt-cv-no-post) .wpc-filters-widget-top-container:has(.wpc-filter-chip) {
    display: block;
}

.woocommerce-product-gallery:not(:has(.woocommerce-product-gallery__image)) {
    display: none;
}

@media (max-width: 768px) {
    body:not(.gallery-filters-ready) .wpc-filters-main-wrap .wpc-filters-widget-content {
        display: block;
        position: static;
        visibility: visible;
        opacity: 1;
        height: auto;
        transform: none;
    }

    .gallery-filters-ready .gallery-open-filters {
        display: inline-block;
        margin-bottom: 1rem;
    }

    .gallery-filters-ready:not(.gallery-filters-open) .wpc-filters-main-wrap .wpc-filters-widget-content {
        display: none;
    }

    .gallery-filters-ready.gallery-filters-open .wpc-filters-main-wrap .wpc-filters-widget-content {
        display: flex;
        flex-direction: column;
        position: fixed;
        z-index: 100001;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        overflow: auto;
        background: #fff;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .gallery-filters-open {
        overflow: hidden;
    }

    .gallery-filters-open .wpc-filters-scroll-container,
    .gallery-filters-open .wpc-filters-widget-containers-wrapper {
        padding-inline: 1rem;
    }

    .gallery-filters-open .wpc-widget-close-container,
    .gallery-filters-open .wpc-filters-widget-controls-container,
    .gallery-filters-open .wpc-filters-widget-top-container:has(.wpc-filter-chip) {
        display: block;
    }

    .gallery-filters-open .wpc-widget-close-container {
        padding-inline: 1rem;
    }
}
