
/* Hero Section */
.ved-gallery-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(13, 81, 132, 0.5) 100%), 
                url('https://images.pexels.com/photos/3825581/pexels-photo-3825581.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.ved-gallery-hero:before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--secondary);
    transform: skewY(-3deg);
}

.ved-gallery-hero h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ved-gallery-hero .lead {
    font-weight: 300;
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Project Gallery Section */
.ved-project-gallery {
    padding: 80px 0;
    background: url('https://images.pexels.com/photos/3825573/pexels-photo-3825573.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center;
    background-size: cover;
    position: relative;
}

.ved-project-gallery:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.ved-section-title {
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ved-section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gray);
}

.ved-project-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, #333333 100%);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.ved-project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.ved-project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.ved-project-card:hover img {
    transform: scale(1.1);
}

.ved-project-card h3 {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.25rem;
    z-index: 1;
    position: relative;
	text-align:center
}

.ved-project-card .description {
    color: var(--secondary);
    margin-bottom: 15px;
    overflow: hidden;
    max-height: 80px;
    transition: all 0.5s ease;
    flex-grow: 1;
    z-index: 1;
    position: relative;
}

.ved-project-card .description.expanded {
    max-height: none;
    overflow: visible;
}

.ved-project-card .show-more {
    color: var(--secondary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: none;
    z-index: 1;
    position: relative;
}

.ved-project-card .show-more.visible {
    display: block;
}

.ved-project-card .btn-see-photos {
    background: #fff;
    color: blue;
    border: none;
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    align-self: center;
    z-index: 1;
    position: relative;
}

.ved-project-card .btn-see-photos:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Gallery Overlay */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 2000;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.gallery-overlay.active {
    display: flex;
}

.gallery-content {
    max-width: 90vw;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-button:hover {
    transform: scale(1.2);
}

.main-image-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.main-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.main-image.fade-out {
    opacity: 0;
}

.main-image.fade-in {
    opacity: 1;
}

.nav-button {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 60px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--secondary);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev-button {
    left: 0;
}

.next-button {
    right: 0;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
}

.thumbnail-slider {
    display: flex;
    gap: 10px;
    scrollbar-width: none;
}

.thumbnail-slider::-webkit-scrollbar {
    display: none;
}

.thumbnail-img {
    width: calc(100% / 6);
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    flex: 0 0 calc(100% / 6 - 10px);
}

.thumbnail-img.active {
    border: 3px solid #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
    animation: highlight 0.2s ease;
}

@keyframes highlight {
    0% { border-color: transparent; box-shadow: none; transform: scale(1); }
    50% { border-color: #ffffff; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); transform: scale(1.15); }
    100% { border-color: #ffffff; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); transform: scale(1.1); }
}


/* Responsive Styles */
@media (max-width: 992px) {
    .ved-gallery-hero h1 {
        font-size: 2.5rem;
    }

    .ved-project-card {
        min-height: 500px;
    }

    .ved-project-card img {
        height: 180px;
    }

    .thumbnail-img {
        width: calc(100% / 4);
        flex: 0 0 calc(100% / 4 - 10px);
        height: 80px;
    }
}

@media (max-width: 768px) {
    .ved-gallery-hero {
		margin-top: 50px;
        padding: 100px 0 60px;
        background-attachment: scroll;
    }

    .ved-gallery-hero h1 {
        font-size: 2rem;
    }

    .ved-project-card {
        min-height: 450px;
        margin-bottom: 20px;
    }

    .ved-project-card img {
        height: 150px;
    }

    .ved-project-card .description {
        max-height: 100px;
    }

    .thumbnail-img {
        width: calc(100% / 3);
        flex: 0 0 calc(100% / 3 - 10px);
        height: 60px;
    }

    .main-image {
        max-height: 50vh;
    }

    .nav-button {
        width: 40px;
        font-size: 1.5rem;
    }
}