body {
    background: #f6f8fa;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: #222;
    margin: 0;
    padding: 0;
}

.gallery-page {
    background: #f6f8fa;
    padding: 70px 0 60px 0;
    min-height: 100vh;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-heading {
    color: #43b843;
    font-size: 2.7rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 12px rgba(67, 184, 67, 0.08);
}

.gallery-subtitle {
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(67, 184, 67, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4 / 3;
}

.gallery-item.large {
    aspect-ratio: 4 / 6;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(67, 184, 67, 0.15);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(67, 184, 67, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #43b843;
}

.lightbox-caption {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-btn {
    background: rgba(67, 184, 67, 0.8);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: rgba(67, 184, 67, 1);
}

.lightbox-prev {
    margin-left: -25px;
}

.lightbox-next {
    margin-right: -25px;
}

@media (max-width: 768px) {
    .gallery-page {
        padding: 50px 0 40px 0;
    }
    
    .gallery-heading {
        font-size: 2.2rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-item.large {
        grid-row: span 1;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 35px;
    }
    
    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-heading {
        font-size: 1.8rem;
    }
    
    .gallery-subtitle {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item.large {
        grid-row: span 1;
    }
    
    .lightbox-close {
        top: -35px;
        font-size: 30px;
    }
    
    .lightbox-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}