.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.ir-item {
    width: 200px;
    height: 200px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    cursor: pointer;
    -webkit-box-shadow: 2px 2px 5px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    2px 2px 5px 0px rgba(50, 50, 50, 0.75);
    box-shadow:         2px 2px 5px 0px rgba(50, 50, 50, 0.75);
    position: relative;
    overflow: hidden;
}

.ir-item a:hover {
    text-decoration: none;
}

.ir-image {
    height: 120px;
    transition: all 0.5s ease;
}
.ir-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin: 0 !important;
}
.ir-title {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeaea;
    border-radius: 0 0 10px 10px;
    transition: all 0.5s ease;
    padding: 0 10px;
    box-sizing: border-box;
    color: #000;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.ir-title h4 {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* Ограничение количества строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ir-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    background: #eaeaea;
    opacity: 0;
    transition: all 0.5s ease;
    overflow: hidden;
    display: flex;
    font-size: 11px;
    align-items: center;
}

@media (max-width: 900px) {
    .ir-item {
        width: calc(50% - 10px); /* 2 элемента в ряд */
    }
}

@media (max-width: 600px) {
    .ir-item {
        width: 100%; /* 1 элемент в ряд */
    }
}