/* Grid for All Galleries */
.user-galleries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.user-galleries-grid .gallery-item {
    width: 22%;
    background: #000;
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    box-shadow: 0 0 15px #ff0000;
    margin-bottom: 20px;
}

.user-galleries-grid .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Title under image */
.gallery-title {
    color: #fff;
    font-size: 14px;
    margin: 5px 0;
}

/* Vote Panel - Always Red Neon */
.vote-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    font-family: Arial, sans-serif;
}

.vote-panel button {
    background: #000;
    color: #fff;
    border: 2px solid #ff0000;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.vote-panel button:hover {
    background: #222;
}

/* Rating number (centered, space for up to 10 digits) */
.vote-panel span {
    color: #ff0000 !important;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 8px #ff0000;

    display: inline-block;
    min-width: 10ch;      /* резерв под 10 цифр */
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Single Gallery Page Fix */
body.single-post .foogallery.foogallery-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    margin: 20px auto !important;
    max-width: 960px !important;
}

body.single-post .foogallery.foogallery-container .fg-item {
    width: 30% !important;
    margin-bottom: 15px !important;
}

body.single-post .foogallery.foogallery-container .fg-item img {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
}

@media only screen and (max-width: 768px) {
    .user-galleries-grid .gallery-item {
        width: 48%;
    }
    body.single-post .foogallery.foogallery-container .fg-item {
        width: 100% !important;
    }
}