/* Стили для элемента кейса */
.other-projects--item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.other-projects--item-title {
	font-family: Unbounded;
	font-weight: 400;
 }
.other-projects--item-direction {
	font-family: Wix Madefor Text;
	font-weight: 200;
}
.other-projects--item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.other-projects--item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    padding: 0 20px;
    box-sizing: border-box;
}

.other-projects--item-content {
    width: 100%;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: left;
}

.other-projects--item-title {
	font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.other-projects--item-direction {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.2;
}

/* Эффекты при наведении */
.other-projects--item:hover .other-projects--item-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.other-projects--item:hover .other-projects--item-content {
    opacity: 1;
    transform: translateY(0);
}

.other-projects--item:hover img {
    transform: scale(1.05);
}

/* Адаптивность */
@media (min-width: 768px) {
    .other-projects--item-title {
        font-size: 16px;
    }
    
    .other-projects--item-direction {
        font-size: 13px;
    }
}
@media (min-width: 1140px) {
    .other-projects--item-title {
        font-size: 18px;
    }
    
    .other-projects--item-direction {
        font-size: 14px;
    }
}
@media (min-width: 1350px) {
    .other-projects--item-title {
        font-size: 28px;
    }
    
    .other-projects--item-direction {
        font-size: 13px;
    }
}