.polymy-ra-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
}


/* هر کارت */

.polymy-ra-card {
    width: calc((100% - 50px) / 3);
    overflow: hidden;
    border-radius: 14px;
}


/* لینک و محدوده تصویر */

.polymy-ra-link {
    position: relative;
    display: block !important;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none !important;
}


/* تصویر */

.polymy-ra-link img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    transition: transform 0.45s ease;
}


/* لایه تیره */

.polymy-ra-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.45);

    transition: background 0.35s ease;
}


/* عنوان */

.polymy-ra-title {
    margin: 0 !important;

    color: #ffffff !important;

    text-align: center;

    font-size: 22px;

    line-height: 1.6;

    font-weight: 700;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


/* Hover */

.polymy-ra-link:hover img {
    transform: scale(1.08);
}

.polymy-ra-link:hover .polymy-ra-overlay {
    background: rgba(0, 0, 0, 0);
}

.polymy-ra-link:hover .polymy-ra-title {
    opacity: 0;
    transform: translateY(-10px);
}


/* Tablet */

@media (max-width: 1024px) {

    .polymy-ra-card {
        width: calc((100% - 25px) / 2);
    }

}


/* Mobile */

@media (max-width: 767px) {

    .polymy-ra-wrapper {
        gap: 20px;
    }

    .polymy-ra-card {
        width: 100%;
    }

}