/*Author: Gali Kechichian 
*/
#grid-container {
    margin: 30px;
    columns: 3;
    column-gap: 20px;
}

#film-overlay{
    background-color:rgba(43, 23, 23, 0.825);
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:99;
}
#film-overlay.gallery{
    display:none;
}

#preview-box{
    position:fixed;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    z-index:100;
    height:85%;
    width:960px;
    background-color:hsl(351, 47%, 97%);
    box-shadow: 2px 6px 6px rgba(0, 0, 0, 0.225);
    text-align: center;
}

#preview-box.gallery{
    display:none;
}

#preview-box img{
    position:absolute;  
    top: 50%;
    left: 50%;
    margin-top:15px;
    transform: translate(-50%, -50%);
    max-width:80%;
    max-height:86%;
    width:auto;
    height:auto;
}

#exit {
    display:block;
    text-align: end;
}

#exit i{
    margin-bottom:5px;
    margin-top:20px;
    margin-right:20px;
    font-size:30px;
    color: rgb(132, 76, 88);
    cursor:pointer;
}
#exit i:hover,
.slide-prev i:hover,
.slide-next i:hover{
    color:black;
}
.slide-prev, .slide-next{
    position:absolute;
    top:51%;
    padding:20px;
    font-size: 40px;
    color: rgb(132, 76, 88);
    cursor:pointer;  
}
.slide-prev{
    left:0;
}
.slide-next{
    right:0;
}

#caption{
    width:fit-content;
    margin: 0 auto;
    position:relative;
    top:-30px;
    font-size:25px;
    color:rgb(132, 76, 88);
    font-family:'Philosopher', serif;
}

.wrapper {
    margin-bottom:20px;
    align-items: center;
    position: relative;
    width: 100%;
}
.artwork {
    margin:auto;
    display:block;
    max-width: 100%;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    background-color: rgba(48, 22, 22, 0.762);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.overlay:hover {
    opacity: 1;
    cursor:pointer;
}
.text {
    width: fit-content;
    color: #fff;
    border-top:#fff 2px solid;
    border-bottom:#fff 2px solid;
    font-family: 'Philosopher', serif;
    font-size: 16px;
    text-align: center;
    padding: 13px;
}
.date {  
    font-family: 'Philosopher', serif;
    letter-spacing:3px;
    color:#fff;
    margin: 15px;
}
@media screen and (max-width:1000px) {
    #grid-container {
        columns:2; 
        column-gap: 10px;    
        margin:15px;
    }
    #preview-box{
        height:70%;
        width:98%;
        z-index:100;
    }
    #exit i{
        margin-top:10px;
        margin-right:10px;
        font-size:20px;
    }

    #caption{
        top:-20px;
        font-size:20px;
    }

    .slide-prev, .slide-next{
        padding:10px;
        font-size: 30px;
    }
    .wrapper {
        margin-bottom: 10px;
    }
}