@font-face {
    font-family: 'LinLibertine';
    src: url('assets/linlibertine_r.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1 {
    font-size: 1.3rem;
    font-family: 'LinLibertine', serif;
    text-align: center;
    padding-top: 1rem;
    /* visibility: hidden; */
}
#original {
    text-align: center;
}

#outer-container {
    display: flex;
    justify-content: center;
    /* align-items: center; */
}
#main-container {
    display: flex;
    /* align-items: center; */
    justify-content: start;
    position: relative;
    /* width: 100%; */
    img {
        max-width: 40vw;
        height: auto;
        /* width: 100%; */
    }

}

#half-portrait {
    /* width: 100%; */
    /* position: relative; */
    /* left: 0;
    top: 0; */
    /* width: 500px; */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#wrapper {
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 100vh;
    padding: 2rem;
}

#original {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    img {
        max-width: 40vw;
        height: auto;
        /* width: 100%; */
    }
}

/* #main-container {
    display: flex;
    align-items: center;
    justify-content: center;
} */

#screenshot-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0 0.5rem;
    span {
        display: none;
    }
}

/* Screenshots container grid */
#screenshot-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 2rem;
}

.screenshot-item {
    position: relative;
    border: 2px solid #667eea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.screenshot-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.screenshot-timestamp {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

@media (min-width: 1024px) {
    #screenshot-container {
        grid-template-columns: repeat(3, 1fr);
    }
    h1 {
        writing-mode: vertical-rl;
        text-orientation: upright;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1024px) {
    
    #wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    #original {
        img {
            max-width: 100%;
        }
    }

    #main-container {
        img {
            max-width: 100%;
        }
    }
}