.slider{
    position: relative;
}

.overlay{
    position: absolute;
    color: white;
    font-size: 20px;
    bottom: 100%;
    height: 0;
    width: 100%;
    padding-top: 18rem;
    overflow: hidden;
    transition: all .3s ease-in-out;
    backdrop-filter: blur(4px) brightness(80%);
    text-align: center;
}

.slider:hover .overlay{
    bottom: 0;
    height: 100%;
}

.gallery #s2, #s3, #s4, #s5{
    display: none;
}

.project-label{
    position: relative;
    margin-top: 0;
    padding-bottom: 3px;
    text-align: center;
    font-size: medium;
    background-color: #fff;
}

.project-options{
    display: flex;
    margin-bottom: 15px;
    margin-top: -15px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgb(221, 221, 221);
    border-bottom: 1px solid rgb(221, 221, 221);
}

.project-options img{
    height: 130px;
    width: 250px;
    object-fit: cover;
}

.project-card{
    text-align: center;
    padding: 10px;
    border-left: 1px solid rgb(221, 221, 221);
    font-size: medium;
}

.project-card:first-child{
    border-left: none;
}

.project-card:hover{
    color: #b85a5a;
    font-size: small;
    transition: all .3s ease-in-out;
}

.gallery{
    display: flex;
    padding: 40px;
}
  
.gallery-info{
    padding: 20px 0 20px 0;
    max-width: 500px;
    margin: 0;
}
  
.gallery-info p{
    font-size: 20px;
    padding-top: 20px;
}
  
.gallery-info h1{
    font-size: 30px;
}

#pl1{
    color: #b85a5a;
}


.container-project{
    padding: 2rem 2rem 0 2rem;
    margin-left: auto;
    margin-right: 0;
}

.slider-wrapper{
    position: relative;
    max-width: 700px;
}

.slider{
    display: flex;
    aspect-ratio: 16 / 9;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
    border-radius: 0.5rem;
}

.slider img{
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
}

.slider-nav{
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.slider-nav a{
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.75;
    transition: opacity ease 250ms;
}

.slider-nav a:hover{
    opacity: 1;
}

.gallery-info{
    text-align: justify;
}

@media (max-width: 1400px) {
    .gallery .container-project{
        transform: scale(0.9);
    }

    .gallery{
        padding: 30px 10px 30px 30px;
    }

    .project-options{
        transform: scale(0.9);
        padding: 8px;
        margin: -4px;
    }
}

@media (max-width: 1300px) {
    .gallery .container-project{
        transform: scale(0.8);
    }

    .gallery{
        padding: 30px 5px 30px 30px;
    }

    .project-options{
        transform: scale(0.8);
    }
}

@media (max-width: 1200px) {
    .gallery{
        padding: 20px 0px 20px 30px;
    }

    .gallery-info p{
        font-size: medium;
    }

    .gallery-info h1{
        font-size: x-large;
    }

    .project-options{
        margin-top: -50px;
    }
}

@media (max-width: 1100px) {

    .project-options{
        transform: scale(0.7);
        margin-top: -50px;
    }

    .gallery-info p{
        font-size: small;
    }

    .gallery-info{
        margin-top: 40px;
        margin-right: -40px;
    }
}

@media (max-width: 991px) {

    .gallery .container-project{
        transform: scale(0.7);
        margin-right: -60px;
    }

    .gallery{
        padding: 20px 0px 20px 30px;
    }

    .gallery-info h1{
        font-size: large;
    }

    .project-options{
        margin-top: -70px;
        transform: scale(0.6);
    }

    .gallery-info{
        margin-right: -50px;
    }

    .gallery{
        margin-top: -50px
    }
}

@media (max-width: 900px) {

    .gallery-info p{
        font-size: x-small;
    }

    .gallery-info h1{
        font-size: medium;
    }

    .project-options{
        transform: scale(0.5);
        margin-top: -100px;
    }
}

@media (max-width: 800px) {
    .gallery .container-project{
        transform: scale(0.8);
        margin-top: -50px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery{
        display: block;
    }

    .gallery-info{
        margin-left: auto;
        margin-right: auto;
    }
    
    .gallery-info h1{
        text-align: center;
    }

    .gallery-info p{
        font-size: small;
    }

    .gallery-info h1{
        font-size: large;
    }

}

@media (max-width: 685px) {
    .project-options{
        display: grid;
        grid-template-columns: auto auto auto;
        margin-bottom: -70px;
    }

    .gallery{
        padding: 20px 0 0 0;
    }

    .conflict{
        margin-top: -60px;
        margin-bottom: -30px;
    }

    .heading{
        font-size: x-large;
    }

    .offering p{
        font-size: medium;
        text-align: justify;
    }

    #offering{
        padding: 50px;
    }
}

@media (max-width: 560px) {

    .project-options{
        transform: scale(0.4);
    }

    .gallery-info p{
        font-size: x-small;
    }

    .gallery-info h1{
        font-size: medium;
    }

    .gallery{
        padding: 20px 20px 0 20px;
    }

    .heading{
        font-size: large;
    }

    .offering p{
        font-size: small;
        text-align: justify;
        margin-top: -20px;
    }

    #offering{
        padding: 40px;
    }

    .overlay{
        font-size: medium;
        padding-top: 100px;
    }

}

@media (max-width: 480px) {
    .project-label{
        font-size: small;
    }

    .gallery-info{
        margin-bottom: 20px;
    }

    .heading{
        font-size: medium;
    }

    .offering p{
        font-size: x-small;
        text-align: justify;
        margin-top: -20px;
    }

    #offering{
        padding: 30px;
    }

    .overlay{
        font-size: small;
        padding-top: 70px;
    }
}

@media (max-width: 350px) {
    .project-options{
        transform: scale(0.3);
    }

    .container-project{
        margin-bottom: -80px;
    }

    .overlay{
        font-size: small;
        padding-top: 50px;
    }
}