/* Collage area parent for background and collage */
.collage-area {
    position: relative;
    width: 100%;
    aspect-ratio: 950/420;
    min-height: 320px;
    height: auto;
    max-width: 100%;
}
.collage-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #e6f0ff;
    border-radius: 32px 64px 48px 32px;
    z-index: 1;
}
.collage-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    max-width: none;
}

.collage-item {
    position: absolute;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    animation: fadeIn 0.8s ease-in-out forwards;
    opacity: 0;
}

.collage-item:hover {
    transform: scale(1.09) rotate(-2deg);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fill the entire container with collage items */
.collage-item:nth-child(1)  { width: 28%; height: 22%; top: 0%;  left: 0%;   z-index: 3; animation-delay: 0s;   transform: rotate(-2deg); }
.collage-item:nth-child(2)  { width: 24%; height: 20%; top: 0%;  left: 38%;  z-index: 2; animation-delay: 0.2s; transform: rotate(3deg); }
.collage-item:nth-child(3)  { width: 28%; height: 22%; top: 0%;  left: 72%;  z-index: 4; animation-delay: 0.4s; transform: rotate(-1deg); }
.collage-item:nth-child(4)  { width: 24%; height: 20%; top: 26%; left: 16%;  z-index: 2; animation-delay: 0.6s; transform: rotate(4deg); }
.collage-item:nth-child(5)  { width: 24%; height: 20%; top: 26%; left: 60%;  z-index: 5; animation-delay: 0.8s; transform: rotate(-3deg); }
.collage-item:nth-child(6)  { width: 28%; height: 22%; top: 52%; left: 0%;   z-index: 3; animation-delay: 1s;   transform: rotate(2deg); }
.collage-item:nth-child(7)  { width: 24%; height: 20%; top: 52%; left: 38%;  z-index: 4; animation-delay: 1.2s; transform: rotate(-4deg); }
.collage-item:nth-child(8)  { width: 28%; height: 22%; top: 52%; left: 72%;  z-index: 2; animation-delay: 1.4s; transform: rotate(3deg); }
.collage-item:nth-child(9)  { width: 20%; height: 16%; top: 78%; left: 10%;  z-index: 3; animation-delay: 1.6s; transform: rotate(-2deg); }
.collage-item:nth-child(10) { width: 20%; height: 16%; top: 78%; left: 40%;  z-index: 2; animation-delay: 1.8s; transform: rotate(2deg); }
.collage-item:nth-child(11) { width: 20%; height: 16%; top: 78%; left: 70%;  z-index: 3; animation-delay: 2s;   transform: rotate(-3deg); }
.collage-item:nth-child(12) { width: 16%; height: 13%; top: 36%; left: 80%;  z-index: 2; animation-delay: 2.2s; transform: rotate(2deg); }
.collage-item:nth-child(13) { width: 16%; height: 13%; top: 36%; left: 4%;   z-index: 3; animation-delay: 2.4s; transform: rotate(-2deg); }
.collage-item:nth-child(14) { width: 16%; height: 13%; top: 36%; left: 44%;  z-index: 2; animation-delay: 2.6s; transform: rotate(3deg); }

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .collage-area {
        min-height: 180px;
    }
    .collage-item:nth-child(n+9) {
        display: none;
    }
}
@media (max-width: 768px) {
    .collage-area {
        min-height: 120px;
    }
    .collage-item:nth-child(n+7) {
        display: none;
    }
} 