/* GRID */
.zn-image-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* CARD */
.zn-image-card {
    position: relative;
    overflow: hidden;
    height: 340px;
    border-radius: 14px;
    background: #000;
}

/* BACKGROUND */
.zn-image-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
    z-index: 0;
}

.zn-image-card:hover .zn-image-card-bg {
    transform: scale(1.08);
}

/* DARK OVERLAY */
.zn-image-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1;
}

/* CONTENT */
.zn-image-card-content {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 32px;
}

.zn-image-card-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.zn-image-card-content p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    max-width: 80%;
}

/* LINK */
.zn-image-card-link {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.zn-image-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 2;

    border: 3px solid rgba(255,255,255,0.25);

    animation: znPulse 6s ease-in-out infinite;
}

@keyframes znPulse {
    0%   { opacity: 0.2; }
    50%  { opacity: 0.6; }
    100% { opacity: 0.2; }
}