:root {
    --primary-color: #2ecc71;
    /* A fresh green like your "Gallery" text */
    --bg-dark: #2c3e50;
    --text-light: #ffffff;
}

.gallery-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
}

.gallery-title span {
    color: rgb(40, 163, 201);
}

/* Modern Responsive Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effects */
.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 204, 113, 0.8);
    /* Semi-transparent green */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.view-btn {
    color: white;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: bold;
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

Base state for animation .gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth easing */
}

/* State when the item is 'visible' */
.gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Advanced Hover: Image zooms slightly + Overlay slides up */
.gallery-item img {
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.08) rotate(1deg);
}

.overlay {
    background: linear-gradient(to top, rgba(46, 204, 113, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
    /* Slide up on hover */
    opacity: 1;
}