.gallery-section{
    background: var(--grey-color);
}

.gallery-section .gallery-title{
    padding-top:120px;
    text-align:center;
}
.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

/* Galeria */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 100%;
    width:100%;
    padding: 20px;
    margin:0 auto;
    box-sizing: border-box;
    padding: 20px;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery img {
    width: 100%;
    max-width:100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(241, 217, 188, 0.923);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    padding-top:120px;
}

.lightbox .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding-top:120px;
}

.lightbox .prev {
    left: 20px;
    /* Poziționează butonul stânga */
}

.lightbox .next {
    right: 20px;
    /* Poziționează butonul dreapta */
}

.lighbox:target{
    overflow:hidden;
}

 .lightbox-counter {
     position: fixed;
     bottom:10px;
     left: 50%;
     transform: translateX(-50%);
     background: rgba(0, 0, 0, 0.7);
     color: white;
     padding: 3px 6px;
     border-radius: 5px;
     font-size: 12px;
     z-index: 100;
 }

@media (min-width: 768px) {
        .gallery-title {
            font-size: 24px;
        }
        .gallery-item{
            max-width: 400px;
        }
        .lightbox-counter {
        font-size: 15px;
        }
    .lightbox img{
        padding-top:120px;
    }
}

@media (min-width: 1200px) {
    .gallery{
        width: 1200px;
    }
    .gallery-section .gallery-title{
        padding-top:30px;
    }
        .gallery-title {
            font-size: 30px;
        }
    .gallery-item{
        max-width: 350px;
        height:100%;
    }

    .lightbox img{
        padding-top:0px;
    }
    footer{
        margin-top:auto;
    }
}