.tagok-search{
    padding: 70px 10px 20px;
    box-sizing: border-box;
}
.tagok-search > div{
    max-width: 1024px;
    margin: 0 auto;
}
.tagok-search h3{
    font-size: 45px;
    font-weight: 700;
    margin: 0 0 20px;
}
.tagok-search .container{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}
.tagok-search .container .search-inputs{
    width: 49%;
}
.tagok-search .container .banner{
    width: 49%;
}
.tagok-search .container .banner img{
    width: 100%;
    display: block;
    margin: 0;
    border-radius: 0 40px 0 40px;
}
.tagok-search input, .tagok-search select{
    width: 100%;
    height: 50px;
    margin: 0 0 20px;
    background: #f2f4f7;
    border: none;
    outline: none;
    padding: 0 20px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
    color: var(--blue);
}

.tagok-list {
    padding: 20px 10px 100px;
    box-sizing: border-box;
}
.tagok-list > div{
    max-width: 1024px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.tagok-list .tag {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: calc(33.333% - 20px);
    height: 400px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    overflow: hidden;
    position: relative;
    transition: background-size 0.3s ease-in-out;
}
.tagok-list .tag:hover img{
    transform: scale(1.1);
}
.tagok-list .tag .img-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.tagok-list .tag img {
    height: 100%;
    display: block;
    margin: 0;
    transform-origin: center;
    transition: 300ms ease-in-out;
}
.tagok-list .tag .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #00000000 40%, #000000bb 90%);
    transition: 300ms ease-in-out;
}
.tagok-list .tag:hover .content{
    padding-bottom: 40px;
}
.tagok-list .tag.hidden{
    display: none;
}
.tagok-list .tag .cat{
    width: fit-content;
    font-size: 10px;
    font-weight: 300;
    margin: 0;
    background: black;
    padding: 5px 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.tagok-list .tag h4{
    font-size: 24px;
    margin: 0 0 10px;
    line-height: 1.1;
}
.tagok-list .tag p{
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}
.tagok-list .tag .tevekenysegek{
    display: none;
}

.back-link{
    max-width: 1024px;
    margin: 50px auto;
}
.back-link a{
    margin: 0;
}
.gyartok-list {
    padding: 0 10px 100px;
    box-sizing: border-box;
}
.gyartok-list > div{
    max-width: 1024px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.gyartok-list .gyarto {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: calc(33.333% - 20px);
    height: 400px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    overflow: hidden;
    position: relative;
    transition: background-size 0.3s ease-in-out;
}
.gyartok-list .gyarto .img-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}
.gyartok-list .gyarto img {
    height: 100%;
    display: none;
    margin: 0;
    transition: 500ms ease-in-out;
}
.gyartok-list .gyarto img.active{
    display: block;
}
.gyartok-list .gyarto img.animnext{
    position: absolute;
    transform-origin: right bottom;
    transform: translate(100%, 10%) rotate(30deg);
}
.gyartok-list .gyarto img.animprev{
    position: absolute;
    transform-origin: left top;
    transform: translate(-100%, -10%) rotate(30deg);
}
.gyartok-list .gyarto .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #00000000 40%, #000000cc 90%);
    transition: 300ms ease-in-out;
}
.gyartok-list .gyarto.hidden{
    display: none;
}
.gyartok-list .gyarto .cat{
    width: fit-content;
    font-size: 10px;
    font-weight: 300;
    margin: 0;
    background: black;
    padding: 5px 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.gyartok-list .gyarto h5{
    font-size: 14px;
    font-weight: 300;
    margin: 0 0 5px;
}
.gyartok-list .gyarto h4{
    font-size: 24px;
    margin: 0 0 10px;
    line-height: 1.1;
}
.gyartok-list .gyarto p{
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}
.gyartok-list .prev {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 20px;
    height: 20px;
    border-top: 5px solid white;
    border-left: 5px solid white;
    transform: translateY(-50%) rotate(315deg);
    opacity: 0;
    transition: 300ms ease-in-out;
    cursor: pointer;
}
.gyartok-list .next {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 20px;
    height: 20px;
    border-top: 5px solid white;
    border-right: 5px solid white;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0;
    transition: 300ms ease-in-out;
    cursor: pointer;
}
.gyartok-list .gyarto:hover .prev, .gyartok-list .gyarto:hover .next{
    opacity: 1;
}

@media (max-width: 1024px) {
    .tagok-search {
        padding: 70px 10px 0;
    }
    .tagok-search .container{
        flex-direction: column-reverse;
    }
    .tagok-search .container .search-inputs{
        width: 100%;
    }
    .tagok-search .container .banner {
        width: 100%;
        margin: 0 0 20px;
    }
    .tagok-list .tag {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .gyartok-list .gyarto {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .gyartok-list .prev, .gyartok-list .next{
        opacity: 1;
    }
}