.gallery-title {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

.modal-content {
    background-color: transparent;
    border: none;
}

.lightbox-wrapper {
    position: relative;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.lightbox-btn:hover {
    background: rgba(0,0,0,0.75);
}

.lightbox-prev {
    left: -20px;
}

.lightbox-next {
    right: -20px;
}

.lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-card img {
        height: 220px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}