/* Portfolio Gallery Styles */
.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.gallery-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 10px 0;
    min-height: 400px;
    align-items: center;
}

.gallery-slide.loading {
    opacity: 0.7;
    pointer-events: none;
}

.gallery-image-container {
    flex: 0 0 calc(33.333% - 14px);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: scale(0.9);
}

.gallery-image-container.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.gallery-image-container.loaded .gallery-image {
    opacity: 1;
}

.gallery-caption {
    text-align: center;
    margin-top: 20px;
    color: #333;
    font-size: 1rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #497EE6;
    border: 2px solid #fff;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #3a6fd1;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Pagination */
.gallery-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: #497EE6;
    transform: scale(1.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .gallery-image-container {
        flex: 0 0 calc(50% - 10px);
    }
    
    .gallery-slide {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .gallery-image-container {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .gallery-slide {
        padding: 0;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-image {
        height: 250px;
    }
}
