.curved-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 100vh;
    cursor: grab;
}

.curved-slider-container:active {
    cursor: grabbing;
}

.curved-slider-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.hidden-gallery {
    display: none;
}

.gallery-item {
    display: none;
}

/* در curved-slider.css، این استایل را اضافه کنید */
.curved-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 100vh;
    cursor: grab;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
}

/* برای حالت ویرایشگر */
.elementor-editor-active .curved-slider-container {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.curved-slider-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.curved-slider-lightbox.active {
    display: block;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    max-height: 60vh;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-info {
    padding: 30px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.image-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.image-description {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

.image-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.image-link {
    display: inline-block;
    padding: 10px 20px;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.image-link:hover {
    background: #3182ce;
}


@media (max-width: 767px) {
    .curved-slider-container {
        min-height: 50vh;
    }

    .lightbox-content {
        flex-direction: column;
        width: 95%;
        height: auto;
        max-height: 80%;
    }

    .lightbox-image-container {
        max-height: 40vh;
    }

    .lightbox-info {
        padding: 20px;
    }

    .image-title {
        font-size: 20px;
    }

    .image-description {
        font-size: 14px;
    }
}


.drag-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}