.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 75%;
    background-color: #f8f9fa;
    overflow: hidden;
}

.image-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

.image-loader .dots {
    display: flex;
    gap: 0.5rem;
}

.image-loader .dot {
    width: 12px;
    height: 12px;
    background-color: #6c757d;
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}

.image-loader .dot:nth-child(1) {
    animation-delay: 0s;
}

.image-loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.image-loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.image-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    transform: scale(1);
}

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

/* Добавленные стили для hover-эффекта */
.image-item-container:hover .image-img.loaded {
    transform: scale(1.05);
}

/* Дополнительно: плавный переход для всего контейнера */
.image-container {
    transition: transform 0.3s ease-in-out;
}