.lpb-grid-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;

    -webkit-overflow-scrolling: touch;
}

.lpb-grid-container::-webkit-scrollbar {
    display: none;
}

.lpb-grid-item {
    flex: 0 0 80%;
    max-width: 80%;
    height: 260px;

    display: flex;
    align-items: flex-end;
    padding: 1rem;

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    border-radius: 24px;
    text-decoration: none;
    color: #fff;

    scroll-snap-align: start;

    position: relative;
    overflow: hidden;

    transition: transform .35s ease, box-shadow .35s ease;
}

.lpb-grid-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.15)
    );
    transition: opacity .3s ease;
}

.lpb-title {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: white;
      display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  overflow: hidden;
}

.lpb-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,.25);
}

.lpb-grid-item:hover::before {
    opacity: .85;
}

.lpb-carousel-wrapper {
    position: relative;
}

.lpb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    padding: 0;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background .3s ease, transform .3s ease;
}

.lpb-arrow img {
    width: 32px;
    height: 32px;
    filter: brightness(10);
}

.lpb-arrow:hover {
    background: none;
    filter: brightness(8);
}

.lpb-arrow-left {
    left: 10px;
}

.lpb-arrow-right {
    right: 10px;
}

@media (min-width: 1024px) {
    .lpb-grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
    }

    .lpb-grid-item {
        flex: initial;
        max-width: 100%;
        height: 300px;
    }

    .lpb-arrow {
        display: none;
    }
}
