﻿.slider-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 20px;
}

/* Main Image Area */
.main-image-wrapper {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #fff;
}

#main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* Thumbnails Container */
.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* Thumbnail Images */
.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    opacity: 0.7;
}

    .thumb:hover {
        transform: scale(1.05);
        opacity: 1;
    }

    .thumb.active {
        border-color: #000;
        opacity: 1;
    }

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 40%; /* Center relative to main image */
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}

    .nav-btn:hover {
        background-color: #fff;
    }

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* Hide the buttons outside the main image on mobile if desired */
@media (max-width: 500px) {
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 35%;
    }
}
