/*
 * Photo Collage Background
 * Multiple overlapping wedding photos with rotation effects
 */

/* Photo collage container - positioned behind the form */
.photo-collage-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    overflow: visible;
    pointer-events: none;
}

/* Individual photo frames */
.collage-photo {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0.95;
    transition: transform 0.3s ease;
    border: 8px solid rgba(255, 255, 255, 0.95);
    z-index: 10;
}

.collage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo 1 - Top left corner */
.collage-photo:nth-child(1) {
    top: 5%;
    left: 2%;
    width: 260px;
    height: 340px;
    transform: rotate(-8deg);
}

/* Photo 2 - Top right corner */
.collage-photo:nth-child(2) {
    top: 3%;
    right: 2%;
    width: 320px;
    height: 240px;
    transform: rotate(6deg);
}

/* Photo 3 - Bottom left corner */
.collage-photo:nth-child(3) {
    bottom: 5%;
    left: 2%;
    width: 240px;
    height: 320px;
    transform: rotate(10deg);
}

/* Photo 4 - Bottom right corner */
.collage-photo:nth-child(4) {
    bottom: 4%;
    right: 2%;
    width: 300px;
    height: 220px;
    transform: rotate(-7deg);
}

/* Photo 5 - Mid left edge */
.collage-photo:nth-child(5) {
    top: 35%;
    left: 1%;
    width: 240px;
    height: 300px;
    transform: rotate(-12deg);
}

/* Photo 6 - Mid right edge */
.collage-photo:nth-child(6) {
    top: 38%;
    right: 1%;
    width: 250px;
    height: 310px;
    transform: rotate(9deg);
}

/* Photo 7 - Top left of center */
.collage-photo:nth-child(7) {
    top: 8%;
    left: 20%;
    width: 240px;
    height: 300px;
    transform: rotate(-5deg);
}

/* Photo 8 - Top right of center */
.collage-photo:nth-child(8) {
    top: 10%;
    right: 20%;
    width: 260px;
    height: 320px;
    transform: rotate(8deg);
}

/* Photo 9 - Bottom left of center */
.collage-photo:nth-child(9) {
    bottom: 8%;
    left: 19%;
    width: 230px;
    height: 290px;
    transform: rotate(7deg);
}

/* Photo 10 - Bottom right of center */
.collage-photo:nth-child(10) {
    bottom: 10%;
    right: 19%;
    width: 270px;
    height: 330px;
    transform: rotate(-9deg);
}

/* Photo 11 - Upper mid left */
.collage-photo:nth-child(11) {
    top: 20%;
    left: 8%;
    width: 230px;
    height: 280px;
    transform: rotate(11deg);
}

/* Photo 12 - Upper mid right */
.collage-photo:nth-child(12) {
    top: 18%;
    right: 8%;
    width: 240px;
    height: 300px;
    transform: rotate(-8deg);
}

/* Photo 13 - Lower mid left */
.collage-photo:nth-child(13) {
    bottom: 20%;
    left: 9%;
    width: 250px;
    height: 310px;
    transform: rotate(-10deg);
}

/* Photo 14 - Lower mid right */
.collage-photo:nth-child(14) {
    bottom: 22%;
    right: 9%;
    width: 230px;
    height: 290px;
    transform: rotate(10deg);
}

/* Photo 15 - Top center */
.collage-photo:nth-child(15) {
    top: 5%;
    left: 50%;
    width: 250px;
    height: 310px;
    transform: translateX(-50%) rotate(-6deg);
}

/* Subtle hover effect */
.collage-photo:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 51;
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Overlay for readability */
.collage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(250, 248, 245, 0.15) 0%,
        rgba(245, 230, 232, 0.10) 50%,
        rgba(250, 248, 245, 0.15) 100%
    );
    z-index: 75;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .collage-photo {
        opacity: 0.7;
    }

    .collage-photo:nth-child(1),
    .collage-photo:nth-child(2),
    .collage-photo:nth-child(3),
    .collage-photo:nth-child(4),
    .collage-photo:nth-child(5),
    .collage-photo:nth-child(6) {
        width: 300px;
        height: 350px;
    }

    /* Hide extra photos on medium screens */
    .collage-photo:nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 768px) {
    .collage-photo {
        opacity: 0.75;
    }

    /* Reduce number of visible photos on mobile */
    .collage-photo:nth-child(5),
    .collage-photo:nth-child(6) {
        display: none;
    }

    .collage-photo:nth-child(1),
    .collage-photo:nth-child(2),
    .collage-photo:nth-child(3),
    .collage-photo:nth-child(4) {
        width: 220px;
        height: 280px;
    }

    /* Lighter overlay for better visibility */
    .collage-overlay {
        background: linear-gradient(
            135deg,
            rgba(250, 248, 245, 0.75) 0%,
            rgba(245, 230, 232, 0.70) 50%,
            rgba(250, 248, 245, 0.75) 100%
        );
    }
}

@media (max-width: 480px) {
    /* Keep 4 corner photos visible on small screens */
    .collage-photo:nth-child(1),
    .collage-photo:nth-child(2),
    .collage-photo:nth-child(3),
    .collage-photo:nth-child(4) {
        width: 180px;
        height: 220px;
        opacity: 0.85;
    }

    /* Lighter overlay so photos are more visible */
    .collage-overlay {
        background: linear-gradient(
            135deg,
            rgba(250, 248, 245, 0.70) 0%,
            rgba(245, 230, 232, 0.65) 50%,
            rgba(250, 248, 245, 0.70) 100%
        );
    }
}
