/* Stacked Images Styles - Responsive Version */
.home-about.everyday {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.stacked-images {
    flex: 1 1 41rem;
    display: flex;
    justify-content: center;
    min-height: 270px;
    max-width: 460px;
    margin: 0 auto;
}

.image-stack {
    display: grid;
    grid-template-areas: "stack";
    width: 100%;
    height: 100%;
    place-items: center;
}

.image-stack img {
    grid-area: stack;
    border: 4px solid white;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    object-fit: cover;
    aspect-ratio: 4/3;
    width: 80%;
    max-width: 340px;
}

.stack-bottom {
    transform: translate(-15%, 10%) rotate(-4deg);
    z-index: 1;
}

.stack-middle {
    transform: translate(0%, 0%) rotate(3deg);
    z-index: 2;
}

.stack-top {
    transform: translate(15%, -10%) rotate(8deg);
    z-index: 3;
}

/* Hover effects */
.image-stack:hover .stack-top {
    transform: translate(15%, -12%) rotate(10deg);
}

.image-stack:hover .stack-middle {
    transform: translate(0%, -2%) rotate(0deg);
}

.image-stack:hover .stack-bottom {
    transform: translate(-15%, 12%) rotate(-6deg);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stacked-images {
        min-height: 220px;
        max-width: 380px;
    }
    
    .image-stack img {
        width: 75%;
    }
}

@media (max-width: 992px) {
    .stacked-images {
        min-height: 200px;
        max-width: 340px;
    }
    
    .image-stack img {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .stacked-images {
        min-height: 180px;
        max-width: 300px;
    }
    
    .image-stack img {
        width: 65%;
        border-width: 3px;
    }
    
    .stack-bottom {
        transform: translate(-10%, 8%) rotate(-4deg);
    }
    
    .stack-middle {
        transform: translate(0%, 0%) rotate(3deg);
    }
    
    .stack-top {
        transform: translate(10%, -8%) rotate(8deg);
    }
}

@media (max-width: 576px) {
    .stacked-images {
        min-height: 150px;
        max-width: 260px;
    }
    
    .image-stack img {
        width: 60%;
    }
}

@media (max-width: 450px) {
    .stacked-images {
        min-height: 120px;
        max-width: 220px;
    }
    
    .image-stack img {
        width: 55%;
        border-width: 2px;
    }
    
    .stack-bottom {
        transform: translate(-8%, 6%) rotate(-4deg);
    }
    
    .stack-top {
        transform: translate(8%, -6%) rotate(8deg);
    }
}