.custom-gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #0f172a;
    font-family: inherit;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    height: 450px;
}

.carousel-slide img, .carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
    transition: transform 0.8s ease;
}

.carousel-slide:hover img {
    transform: scale(1.03);
}

/* Элегантный градиент для текста */
.carousel-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    color: #fff;
    padding: 30px 25px 20px 25px;
    backdrop-filter: blur(4px);
}

.carousel-caption-overlay h5 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    color: #f8fafc;
}

.carousel-caption-overlay p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

/* Футуристичные кнопки управления в стиле Glassmorphism */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn-prev { left: 20px; }
.carousel-btn-next { right: 20px; }

/* Красивые точки-индикаторы снизу */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    right: 25px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    width: 24px;
    border-radius: 4px;
    background: #38bdf8;
}

@media (max-width: 768px) {
    .carousel-slide { height: 320px; }
    .carousel-btn { width: 38px; height: 38px; font-size: 14px; }
    .carousel-caption-overlay h5 { font-size: 16px; }
}