@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.collection_main_pic {
    height: 100%;
    width: fit-content;
    max-width: 60%;
    
    display: flex;
    opacity: 0;
    justify-content: start;
    align-items: start;
    animation: slideInLeft 2s ease forwards;
will-change: transform, opacity;
}
.collection_main_pic > img {
    object-fit: cover;
    height: 100%;
    min-width: 50em;
    max-height: 40em;
} 
.collection_wrapp {
    margin-bottom: 10em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
}
.collection_right_wrapp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;

}
.collection_title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1em;
} 
.collection_description {
    margin-bottom: 2em;
}
.collection_items_wrapp {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
    padding-bottom: 1em;
    
}

/* items start hidden and animate in one by one */
.collection_item {
    height: 10em;
    width: 10em;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInUp 360ms ease forwards;
    cursor: pointer;
    transition: transform 0.3s ease;
}


/* staggered delays (add more nth-child rules if you have more items) */
.collection_items_wrapp .collection_item:nth-child(1) { animation-delay: 0ms; }
.collection_items_wrapp .collection_item:nth-child(2) { animation-delay: 120ms; }
.collection_items_wrapp .collection_item:nth-child(3) { animation-delay: 240ms; }
.collection_items_wrapp .collection_item:nth-child(4) { animation-delay: 360ms; }
.collection_items_wrapp .collection_item:nth-child(5) { animation-delay: 480ms; }
.collection_items_wrapp .collection_item:nth-child(6) { animation-delay: 600ms; }
.collection_items_wrapp .collection_item:nth-child(7) { animation-delay: 720ms; }
.collection_items_wrapp .collection_item:nth-child(8) { animation-delay: 840ms; }
.collection_items_wrapp .collection_item:nth-child(9) { animation-delay: 960ms; }
.collection_items_wrapp .collection_item:nth-child(10) { animation-delay: 1080ms; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .collection_item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
.collection_item > img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    pointer-events: none;
}
.collection_button {
    margin-top: 0.5em;
    padding: 0.8em 3em;
    font-size: 1rem;
    font-weight: 600;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border: 1px solid black;
    cursor: pointer;
    transition: background-color 0.3s ease;

}
.collection_button:hover {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}

@media  screen and (max-width:1402px) {
    .collection_wrapp {
    
    display: grid;
    
    grid-template-columns: 1fr 1.5fr;
    gap: 0.5em;
}
    .collection_item {
    height: 6.5em;
    width: 6.5em;
   }
   .collection_main_pic  {
    
    max-width: 90%;
    
    
    }
   .collection_main_pic > img {
    
    min-width: 10em;
    max-width: none;
    width:100%;
} 
}
@media  screen and (max-width:650px) {
    .collection_wrapp {

        padding: 0;
    grid-template-columns: 1fr;
    gap: 2em;
}
    .collection_item {
    height: 8em;
    width: 8em;
   }
   .collection_main_pic  {
    
    max-width: none;
    width:100%;
}
.collection_title {
    position: absolute;
    top: -3em;
    color: white;
    z-index: 10;
    background-color: black;

}  
.collection_description {
    margin-bottom: 1em;
    padding-left: 1em;
    padding-right: 1em;
}
}
@media  screen and (max-width:425px) {
    .collection_item {
    height: 6em;
    width: 6em;
   }
}
