html {
    scroll-behavior: smooth;
}

body {
    font-family: "Playfair Display", serif;
}

/* Container */
.vehicle-detail.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    margin-bottom: 40px;
    margin-top: 35px;
}

.crumb {
    position: relative;
    background: #4dd0e1;
    color: #666666;
    padding: 8px 20px 8px 30px;
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 5px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%, 10% 50%);
    transition: opacity 0.3s ease;
}

.crumb:hover {
    opacity: 0.8;
}

.crumb.home {
    padding-left: 20px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

.crumb.current {
    background: #4dd0e1; 
    opacity: 0.8;
}

/* Page Title */
.vehicle-detail h1 {
    text-align: center;
    font-size: 3rem;
    color: #50c5c8;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Vehicle Description */
.vehicle-description {
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: center;
}

.vehicle-description p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Enquire Button Wrapper */
.enquire-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px;
}

.enquire-btn {
    background-color: #ec3335;
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.enquire-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* Vehicle Gallery - Grid Layout */
.vehicle-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
}

/* Make first 3 images slightly larger */
.gallery-item:nth-child(1),
.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
    grid-column: span 1;
}

/* Responsive Layout for Gallery */
@media (max-width: 1024px) {
    .vehicle-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .vehicle-detail h1 {
        font-size: 2.5rem;
    }
    
    .vehicle-description p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .vehicle-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vehicle-detail h1 {
        font-size: 2rem;
    }
    
    .vehicle-description p {
        font-size: 0.95rem;
    }
    
    .enquire-btn {
        padding: 12px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .vehicle-detail.container {
        padding: 20px 15px;
    }
    
    .vehicle-detail h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .breadcrumbs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .crumb {
        font-size: 0.8rem;
        padding: 6px 15px 6px 25px;
    }
}

/* ============================================
   VEHICLE LIGHTBOX MODAL - ENHANCED STYLES
   ============================================ */

.vehicle-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.vehicle-lightbox-modal.active {
    display: flex;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Navigation Arrows */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    z-index: 10001;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
}

/* Content Wrapper */
.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Lightbox Image */
.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Image Counter */
.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: -40px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .lightbox-image {
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 35px;
        padding: 10px;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
    
    .lightbox-counter {
        bottom: -35px;
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}