.galleries{
    padding-bottom: 80px;
    font-family: 'OddvalText', sans-serif;
    position: relative;
}

.galleries .container{
    position: relative;
    z-index: 99;
}


.galleries__top {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
}
.galleries__top div {
    color: var(--black-fi);
    padding: 3px 22px;
    border: 1px solid var(--black-fi);
    border-radius: 24px;
    transition: .2s ease-in-out;
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 9px;
    cursor: pointer;
    font-weight: 300;
    font-size: 17px;
}
.galleries__top div.active {
    background: var(--black-fi);
    color: var(--white-fi);
}

.galleries__bottom {
    margin-top: 30px;
}

.gallery-grid {
    display: none;
}
.gallery-grid.active {
    display: block;
}

.gallery-sub {
    margin-bottom: 40px;
}
.gallery-sub h3 {
    font-family: 'ShockaFamily', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 44px;
    line-height: 44px;
    letter-spacing: 0;
    text-align: center;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-images a {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    transition: transform 0.3s ease;
    z-index: 99;
}
.gallery-images a:hover {
    transform: scale(1.03);
}

.gallery-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galleries-paralax{
    position: absolute;
    bottom: 0;
    left: 0;
}

.galleries-paralax-2{
    position: absolute;
    top: -100px;
    right: 0;
}

@media(max-width:678.98px){
    .galleries__top{
        flex-direction: column;
    }

}
