/*
|--------------------------------------------------------------------------
| Lista galerija
|--------------------------------------------------------------------------
*/

.msn-gallery-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.msn-gallery-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(70, 91, 62, 0.12);
    border-radius: 20px;
    background: #ffffff;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.msn-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(52, 72, 45, 0.12);
}

.msn-gallery-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f3f5ef;
}

.msn-gallery-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.msn-gallery-card:hover .msn-gallery-card__image img {
    transform: scale(1.055);
}

.msn-gallery-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(34, 53, 29, 0.34);
    transition: opacity 0.3s ease;
}

.msn-gallery-card:hover .msn-gallery-card__overlay {
    opacity: 1;
}

.msn-gallery-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #45643d;
    font-size: 22px;
    border-radius: 50%;
    background: #ffffff;
    transform: translateY(8px);
    transition: transform 0.3s ease;
}

.msn-gallery-card:hover .msn-gallery-card__icon {
    transform: translateY(0);
}

.msn-gallery-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.msn-gallery-card__title {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.3;
}

.msn-gallery-card__title a {
    color: inherit;
}

.msn-gallery-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 20px;
    color: var(--text-2, #70766d);
    font-size: 15px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.msn-gallery-card__content .tf-btn-line-2 {
    align-self: flex-start;
    margin-top: auto;
}


/*
|--------------------------------------------------------------------------
| Straničenje
|--------------------------------------------------------------------------
*/

.msn-gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 48px;
}

.msn-gallery-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    color: #4d6248;
    font-weight: 600;
    border: 1px solid rgba(73, 99, 67, 0.2);
    border-radius: 50%;
    background: #ffffff;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

a.msn-gallery-pagination__item:hover,
.msn-gallery-pagination__item.is-active {
    color: #ffffff;
    border-color: #4d6845;
    background: #4d6845;
}

.msn-gallery-pagination__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    color: #838a80;
}


/*
|--------------------------------------------------------------------------
| Prazna lista
|--------------------------------------------------------------------------
*/

.msn-gallery-list__empty {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
    border: 1px solid rgba(73, 99, 67, 0.12);
    border-radius: 20px;
    background: #f8faf5;
}

.msn-gallery-list__empty h2 {
    margin-bottom: 14px;
}

.msn-gallery-list__empty p {
    margin-bottom: 25px;
    color: var(--text-2, #70766d);
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 991px) {

    .msn-gallery-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 575px) {

    .msn-gallery-list__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .msn-gallery-card {
        border-radius: 16px;
    }

    .msn-gallery-card__content {
        padding: 20px;
    }

    .msn-gallery-card__title {
        font-size: 21px;
    }
}