/* ===== WRAPPER ===== */
.e1-lp-wrapper {
    position: relative;
    margin: 0 0 2rem;
    padding: 0 40px; /* prostor za strelice */
    overflow: hidden;
}

/* ===== VIEWPORT / TRACK ===== */
.e1-lp-viewport {
    overflow: hidden;
    width: 100%;
}
.e1-lp-track {
    display: flex;
    transition: transform .45s ease;
    will-change: transform;
}

/* ===== KARTICA ===== */
.e1-lp-card {
    flex: 0 0 20%; /* 5 na desktopu */
    max-width: 20%;
    padding: 0 .5rem;
    box-sizing: border-box;
}

.e1-lp-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--wp--preset--color--base, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.e1-lp-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.e1-lp-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}
.e1-lp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.e1-lp-link:hover .e1-lp-thumb img { transform: scale(1.05); }

.e1-lp-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eee, #ddd);
}

.e1-lp-body {
    padding: .85rem 1rem 1rem;
}
.e1-lp-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

/* ===== STRELICE ===== */
.e1-lp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.e1-lp-arrow:hover { background: rgba(0,0,0,.8); }
.e1-lp-prev { left: 6px; }
.e1-lp-next { right: 6px; }

/* ===== TOČKICE ===== */
.e1-lp-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: .85rem;
}
.e1-lp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.25);
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.e1-lp-dot.is-active {
    background: rgba(0,0,0,.75);
    transform: scale(1.2);
}

/* ===== RESPONZIVNO ===== */
@media (max-width: 1024px) {
    .e1-lp-card { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (max-width: 767px) {
    .e1-lp-wrapper { padding: 0 8px; }
    .e1-lp-card { flex: 0 0 100%; max-width: 100%; }
}