.car-gallery {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-main {
    position: relative;
    background: #F3F4F6;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1A3263;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #0f1f3d;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 50, 99, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-thumb {
    background: #F3F4F6;
    border: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #1A3263;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .car-gallery {
        padding: 1.5rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn i {
        font-size: 14px;
    }

    .carousel-counter {
        font-size: 13px;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .car-gallery {
        padding: 1rem;
    }

    .car-gallery h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    .gallery-main {
        margin-bottom: 1rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    .carousel-btn i {
        font-size: 12px;
    }

    .carousel-btn-prev {
        left: 0.5rem;
    }

    .carousel-btn-next {
        right: 0.5rem;
    }

    .carousel-counter {
        font-size: 12px;
        padding: 0.35rem 0.7rem;
        bottom: 0.5rem;
    }

    .gallery-thumbnails {
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .car-gallery {
        padding: 0.75rem;
    }

    .car-gallery h3 {
        font-size: 1.125rem !important;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .carousel-btn {
        width: 28px;
        height: 28px;
    }

    .carousel-btn i {
        font-size: 10px;
    }
}
