.tg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--tg-cols-min, 280px), 1fr));
    gap: 30px;
    padding: 20px 0;
}

.tg-card {
    padding: 6px;
}

.tg-image-wrap {
    position: relative;
    line-height: 0;
}

.tg-grid .tg-image-wrap a.tg-popup-link {
    display: block;
    transition: transform .3s;
}

.tg-grid .tg-image-wrap a.tg-popup-link:hover {
    transform: translateY(-3px);
}

.tg-grid .tg-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15), 0 1px 4px rgba(0, 0, 0, .1) !important;
    transition: box-shadow .3s;
}

.tg-grid .tg-image-wrap a:hover img {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .22), 0 2px 8px rgba(0, 0, 0, .12) !important;
}

.tg-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, .55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    z-index: 2;
}

.tg-zoom svg {
    fill: #fff;
    width: 22px;
    height: 22px;
}

.tg-image-wrap:hover .tg-zoom {
    opacity: 1;
}

.tg-caption {
    padding: 10px 0 0;
    text-align: center;
}

.tg-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}
