/* Modern Gallery Styles */
.gallery-section {
    background: #f7f7f7;
    min-height: 100vh;
    padding: 48px 0 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 32px;
    letter-spacing: 1px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    animation: galleryFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.gallery-card:hover {
    box-shadow: 0 8px 32px rgba(26,115,232,0.12);
    transform: scale(1.03);
}
.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.2s;
}
.gallery-card:hover .gallery-img {
    transform: scale(1.07);
}
.gallery-caption {
    padding: 16px 12px;
    font-size: 1.08rem;
    color: #333;
    text-align: center;
    background: #fafafa;
    width: 100%;
    border-top: 1px solid #eee;
}
@keyframes galleryFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.3s;
}
.lightbox-modal.active {
    display: flex;
}
.lightbox-img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    margin-bottom: 18px;
}
.lightbox-caption {
    color: #fff;
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 8px;
}
.lightbox-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10001;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: #ffca28;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 700px) {
    .gallery-img {
        height: 160px;
    }
    .lightbox-img {
        max-width: 98vw;
        max-height: 50vh;
    }
    .lightbox-close {
        top: 16px;
        right: 16px;
    }
}
