@media only screen and (max-width: 1440px) {
    .ib-halfImage-halfText .infoblock-image {
        overflow: hidden;
    }

    .ib-halfImage-halfText .infoblock-image img {
        max-width: none;
        width: auto;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    .custom-image-fade>.infoblock-content>.infoblock-item .infoblock-image {
        overflow: hidden;
    }

    .custom-image-fade>.infoblock-content>.infoblock-item .infoblock-image img {
        max-width: none;
        margin-left: 50%;
        transform: translateX(-50%);
    }
}

@media only screen and (max-width: 1368px) {
    .custom-home-2 .infoblock-overlay {
        gap: 1.75rem;
    }

    .custom-home-2 .infoblock-overlay .infoblock-image img {
        max-width: 100px;
    }
}

@media only screen and (max-width: 1280px) {
    .custom-list .infoblock-items {
        justify-content: center;
    }

    .custom-list .infoblock-items>.infoblock-item {
        width: 30%;
    }
}

@media only screen and (max-width: 1200px) {
    .custom-home-2 .infoblock-overlay {
        gap: 1.5rem;
    }

    .custom-home-2 .infoblock-overlay .infoblock-image img {
        max-width: 80px;
    }

    .custom-home-2 .infoblock-overlay .infoblock-text {
        font-size: 1.25rem;
    }
}

@media only screen and (max-width: 1080px) {
    .custom-home-2 .infoblock-items {
        flex-wrap: wrap;
        gap: 1.5rem !important;
        justify-content: center;
    }

    .custom-home-2 .infoblock-items>.infoblock-item {
        width: 45%;
    }

    .custom-home-2 .infoblock-buttons {
        margin-top: 4rem;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .custom-home-2 .infoblock-buttons>.infoblock-button {
        width: 35%;
    }

    .custom-home-2 .infoblock-button a {
        margin: 0;
    }

    .custom-list .infoblock-items>.infoblock-item {
        width: 50%;
    }

    .custom-list-2 .infoblock-items {
        justify-content: center;
    }

    .custom-list-2 .infoblock-items>.infoblock-item {
        width: 100%;
        max-width: 480px;
    }
}

@media only screen and (max-width: 960px) {
    .custom-deset-principa .infoblock-content .infoblock-items {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .custom-deset-principa .infoblock-content .infoblock-items>.infoblock-item {
        width: 40%;
    }

    .custom-deset-principa .infoblock-content .infoblock-items>.infoblock-item img {
        max-width: 120px;
    }

    .title-size-5 .infoblock-title h2,
    .title-size-5 .infoblock-title h3,
    .title-size-5 .infoblock-desc h2,
    .title-size-5 .infoblock-desc h3 {
        font-size: 3rem;
    }

    .custom-programi .infoblock-content>.infoblock-item {
        width: 94%;
        margin: auto;
    }
}


@media only screen and (max-width: 800px) {
    .ib-halfImage-halfText .infoblock-item {
        flex-direction: column;
        gap: 3rem;
    }

    .ib-halfImage-halfText .infoblock-image,
    .ib-halfImage-halfText .infoblock-video,
    .ib-halfImage-halfText .infoblock-desc {
        width: 100%;
    }

    .ib-halfImage-halfText .infoblock-item {
        gap: 2rem !important;
    }

    .ib-halfImage-halfText .infoblock-desc {
        padding: 0 4%;
        order: 1;
    }

    .ib-halfImage-halfText .infoblock-image {
        order: 2;
    }

    .ib-halfImage-halfText .infoblock-image img {
        width: 100%;
    }

    .columns-2,
    .columns-3 .infoblock-content {
        columns: 1;
        gap: 0;
        padding-top: 4rem;
    }

    .columns-2 .infoblock-item {
        padding-top: 0;
    }

    .content-width-1200 .infoblock-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*background-color: #fffc;*/
        z-index: 1;
    }

    .content-width-1200 .infoblock-desc p {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .content-width-1200 .infoblock-title,
    .content-width-1200 .infoblock-button {
        text-align: center;
    }

    .ib-image60-text40 .infoblock-item {
        flex-direction: column;
        gap: 3rem;
    }

    .ib-image60-text40 .infoblock-image,
    .ib-image60-text40 .infoblock-desc {
        width: 100%;
    }

    .custom-home-2 .infoblock-buttons>.infoblock-button {
        width: fit-content;
    }

    .custom-ciljevi .infoblock-content .infoblock-items {
        justify-content: center;
    }

    .custom-ciljevi .infoblock-content .infoblock-items>.infoblock-item {
        width: 22%;
    }

    .custom-ciljevi-2 .infoblock-items {
        gap: 2rem;
        justify-content: center;
    }

    .custom-ciljevi-2 .infoblock-items>.infoblock-item {
        width: 30%;
    }

    .custom-ciljevi-2 .infoblock-items>.infoblock-item img {
        width: 100%;
    }

    .custom-image-fade>.infoblock-content>.infoblock-item .infoblock-image {
        display: none;
    }

    .custom-image-fade>.infoblock-content>.infoblock-item .infoblock-desc {
        width: 100%;
    }

    .custom-image-fade>.infoblock-content>.infoblock-item .infoblock-desc h3 {
        font-size: 2.5rem;
    }

    .custom-image-fade>.infoblock-content>.infoblock-item .infoblock-desc a {
        font-size: 1.25rem;
    }

    .ib-flex .infoblock-content .infoblock-item {
        width: 100%;
    }

    .custom-publikacije .infoblock-item {
        flex-wrap: wrap;
        padding-right: 0;
        width: 94%;
        margin-inline: auto;
    }

    .custom-publikacije .infoblock-image {
        width: 100%;
    }

    .custom-publikacije .infoblock-desc {
        width: 100%;
        padding: 2rem;
    }

    .custom-programi .infoblock-content .infoblock-items>.infoblock-item .infoblock-button a span {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 640px) {
    .custom-home-2 .infoblock-items {
        flex-direction: column;
    }

    .custom-home-2 .infoblock-items>.infoblock-item {
        width: 100%;
    }

    .custom-list .infoblock-items>.infoblock-item {
        width: 100%;
    }

    .custom-ciljevi .infoblock-content .infoblock-items>.infoblock-item {
        width: 30%;
    }

    .custom-ciljevi-2 .infoblock-items {
        flex-wrap: wrap;
        gap: 3rem;
    }

    .custom-ciljevi-2 .infoblock-items>.infoblock-item {
        width: 100%;
    }

    .custom-ciljevi-2 .infoblock-items>.infoblock-item img {
        max-width: 160px;
    }

    .title-size-5 .infoblock-title h2,
    .title-size-5 .infoblock-title h3,
    .title-size-5 .infoblock-desc h2,
    .title-size-5 .infoblock-desc h3 {
        font-size: 2.5rem;
    }

    .custom-publikacije .infoblock-item {
        gap: 2rem
    }

    .custom-publikacije .infoblock-desc h3 {
        font-size: 1.5rem;
    }

    .custom-programi .infoblock-content .infoblock-items>.infoblock-item {
        width: 100%;
        max-width: 400px;
    }
}


@media only screen and (max-width: 480px) {

    .ib-halfImage-halfText .infoblock-button,
    .ib-halfImage-halfText h3 {
        text-align: center;
    }

    .custom-deset-principa .infoblock-content .infoblock-items>.infoblock-item {
        width: 100%;
    }

    .custom-ciljevi .infoblock-content .infoblock-items>.infoblock-item {
        width: 45%;
    }

    .title-size-5 .infoblock-title h2,
    .title-size-5 .infoblock-title h3,
    .title-size-5 .infoblock-desc h2,
    .title-size-5 .infoblock-desc h3 {
        font-size: 2rem;
    }
}