*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    position: relative;
    font-family: sans-serif;
}
section.gallery{
    position: relative;
}
#catalogg {
    padding: 45px 0;
}

#catalogg {
    flex-direction: column;
    align-items: center;
}
h2.title{
    font-size: 44px;
    font-weight: bolder;
    text-align: center;
    position: relative;
}
h2.title:after{
    content: "";
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: rgb(205, 127, 26);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}
.gallery-list{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    font-size: 0;
    margin-top: 30px;
    max-width: 1080px;
}
.osoba--gallery-list {
    margin-top: 0px!important;
}
.gallery-item {
    display: block;
    flex: 25%;
    overflow: hidden;
    position: relative;
}
.special-g-item-lastone {
    flex: 299%;
    max-width: 29.5%;
}
.special-g-item {
    aspect-ratio: 730/377!important;
}
.special-g-item {
}

.gallery-item-hover {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity .5s linear;
    z-index: 1;
    border-radius: 5px;
}
.gallery-item:hover .gallery-item-hover{
    opacity: 1;
}
.gallery-item:hover img {
    transform: scale(1.3) rotate(5deg);
}
.osoba--gallery-item:hover img {
    transform: scale(1.0) rotate(0deg)!important;
    text-decoration: none!important;
}
.osoba--gallery-item {
    text-decoration: none;
}
.osoba--gallery {
    padding: 0px!important;
}

.gallery-item img{
    max-width: 100px;
    height: auto;
    transition: all .5s ease;
    min-width: 100%;
    width: 100%;
    aspect-ratio: 1/1;
}
@media screen and (max-width: 1000px) {
    .gallery-item {
        flex: 33.3%;
    }
    .special-g-item-lastone {
        max-width: 45%;
    }
    .special-g-item {
        height: 200px;
    }
}
@media screen and (max-width: 767px) {
    .gallery-item {
        flex: 50%;
    }

    .special-g-item-lastone {
        max-width: 100%;
    }
    .special-g-item {
        height: 300px;
    }
}
@media screen and (max-width: 650px) {
    .special-g-item {
        height: 270px;
    }
}
@media screen and (max-width: 560px) {
    .special-g-item {
        height: 220px;
    }
}
@media screen and (max-width: 487px) {
    .special-g-item {
        height: 180px;
    }
}
@media screen and (max-width: 400px) {
    .gallery-item {
        flex: 100%;
    }
    .special-g-item {
        height: 150px;
        width: 100px!important;
    }
}

@media screen and (max-width: 360px) {
    .special-g-item {
        height: 120px;
    }
}
@media screen and (max-width: 290px) {
    .special-g-item {
        height: 100px;
    }
}