.gallery {
    width: 100%;
    height: auto;
    padding: 100px 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #15151B;
}

.gallery__container {
    width: 100%;
    max-width: 1300px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.gallery h1 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
}

.gallery p {
    font-size: 22px;
    font-weight: 200;
    letter-spacing: 1px;
    color: #ffffff;
    text-align: center;
}

.gallery__container__list {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 50px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.gallery__container__list__wrapper {
    display: flex;
    gap: 100px;
    transition: transform 0.5s ease;
}

.gallery__container__list__item {
    flex: 0 0 calc((100% - 200px)/3); 
    height: 400px;
}

.gallery__container__list__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
}

.gallery__btn.prev { left: 10px; }
.gallery__btn.next { right: 10px; }


.gallery__after__landing {
    opacity: 0;
    position: relative;
    transition: all 0.3s ease-in-out;
    transform: translateY(-405px);
    z-index: 0;
    cursor: pointer;
}

.gellyery__before {
    cursor: pointer;
    display: flex;
}

.gallery__container__list__item:hover .gallery__after__landing {
    opacity: 1;
    z-index: 5;
}

@media (max-width: 1330px) {
    

    .gallery__container__list__wrapper {
        gap: 50px;
    }
    .gallery__container__list__item {
        flex: 0 0 calc((100% - 50px)/2);
    }
}

@media (max-width: 760px) {
    .gallery{
        padding-left: 50px;
        padding-right: 50px;
    }
    .gallery__container__list__wrapper {
        gap: 20px;
    }
    .gallery__container__list__item {
        flex: 0 0 100%;
    }
}


.gallery__page {
    width: 100%;
    max-width: 1300px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.gallery__page__list {
    position: relative;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 50px 0;

    border-radius: 12px;
    display: flex;
    gap: 100px;
    transition: transform 0.5s ease;
    flex-wrap: wrap;
}

.gallery__page__list__item {
    width: 300px;
    height: 300px;
}

.gallery__page__list__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__after {
    opacity: 0;
    position: relative;
    transition: all 0.3s ease-in-out;
    transform: translateY(-305px);
    z-index: 0;

}

.gellyery__before {
    cursor: pointer;
    display: flex;
}

.gallery__page__list__item:hover .gallery__after {
    opacity: 1;
    z-index: 5;
    background: red;
}