* {
    box-sizing: border-box;
}

.slideshow-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    /* Parent container can set height/width constraints */
    /* The component will scale to fill its parent while maintaining proportions */
}

/* Slides */
.slides-wrapper {
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: none;
}

.slide.active {
    opacity: 1;
    position: relative;
}

/* Slide content */
.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    color: white;
}

.slide-title {
    display: none;
}

.slide-description {
    display: none;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

/* Transition animations */
.fade-enter {
    animation: fadeIn var(--transition-duration, 0.6s) ease-in-out forwards;
}

.fade-exit {
    animation: fadeOut var(--transition-duration, 0.6s) ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.push-left-enter {
    animation: slideInFromRight var(--transition-duration, 0.7s) ease-out forwards;
}

.push-left-exit {
    animation: slideOutToLeft var(--transition-duration, 0.7s) ease-out forwards;
}

.push-right-enter {
    animation: slideInFromLeft var(--transition-duration, 0.7s) ease-out forwards;
}

.push-right-exit {
    animation: slideOutToRight var(--transition-duration, 0.7s) ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 1;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 1;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 1;
    }
}

/* Fade in only - new image fades in while old image stays visible */
.fade-in-only-enter {
    animation: fadeInOnly var(--transition-duration, 0.6s) ease-in-out forwards;
}

.fade-in-only-exit {
    animation: none;
    opacity: 1;
}

@keyframes fadeInOnly {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Timeline */
.timeline-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.timeline-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.timeline-current-time {
    min-width: 32px;
    text-align: right;
}

.play-pause-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    color: white;
    transition: background-color 0.2s;
}

.play-pause-btn:hover {
    color: lightgray;
}

.play-pause-btn span {
    margin: 0;
    font-size: 0.9rem;
}

.timeline-track {
    position: relative;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 0;
    flex: 1;
}

.timeline-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.timeline-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid lightgray;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: left 0.1s linear;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-handle:hover {
    background: lightgray;
}

.timeline-handle:active {
    cursor: grabbing;
}

.timeline-labels {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
    justify-content: flex-end;
}

/* Controls */
.controls-container {
    display: none;
}

.controls-container button {
    font-size: 0.95rem;
    padding: 8px 16px;
}

.controls-container button span {
    margin-right: 5px;
}

/* Dots indicator */
.dots-container {
    display: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #667eea;
    width: 32px;
    border-radius: 6px;
}

.dot:hover {
    background: #999;
}

/* Touch Indicators */
.touch-indicators {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.touch-indicator {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 5px solid rgba(128, 128, 128, 0.8);
    background: rgba(220, 220, 220, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    z-index: 20;
}

@keyframes fadeOutTouchIndicator {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.touch-indicators.fade-out {
    animation: fadeOutTouchIndicator 0.6s ease-in-out forwards;
}

.slide-description {
    font-size: 1rem;
}

.slide-content {
}

.controls-container {
    flex-wrap: wrap;
}

.controls-container button {
    font-size: 0.85rem;
    padding: 6px 12px;
}