.lazy-image-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #f3f4f6;
}

.lazy-image-wrapper::before {
    content: "";
    display: block;
    padding-bottom: var(--aspect-ratio, 66.67%);
}

.lazy-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.loaded {
    opacity: 1;
}

/* Loading animasyonu */
.lazy-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

.lazy-image-wrapper img.loaded + .lazy-image-wrapper::after {
    display: none;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* JavaScript devre dışı olduğunda */
.lazy-image-wrapper noscript img {
    position: static;
    opacity: 1;
} 