.hero-grid {
    column-count: 6;
    column-gap: 1rem;
    width: 100%;
    overflow: hidden;
    padding: 1rem;
}

.hero-image-item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    break-inside: avoid;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

/* Lazy loading styles */
.hero-img.lazy {
    opacity: 0;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-size: 400% 400%;
    animation: shimmer 1.5s ease-in-out infinite;
    min-height: 200px;
}

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

.hero-img.error {
    opacity: 0.5;
    background: #f5f5f5;
    position: relative;
}

.hero-img.error::after {
    content: "📷";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.5;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        column-count: 5;
    }
}

@media (max-width: 768px) {
    /* Hero responsive handled by Tailwind */
    
    .hero-grid {
        column-count: 4;
        column-gap: 0.5rem;
        padding: 0.5rem;
    }

    .hero-image-item {
        margin-bottom: 0.5rem;
    }
    
}

@media (max-width: 480px) {
    
    .hero-grid {
        column-count: 3;
        column-gap: 0.5rem;
        padding: 0.5rem;
    }
}

@media (max-width: 280px) { 

    .hero-grid {
        column-count: 2;
    }
}

/* Team avatar hover morph */
.team-item .team-avatar {
    border-radius: 1rem;
    transition: border-radius 240ms cubic-bezier(0.2, 0.9, 0.2, 1),
                transform 240ms cubic-bezier(0.2, 0.9, 0.2, 1),
                box-shadow 200ms ease-out;
    will-change: border-radius, transform;
}

/* Sold out badge now handled in HTML via Tailwind classes */

.team-item .team-avatar.is-morphed {
    transform: rotate(1.5deg) scale(1.06);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .team-item .team-avatar {
        transition: none;
    }
}
