.site-img-shell {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eef4 0%, #d8e3ee 100%);
}

.site-img-shell--inline {
    display: inline-block;
    vertical-align: middle;
}

.site-img-shell__spinner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.site-img-shell.is-loading .site-img-shell__spinner {
    opacity: 1;
}

.site-img-shell__spinner::after {
    content: '';
    width: 2rem;
    height: 2rem;
    border: 3px solid rgb(3 90 182 / 0.18);
    border-top-color: #035ab6;
    border-radius: 50%;
    animation: site-img-spin 0.7s linear infinite;
}

.site-img-shell--sm .site-img-shell__spinner::after {
    width: 1.25rem;
    height: 1.25rem;
    border-width: 2px;
}

.site-img-shell img {
    display: block;
    max-width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.creds-blog-card .site-img-shell,
.portfolio-wrap .site-img-shell,
.creds-gallery-item .site-img-shell,
.video-box .site-img-shell {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.creds-blog-card .site-img-shell {
    height: 220px;
}

.creds-blog-card .site-img-shell img,
.portfolio-wrap .site-img-shell img,
.creds-gallery-item .site-img-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-img-shell.is-loaded img {
    opacity: 1;
}

.site-img-shell.is-error {
    background: #f1f5f9;
}

.site-img-shell.is-error .site-img-shell__spinner::after {
    border-top-color: #94a3b8;
    animation: none;
    opacity: 0.5;
}

@keyframes site-img-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-img-shell__spinner::after {
        animation-duration: 1.4s;
    }

    .site-img-shell img {
        transition: none;
    }
}
