.empc-carousel,
.empc-carousel * { box-sizing: border-box; }

.empc-carousel { position: relative; width: 100%; max-width: 100%; }
.empc-swiper { position: relative; width: 100%; max-width: 100%; overflow: hidden; }

/* Swiper fallback styles. Some Elementor sites do not load Swiper CSS on custom widgets. */
.empc-swiper .swiper-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
    align-items: flex-start;
}
.empc-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: auto !important;
    flex-shrink: 0;
    overflow: visible;
    display: block;
}

.empc-grid {
    --empc-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--empc-columns), minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 20px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.empc-item,
.empc-card,
.empc-card-link,
.empc-template-content { min-width: 0; max-width: 100%; }
.empc-item { width: 100%; display: block; overflow: visible; }
.empc-template-content { width: 100%; display: block; }

/* Keep Elementor Loop template content inside the grid column without stripping its own design. */
.empc-template-content > .elementor,
.empc-template-content > .elementor-location-single,
.empc-template-content > .elementor-location-archive,
.empc-template-content .e-loop-item,
.empc-template-content .elementor-section-wrap,
.empc-template-content .elementor-section,
.empc-template-content .e-con,
.empc-template-content .e-container,
.empc-template-content .elementor-widget-wrap {
    max-width: 100%;
}
.empc-template-content > .elementor,
.empc-template-content .elementor-section,
.empc-template-content .e-con,
.empc-template-content .e-container { width: 100%; }
.empc-template-content .elementor-section.elementor-section-boxed > .elementor-container { max-width: 100%; }
.empc-template-content img { max-width: 100%; height: auto; }

.empc-equal-height .empc-grid { align-items: stretch; }
.empc-equal-height .empc-item,
.empc-equal-height .empc-template-content,
.empc-equal-height .empc-template-content > .elementor,
.empc-equal-height .empc-card,
.empc-equal-height .empc-card-link { height: 100%; }

.empc-card { background: #fff; border: 1px solid rgba(0,0,0,.08); overflow: hidden; height: 100%; }
.empc-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.empc-card-link:hover { color: inherit; text-decoration: none; }
.empc-thumb img { display: block; width: 100%; height: 180px; object-fit: cover; }
.empc-content { padding: 16px; }
.empc-title { margin: 0 0 8px; font-size: 18px; line-height: 1.25; }
.empc-meta { margin-bottom: 8px; font-size: 13px; opacity: .7; }
.empc-excerpt { font-size: 14px; line-height: 1.5; }

.empc-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.16);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    padding: 0;
    line-height: 1;
    appearance: none;
}
.empc-arrow svg { display: block; width: 22px; height: 22px; fill: currentColor; stroke: currentColor; pointer-events: none; }
.empc-arrow .empc-default-arrow { font-size: 30px; line-height: 1; transform: translateY(-1px); }
.empc-prev { left: 10px; }
.empc-next { right: 10px; }
.empc-arrow.swiper-button-disabled { opacity: .35; cursor: not-allowed; }

.empc-pagination { position: static; margin-top: 20px; text-align: center; line-height: 1; width: 100%; }
.empc-pagination .swiper-pagination-bullet { width: 8px; height: 8px; display: inline-block; margin: 0 4px; opacity: .35; transition: all .25s ease; vertical-align: middle; cursor: pointer; }
.empc-pagination .swiper-pagination-bullet-active { opacity: 1; }

.empc-carousel.empc-no-slider .empc-arrow,
.empc-carousel.empc-no-slider .empc-pagination { display: none !important; }

@media (max-width: 1024px) { .empc-grid { --empc-columns: 2; } }
@media (max-width: 767px) { .empc-grid { --empc-columns: 1; } .empc-thumb img { height: 220px; } }
