.menu-image {
    height: 50px;
    width: 50px;
}

.menu-image span {
    font-size: 15px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Optional fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
    .image-wrapper::before {
        content: "";
        display: block;
        padding-top: 56.25%;
        /* 16:9 fallback */
    }
}

.load-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* ✅ No cropping, keeps full image */
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    position: relative;
}

.load-img.loaded {
    opacity: 1;
}

.image-placeholder {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.blog-writer-image {
    position: relative;
    display: inline-block;
    width: 4.875rem;
    height: 4.875rem;
}