/* Image skeleton loading — shared across public, holycow, and dashboard */
@keyframes v-img-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.v-img-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    line-height: 0;
    vertical-align: middle;
}

.v-img-wrap--block {
    display: block;
    width: 100%;
}

.v-img-wrap--skeleton::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #f1f3f8 0%, #e4e9f4 45%, #f8f9fc 55%, #f1f3f8 100%);
    background-size: 200% 100%;
    animation: v-img-shimmer 1.4s ease-in-out infinite;
    border-radius: inherit;
    pointer-events: none;
}

.v-img-wrap > img,
.v-img-wrap__img {
    display: block;
    max-width: 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
    position: relative;
    z-index: 2;
}

.v-img-wrap.is-loaded::before {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.v-img-wrap.is-loaded > img,
.v-img-wrap.is-loaded .v-img-wrap__img {
    opacity: 1;
}

.v-img-wrap.is-error::before {
    background: #eef1f6;
    animation: none;
}

.votelino-contestant-left > .v-img-wrap {
    flex-shrink: 0;
    width: 60px;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
}

.votelino-leaderboard-single__image > .v-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.holycow-podium-row .v-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.holycow-podium-row .v-img-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.v-img-wrap--banner {
    display: block;
    width: 100%;
}

.v-img-wrap--banner picture,
.v-img-wrap--banner > img {
    width: 100%;
}

.featured-image > .v-img-wrap,
.article-card > .v-img-wrap {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.article-detail-featured > .v-img-wrap {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.main-banner > .v-img-wrap {
    display: block;
    width: 100%;
}

.vd-avatar-wrap.v-img-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vd-avatar-wrap.v-img-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 576px) {
    .votelino-contestant-left > .v-img-wrap {
        width: 50px;
    }
}
