.gallery_container{
    background: var(--cream_color);
    min-height: 100vh;
}
.gallery_line{
    width: 80%;
    content: "";
    height: 1px;
    background: rgba(0, 1, 1, .4);
    margin: auto;
}
.gallery_control_bar{
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 10px 50px;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 3;
    background: var(--cream_color);
    -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
}
.gallery_back_btn button{
    position: relative;
    display: flex;
    gap: 5px;
    align-items: center;
    background: none;
    color: black;
    border: none;
    outline: none;
    border: 1px solid var(--cream_color);
    padding: 5px 10px;
}
.gallery_back_btn button:hover{
    cursor: pointer;
    border: 1px solid black;
}
.into_gallery_name{
    font-size: 5rem;
}

.gallery_div{
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 400px;
    column-gap: 15px;
    row-gap: 15px;
    padding: 100px 50px 20px 50px;
}
.gallery_img{
    position: relative;
    grid-column: span 1;
    grid-row: span 1;
}
.gallery_img:hover{
    cursor: pointer;
}
.gallery_img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0); 
    transition: box-shadow 0.2s ease-in-out;
}

.gallery_img:hover::after {
    -webkit-box-shadow: inset 0px 0px 30px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: inset 0px 0px 30px 0px rgba(0,0,0,0.75);
    box-shadow: inset 0px 0px 30px 0px rgba(0,0,0,0.75);
}


.gallery_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery_img video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-box-shadow: inset 0px 0px 30px 0px rgba(0,0,0,0.15);
    -moz-box-shadow: inset 0px 0px 30px 0px rgba(0,0,0,0.15);
    box-shadow: inset 0px 0px 30px 0px rgba(0,0,0,0.15);
}

.gallery_logo label{
    font-size: 1.7rem;
    -webkit-font-smoothing: antialiased;
    font-weight: bold;
}
.gallery_logo img{
    height: 65px;
    object-fit: cover;
}


/* (start) ALBUM (start) */
/* (start) ALBUM (start) */
/* (start) ALBUM (start) */
.gallery_return_btn{
    color: black;
    font-size: 3rem;
    border: none;
    outline: none;
    background: none;
}
.gallery_return_btn:hover{
    color: var(--primary_color);
}


.gallery_album_container{
    background: rgba(239, 235, 229, .2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 3;
    -webkit-user-select: none;  /* Chrome, Safari, Opera */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer/Edge */
    user-select: none;          /* Standard syntax */
}
.album_img{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}
.album_img img{
    margin: auto;
    max-height: 90vh;
    width: 100%;
    object-fit: cover;
    -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
}
.album_img video{
    margin: auto;
    max-height: 90vh;
    width: 100%;
    object-fit: cover;
    -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
}
.close_album{
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 1, 1, 1);
    color: rgba(255, 254, 254, 1);
    font-size: 2rem;
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
}
.close_album:hover{
    color: rgba(255, 254, 254, 1);
    background: var(--primary_color);
}

.photo_title{
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 1);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0,.4) 65%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0,.4) 65%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0,.4) 65%, rgba(0, 0, 0, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#397c3a",endColorstr="#397c3a",GradientType=1);
    
    color: rgba(255, 254, 254, 1);
    font-weight: bold;
    font-size: 1.5rem;
    border: none;
    outline: none;
    padding: 5px 80px 5px 20px;
}

.album_control_line{
    height: 80px;
    display: -webkit-grid;
    display: grid;
    justify-content: end;
    align-items: center;
    padding: 10px 80px;
}
.album_control_line button{
    border: none;
    outline: none;
    font-size: 2rem;
    background: none;
    color: rgba(0, 1, 1, .5);
}
.album_control_line button:hover{
    cursor: pointer;
    color: rgba(0, 1, 1, 1);
}

.album_content{
    width: 100vw;
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: .2fr 1fr .2fr;
    grid-template-columns: .2fr 1fr .2fr;
}

.album_controll{
    background: none;
    color: rgba(0, 1, 1, .5);
    font-size: 3rem;
    padding: 10px;
    display: flex;
    align-items: center;
}
.album_controll:hover{
    cursor: pointer;
    color: rgba(0, 1, 1, 1);
}
.hidden{
    display: none;
}

