/* Stone Projects Gallery Module - Carousel Style */

.stone_projects_gallery_section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    color: #2A303F;
    margin: 0;
    text-align: left;
}

.carousel-controls {
    display: flex;
    gap: 12px;
}

.projects-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    width: 100%;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

.projects-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.projects-track {
    display: flex;
    gap: 24px;
    padding: 4px;
}

.project-item {
    position: relative;
    flex: 0 0 calc(33.333% - 16px); /* 3 items per row */
    min-width: 300px;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-image-wrapper {
    position: relative;
    width: 100%  ;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background-color: #e0e0e0;
}

.project-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%);
    padding: 20px 15px 15px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
}

.project-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Navigation Arrows */
.carousel-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #2A303F;
    color: #2A303F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
    padding: 0;
}

.carousel-nav:hover {
    background-color: #2A303F;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.no-projects {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 40px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-item {
        flex: 0 0 calc(50% - 12px); /* 2 items on tablets */
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .stone_projects_gallery_section {
        padding: 40px 0;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .projects-track {
        gap: 16px;
    }
    
    .project-item {
        min-width: 240px;
    }
}

@media (max-width: 480px) {
    .project-item {
        flex: 0 0 calc(100% - 8px); /* 1 item on mobile */
        min-width: 200px;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
    }
}
