html, body {
    overflow-x: hidden !important;
}

.e-con.e-flex > .e-con-inner {
    flex-wrap: nowrap !important;
}

.fancybox__container {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999;
}

.entry-title {
    display: none !important;
}

.dg-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, 20px);
    grid-auto-rows: 20px;
    gap: 4px;
    grid-auto-flow: dense;
    justify-content: center;
    margin: 0 auto;
}

.dg-box {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.dg-box-empty {
    background: #f5f5f5 !important;
    transition: all 0.2s ease-in-out;
    animation: none !important;
}

.dg-box.premium {
    grid-column: span 2;
    grid-row: span 2;
}

.dg-small-box {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    position: relative;
}

.dg-box.empty {
    background: #f5f5f5;
    animation: none;
    background-size: cover;
    width: 100%;
    aspect-ratio: 1 / 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dg-box::after {
    content: "";
    position: absolute;
    top: -110px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    z-index: 100;
}

.dg-wall + p:empty,
.dg-wall p:empty {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
}

.dg-box.empty:hover::after {
    background-image: url("/wp-content/uploads/2025/05/soon.jpg");
    opacity: 1;
}

.dg-box.empty:hover::before {
    content: "בקרוב";
    opacity: 1;
}

@keyframes vipPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 1px gold); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 5px gold); }
}

.dg-summary {
    margin-bottom: 20px;
    padding: 20px;
    font-family: Assistant;
    text-align: center;
    background: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vip-frame {
    position: absolute;
    top: 22px;
    left: -2px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    background-image: url('/wp-content/uploads/2025/05/VIPS.png');
    background-size: cover;
    animation: vipPulse 1.5s infinite ease-in-out;
}

.dg-box.empty.shimmer {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eaeaea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@media (max-width: 767px) {
    div.dg-box.premium::after,
    div.dg-box.premium::before,
    div.dg-box::after,
    div.dg-box::before {
        display: none !important;
    }
}

/* תורמים רגילים */
.dg-box:not(.vip):hover::after {
    background-image: var(--img-url);
    opacity: 1;
}

/* תורמי VIP */
.dg-box.vip:hover::after {
    background-image: url('/wp-content/uploads/2025/05/vip-f.png'), var(--img-url);
    background-size: contain, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    opacity: 1;
    border: none;
    box-shadow: none !important;
    z-index: 99;
}

.dg-box::before {
    content: attr(data-name);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
    color: #fff;
    font-size: 13px;
    font-family: Assistant;
    font-weight: 600;
    text-align: center;
    line-height: 20px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    z-index: 102;
}

.dg-box:hover::before {
    opacity: 1;
}

/* תורמי VIP – התאמה לשם */
.dg-box.vip::before {
    background: transparent !important;
    color: #FFF;
    text-shadow:
        -1px -1px 0 #c27a00,
         1px -1px 0 #c27a00,
        -1px  1px 0 #c27a00,
         1px  1px 0 #c27a00;
    top: -27px;
}

.dg-box.empty:hover::after {
    background-image: url("/wp-content/uploads/2025/05/soon.png");
    opacity: 1;
    z-index: 100;
}

.dg-box.empty:hover::before {
    opacity: 1;
    z-index: 101;
}

.dg-box.empty::before {
    display: none !important;
}