.img_delete_btn{
    position: absolute;
    left: calc(50% - 20px);
    top: 0;
    background: rgba(153, 0, 0, .4);
    color: rgba(255, 254, 254, .4);
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    z-index: 2;
}
.img_delete_btn:hover{
    cursor: pointer;
    background: rgba(153, 0, 0, 1);
    color: rgba(255, 254, 254, 1);
}

.img_edit_btn{
    position: absolute;
    right: 0;
    left: calc(50% - 65px);
    top: 0;
    background: rgba(0, 153, 0, .4);
    color: rgba(255, 254, 254, .4);
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    z-index: 2;
}
.img_edit_btn:hover{
    cursor: pointer;
    background: rgba(0, 153, 0, 1);
    color: rgba(255, 254, 254, 1);
}

.edit_label_div{
    position: absolute;
    inset: 0 0 0 0;
    background: rgba(0, 0, 0, .8);
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.edit_div_content{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.edit_div_content label{
    color:  white;
    display: block;
}
.edit_div_content textarea{
    width: 100%;
    display: block;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 10px 15px;
}
.save_edit_label{
    position: absolute;
    inset: auto 20px 20px 20px;
    border: none;
    outline: none;
    background: rgba(0, 153, 0, .4);
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}
.save_edit_label:hover{
    cursor: pointer;
    background: rgba(0, 153, 0, 1);
}

.gallery_inner_loader{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
}
/* (end) ALBUM (end) */
/* (end) ALBUM (end) */
/* (end) ALBUM (end) */

@media only screen and (max-width: 1100px) and (min-width: 801px){
    .gallery_container{
        min-height: 100%;
    }
    .gallery_control_bar{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10pt 20pt;
    }
    .gallery_back_btn button{
        gap: 5pt;
        border: 1pt solid var(--cream_color);
        padding: 5pt 10pt;
    }
    .gallery_back_btn button:hover{
        border: 1pt solid black;
    }
    .into_gallery_name{
        font-size: 30pt;
    }
    
    .gallery_div{
        display: flex;
        flex-direction: column;
        gap: 15pt;
        /* padding: 0px 50px 20px 50px; */
    }
    
    .gallery_logo label{
        font-size: 20pt;
    }
    .gallery_logo img{
        height: 50pt;
    }
    
    
    /* (start) ALBUM (start) */
    /* (start) ALBUM (start) */
    /* (start) ALBUM (start) */
    .gallery_return_btn{
        font-size: 30pt;
    }
    .gallery_album_container{
        background: rgba(239, 235, 229, .2);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        z-index: 3;
        -webkit-user-select: none;  /* Chrome, Safari, Opera */
        -moz-user-select: none;     /* Firefox */
        -ms-user-select: none;      /* Internet Explorer/Edge */
        user-select: none;          /* Standard syntax */
    }
    .album_img{
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: auto;
    }
    .album_img img{
        margin: auto;
        max-height: 90vh;
        width: 100%;
        object-fit: cover;
        -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    }
    .album_img video{
        margin: auto;
        max-height: 90vh;
        width: 100%;
        object-fit: cover;
        -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    }
    .close_album{
        position: absolute;
        top: 0;
        right: 0;
        background: rgba(0, 1, 1, 1);
        color: rgba(255, 254, 254, 1);
        font-size: 2rem;
        border: none;
        outline: none;
        width: 50px;
        height: 50px;
    }
    .close_album:hover{
        color: rgba(255, 254, 254, 1);
        background: var(--primary_color);
    }
    
    .album_control_line{
        height: 80px;
        display: -webkit-grid;
        display: grid;
        justify-content: end;
        align-items: center;
        padding: 10px 80px;
    }
    .album_control_line button{
        border: none;
        outline: none;
        font-size: 2rem;
        background: none;
        color: rgba(0, 1, 1, .5);
    }
    .album_control_line button:hover{
        cursor: pointer;
        color: rgba(0, 1, 1, 1);
    }
    
    .album_content{
        width: 100vw;
        display: -webkit-grid;
        display: grid;
        -webkit-grid-template-columns: .2fr 1fr .2fr;
        grid-template-columns: .2fr 1fr .2fr;
    }
    
    .album_controll{
        background: none;
        color: rgba(0, 1, 1, .5);
        font-size: 3rem;
        padding: 10px;
        display: flex;
        align-items: center;
    }
    .album_controll:hover{
        cursor: pointer;
        color: rgba(0, 1, 1, 1);
    }
    .hidden{
        display: none;
    }
    
    .img_delete_btn{
        position: absolute;
        right: 0;
        top: 0;
        background: rgba(153, 0, 0, .4);
        color: rgba(255, 254, 254, .4);
        width: 40px;
        height: 40px;
        border: none;
        outline: none;
        z-index: 2;
    }
    .img_delete_btn:hover{
        cursor: pointer;
        background: rgba(153, 0, 0, 1);
        color: rgba(255, 254, 254, 1);
    }
    
    
    .gallery_inner_loader{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 90vh;
    }
    /* (end) ALBUM (end) */
    /* (end) ALBUM (end) */
    /* (end) ALBUM (end) */
}


@media only screen and (max-width: 800px) and (min-width: 481px){
    .gallery_container{
        min-height: 100%;
    }
    .gallery_control_bar{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10pt 20pt;
    }
    .gallery_back_btn button{
        gap: 5pt;
        border: 1pt solid var(--cream_color);
        padding: 5pt 10pt;
    }
    .gallery_back_btn button:hover{
        border: 1pt solid black;
    }
    .into_gallery_name{
        font-size: 30pt;
    }
    
    .gallery_div{
        display: flex;
        flex-direction: column;
        gap: 15pt;
        /* padding: 0px 50px 20px 50px; */
    }
    
    .gallery_logo label{
        font-size: 20pt;
    }
    .gallery_logo img{
        height: 50pt;
    }
    
    
    /* (start) ALBUM (start) */
    /* (start) ALBUM (start) */
    /* (start) ALBUM (start) */
    .gallery_return_btn{
        font-size: 30pt;
    }
    .gallery_album_container{
        background: rgba(239, 235, 229, .2);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        z-index: 3;
        -webkit-user-select: none;  /* Chrome, Safari, Opera */
        -moz-user-select: none;     /* Firefox */
        -ms-user-select: none;      /* Internet Explorer/Edge */
        user-select: none;          /* Standard syntax */
    }
    .album_img{
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: auto;
    }
    .album_img img{
        margin: auto;
        max-height: 90vh;
        width: 100%;
        object-fit: cover;
        -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    }
    .album_img video{
        margin: auto;
        max-height: 90vh;
        width: 100%;
        object-fit: cover;
        -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    }
    .close_album{
        position: absolute;
        top: 0;
        right: 0;
        background: rgba(0, 1, 1, 1);
        color: rgba(255, 254, 254, 1);
        font-size: 2rem;
        border: none;
        outline: none;
        width: 50px;
        height: 50px;
    }
    .close_album:hover{
        color: rgba(255, 254, 254, 1);
        background: var(--primary_color);
    }
    
    .album_control_line{
        height: 80px;
        display: -webkit-grid;
        display: grid;
        justify-content: end;
        align-items: center;
        padding: 10px 80px;
    }
    .album_control_line button{
        border: none;
        outline: none;
        font-size: 2rem;
        background: none;
        color: rgba(0, 1, 1, .5);
    }
    .album_control_line button:hover{
        cursor: pointer;
        color: rgba(0, 1, 1, 1);
    }
    
    .album_content{
        width: 100vw;
        display: -webkit-grid;
        display: grid;
        -webkit-grid-template-columns: .2fr 1fr .2fr;
        grid-template-columns: .2fr 1fr .2fr;
    }
    
    .album_controll{
        background: none;
        color: rgba(0, 1, 1, .5);
        font-size: 3rem;
        padding: 10px;
        display: flex;
        align-items: center;
    }
    .album_controll:hover{
        cursor: pointer;
        color: rgba(0, 1, 1, 1);
    }
    .hidden{
        display: none;
    }
    
    .img_delete_btn{
        position: absolute;
        right: 0;
        top: 0;
        background: rgba(153, 0, 0, .4);
        color: rgba(255, 254, 254, .4);
        width: 40px;
        height: 40px;
        border: none;
        outline: none;
        z-index: 2;
    }
    .img_delete_btn:hover{
        cursor: pointer;
        background: rgba(153, 0, 0, 1);
        color: rgba(255, 254, 254, 1);
    }
    
    
    .gallery_inner_loader{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 90vh;
    }
    /* (end) ALBUM (end) */
    /* (end) ALBUM (end) */
    /* (end) ALBUM (end) */
}

@media only screen and (max-width: 480px){
    .gallery_container{
        min-height: 100%;
    }
    .gallery_control_bar{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10pt 20pt;
    }
    .gallery_back_btn button{
        gap: 5pt;
        border: 1pt solid var(--cream_color);
        padding: 5pt 10pt;
    }
    .gallery_back_btn button:hover{
        border: 1pt solid black;
    }
    .into_gallery_name{
        font-size: 30pt;
    }
    
    .gallery_div{
        display: flex;
        flex-direction: column;
        gap: 15pt;
        padding: 0pt;
    }
    
    .gallery_logo label{
        font-size: 20pt;
    }
    .gallery_logo img{
        height: 25pt;
    }
    
    
    /* (start) ALBUM (start) */
    /* (start) ALBUM (start) */
    /* (start) ALBUM (start) */
    .gallery_return_btn{
        font-size: 30pt;
    }
    .gallery_album_container{
        background: rgba(239, 235, 229, .2);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        z-index: 3;
        -webkit-user-select: none;  /* Chrome, Safari, Opera */
        -moz-user-select: none;     /* Firefox */
        -ms-user-select: none;      /* Internet Explorer/Edge */
        user-select: none;          /* Standard syntax */
    }
    .album_img{
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: auto;
    }
    .album_img img{
        margin: auto;
        max-height: 90vh;
        width: 100%;
        object-fit: cover;
        -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    }
    .album_img video{
        margin: auto;
        max-height: 90vh;
        width: 100%;
        object-fit: cover;
        -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
    }
    .close_album{
        position: absolute;
        top: 0;
        right: 0;
        background: rgba(0, 1, 1, 1);
        color: rgba(255, 254, 254, 1);
        font-size: 2rem;
        border: none;
        outline: none;
        width: 50px;
        height: 50px;
    }
    .close_album:hover{
        color: rgba(255, 254, 254, 1);
        background: var(--primary_color);
    }
    
    .album_control_line{
        height: 80px;
        display: -webkit-grid;
        display: grid;
        justify-content: end;
        align-items: center;
        padding: 10px 80px;
    }
    .album_control_line button{
        border: none;
        outline: none;
        font-size: 2rem;
        background: none;
        color: rgba(0, 1, 1, .5);
    }
    .album_control_line button:hover{
        cursor: pointer;
        color: rgba(0, 1, 1, 1);
    }
    
    .album_content{
        width: 100vw;
        display: -webkit-grid;
        display: grid;
        grid-template-columns: .2fr 1fr .2fr;
    }
    
    .album_controll{
        background: none;
        color: rgba(0, 1, 1, .5);
        font-size: 3rem;
        padding: 10px;
        display: flex;
        align-items: center;
    }
    .album_controll:hover{
        cursor: pointer;
        color: rgba(0, 1, 1, 1);
    }
    .hidden{
        display: none;
    }
    
    .img_delete_btn{
        position: absolute;
        right: 0;
        top: 0;
        background: rgba(153, 0, 0, .4);
        color: rgba(255, 254, 254, .4);
        width: 40px;
        height: 40px;
        border: none;
        outline: none;
        z-index: 2;
    }
    .img_delete_btn:hover{
        cursor: pointer;
        background: rgba(153, 0, 0, 1);
        color: rgba(255, 254, 254, 1);
    }
    
    
    .gallery_inner_loader{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 90vh;
    }
    /* (end) ALBUM (end) */
    /* (end) ALBUM (end) */
    /* (end) ALBUM (end) */
}