:root {
    --default-w: 70%;
}

#kakeleposts {
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    padding-top: 15px;

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;

        .posts-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
            width: 100%;
            margin-top: 30px;
    
            .post-container {
                width: var(--default-w);
                height: 150px;
                position: relative;
                display: flex;
                flex-direction: column;
                justify-content: space-evenly;
                text-align: center;
                border-radius: 10px;
                background-size: cover;
                background-repeat: no-repeat;
                background-blend-mode: color-burn;
            }
        }
    }

    .see-more {
        margin: 30px 0;
        
        button {
            padding: 15px;
            width: 250px;
            border-radius: 20px;
            background-color: #282828;
            cursor: pointer;
            color: #fff;
            transition: transform 0.3s;
        }
        
        button:hover {
            transform: translateY(-3px);
        }
    }
    
    .posts-container .post-container:nth-child(odd) {
        right: calc(-100% + var(--default-w));
        align-items: flex-end;
        padding-right: 30px;
        text-align: end;
    }
    
    .posts-container .post-container:nth-child(odd):hover {
        transform: translateX(-8px);
    }
    
    .posts-container .post-container:nth-child(even) {
        left: calc(-100% + var(--default-w));
        align-items: flex-start;
        padding-left: 30px;
        text-align: start;
    }
    
    .posts-container .post-container:nth-child(even):hover {
        transform: translateX(8px);
        box-shadow: -5px 5px 12px rgba(0, 0, 0, 0.7);
    }
    
    .all-posts-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 1;
    
        .close {
            cursor: pointer;
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5em;
            color: var(--secondary-color)
        }
    }

    .modal-posts-container {
        display: none;
        position: fixed;
        flex-direction: column;
        justify-content: space-evenly;
        text-align: center;
        gap: 15px;
        background-color: var(--primary-color);
        padding: 30px 45px;
        width: 50%;
        max-width: 960px;
        max-height: 750px;
        margin-top: 100px;
        border-radius: 15px;
        min-height: 500px;
        box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
        z-index: 2;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        overflow-y: auto;

        .modal-header {
            margin-bottom: 15px;

            #total-posts strong {
                color: var(--secondary-color);
            }
        }

        a {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100px;
            border-radius: 15px;
            background-size: cover;
            background-repeat: no-repeat;
            background-blend-mode: color-burn;
            transition: transform 0.3s;
            box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        a:hover {
            transform: translateY(-3px);
        }

        .return {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 30px;
            
            button {
                padding: 15px;
                width: 250px;
                border-radius: 20px;
                background-color: #282828;
                cursor: pointer;
                color: #fff;
                transition: transform 0.3s;
            }
            
            button:hover {
                transform: translateY(-3px);
            }
        }
    }

    .post-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding: 15px;
    }
}
