.northern-grid-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px; /* Для компенсації відступів у елементів */
}

.northern-grid-item {
    width: calc(50% - 20px); /* 2 плитки в ряд */
    margin: 10px;
    text-decoration: none;
    transition: transform 0.3s ease; /* Анімація наведення */
    display: block;
}
.northern-grid-item:hover {
    transform: scale(1.05); /* Ефект масштабування при наведенні */
}

.northern-grid-image-wrap {
    position: relative;
    overflow: hidden;
}

.northern-grid-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 0; /* Задаємо висоту як пропорцію ширини */
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #ddd;
}

.northern-grid-image.no-image {
    /* Залишаємо без зображення, але зберігаємо структуру з затемненням */
}

.northern-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* чорний колір затемнення */
}

.northern-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: auto 100%;  /* Масштабуємо паттерн тільки по висоті, а ширина auto */
    background-position: center; /* Вирівнюємо паттерн по центру */
    background-repeat: no-repeat;  /* Залишаємо без повторення */
    pointer-events: none;
}

.northern-grid-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* Mobile */
@media (max-width: 768px) {
    .northern-grid-item {
        width: calc(100% - 20px); /* 1 плитка в ряд */
    }
    .northern-grid-title {
        font-size: 16px;
    }
}
/* Desktop */
@media (min-width: 769px) {
    .northern-grid-item {
        width: calc(49% - 20px);
    }
}