.carousel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 600px;
}

.carousel-wrapper {
    display: flex;
    transition: transform var(--transition-slow);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

.carousel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    color: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.carousel-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.photographer-name {
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: 1rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-sm);
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    min-width: 45px; /* Prevent shrinking */
    min-height: 45px; /* Prevent shrinking */
    padding: 0; /* Remove default button padding */
    border-radius: 10px; /* Square with rounded corners */
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent flex shrinking */
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
    background: var(--accent-cyan);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: var(--text-secondary);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .carousel-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 1.2rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 1rem;
        border-radius: 7px;
    }
}
