:root {
    --acsp-bg: #fff;
    --acsp-border: #eee;
    --acsp-text: #333;
    --acsp-muted: #666;
    --acsp-radius: 4px;
    --acsp-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --acsp-transition: 0.3s ease;
}

.acsp-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    --acsp-current-bg: var(--acsp-bg);
    --acsp-current-border: var(--acsp-border);
    --acsp-current-shadow: var(--acsp-shadow);
    --acsp-current-radius: var(--acsp-radius);
}
.acsp-container:focus { outline: none; }
.acsp-fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.acsp-viewport {
    overflow: hidden;
    width: 100%;
}
.acsp-track {
    display: flex;
    column-gap: 10px;
    transition: transform var(--acsp-transition);
    will-change: transform;
}

.acsp-item {
    flex-shrink: 0;
    box-sizing: border-box;
}
.acsp-item-inner {
    background: var(--acsp-current-bg);
    border: 1px solid var(--acsp-current-border);
    border-radius: var(--acsp-current-radius);
    overflow: hidden;
    box-shadow: var(--acsp-current-shadow);
}
.acsp-item.acsp-no-border .acsp-item-inner {
    border: none;
    box-shadow: none;
    background: transparent;
}
.acsp-item.acsp-transparent-bg .acsp-item-inner {
    background: transparent !important;
}

.acsp-image {
    display: block;
    width: 100%;
    height: auto;
}
.acsp-image-crop { object-fit: cover; }
.acsp-image-pad {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.acsp-item-title {
    font-size: 1.1em;
    margin: 10px 15px 5px;
    line-height: 1.3;
}
.acsp-item-content {
    font-size: 0.9em;
    color: var(--acsp-muted);
    margin: 0 15px 15px;
}

/* Navigation */
.acsp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.acsp-arrow:hover { background: #fff; }
.acsp-prev { left: 10px; }
.acsp-next { right: 10px; }

.acsp-dots {
    text-align: center;
    margin-top: 10px;
}
.acsp-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    margin: 0 5px;
    cursor: pointer;
    padding: 0;
}
.acsp-dot.active { background: #333; }

.acsp-thumbs {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
}
.acsp-thumb {
    width: 50px;
    height: 50px;
    background-size: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 3px;
}
.acsp-thumb.active { border-color: #0073aa; }

/* Lightbox */
.acsp-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}
.acsp-lightbox-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    max-width: 80%;
    text-align: center;
}
.acsp-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
}
.acsp-lightbox-close {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
.acsp-lightbox-caption {
    color: #fff;
    margin-top: 10px;
}

/* Mode-specific */
.acsp-mode-fade .acsp-track { position: relative; height: 200px; }
.acsp-mode-fade .acsp-item {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.5s;
}

.acsp-mode-grid .acsp-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    transform: none !important;
}
.acsp-mode-grid .acsp-item { width: auto !important; }

.acsp-mode-ticker .acsp-track {
    transition: none;
    display: flex;
    width: max-content;
}

.acsp-mode-coverflow .acsp-item { transition: transform 0.5s, opacity 0.5s; }
.acsp-mode-cube .acsp-item,
.acsp-mode-flip .acsp-item { transition: transform 0.5s; transform-style: preserve-3d; }

.acsp-mode-kenburns .acsp-image { animation: kenburns 5s ease-in-out infinite; }
@keyframes kenburns {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.acsp-mode-parallax .acsp-item-inner { overflow: hidden; }
.acsp-mode-parallax .acsp-image { transform: scale(1.2); transition: transform 0.5s; }
.acsp-mode-parallax .acsp-item.active .acsp-image { transform: scale(1); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .acsp-arrow {
        width: 30px;
        height: 30px;
    }
    .acsp-arrow span { font-size: 1.2em; }
}