.profile-pic {
    aspect-ratio: 8/12.5;
    width: 50%;
    margin: auto;
    margin-bottom: 2rem;
    transition: opacity .3s;
}
.profile-pic img {
    object-fit: cover;
    object-position: top;
    width: 100%; height: 100%;
}
.item-box {
    position: relative;
    box-sizing: border-box;
    cursor: pointer;
    /*transition: transform 0.2s ease, box-shadow 0.2s ease;*/
}
.item-box:hover .profile-pic {
    opacity: 0.5;
   /* transform: translateY(-5px);*/
}
.overlay {
    position: fixed;
    top:0; right:0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(254,243,224,0.95);
    /*background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);*/
}
.overlay .content {
    border: 1px solid var(--color-brown);
    padding: 35px 35px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    max-width: 800px;
    background: var(--color-paper);
    z-index: 2;
    position: relative;
    /*animation: slideUp 0.3s ease;*/
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay .content .hr {
    border-top: 1px solid var(--color-brown);
    width: 100%;
    margin: 1.5rem 0;
}
.overlay .overlay-close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 2em;
    padding: 18px 20px;
}
.overlay .overlay-close:hover {
    color: var(--color-orange);
    cursor: pointer;
}

/* Close button hint
.overlay::after {
    content: 'Click outside or press ESC to close';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.85rem;
    text-align: center;
} */

@media (max-width: 768px) {
    .overlay .content {
        width: 90%;
        padding: 30px 13px 30px;
    }
    .overlay .overlay-close {
        font-size: 2.2em;
        padding: 10px 12px;
    }
    .overlay .content .hr {
        margin: 1.25rem 0;
    }
    /*.overlay::after {
        content: 'Tap outside to close';
    }*/
}