.yellow-bg {
    padding: 30px 60px;
    text-align: center;
    background-color: #fff;
}

.gallery-title {
    width: 100%;
    font-size: 3rem;
    color: #1f1f1f;
    font-weight: 'bold';
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gallery-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 4px;
    background: linear-gradient(to right, #ffaa00, #ff6600);
    margin: 12px auto 0;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    margin-bottom: 100px;
    animation: fadeInSlideUp 1s ease forwards;
    cursor: pointer;
}

.gallery-item {
    width: 100%;
    height: 360px;
    max-width: 400px;
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #ffd500;
    background: #ffffff;
    box-shadow: 0 0 10px black;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInZoom 1s ease-in-out;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.95);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px black;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.lightbox-hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-content {
    position: relative;
    display: inline-block;
}

.lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    border: 1px solid white;
    user-select: none;
    display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: white;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 10;
    padding: 8px 12px;
    border-radius: 4px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 0 2px black);
}

.lightbox-close {
    top: 0px;
    right: 0px;
}

.lightbox-prev {
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ff8800;
}


@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .gallery-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .gallery-grid {
        gap: 16px;
    }

    .gallery-item {
        height: 280px;
    }
}
