.fayl-slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.fayl-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.fayl-slide {
    min-width: 100%;
}

.fayl-slide img {
    width: 100%;
    display: block;
}

/* стрелки */
.fayl-prev, .fayl-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.fayl-prev { left: 10px; }
.fayl-next { right: 10px; }

/* миниатюры */
.fayl-thumbs {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    overflow-x: auto;
}

.fayl-thumbs img {
    width: 100px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
}

.fayl-thumbs img.active {
    opacity: 1;
    border-color: #fff;
}

.fayl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.fayl-item {
    position: relative;
}

.fayl-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.fayl-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
}