#gallery_container
{
    display: flex;
    justify-content: center;
     margin: 25px 0px;
}

.mygallery {
    max-width: 730px;
    margin: 0 auto;
}

.mygallery > div > div:first-child {
    border: 1px solid var(--content-border-color);
    border-radius: var(--content-border-radius);
    height: 500px;
    width: 500px;
    overflow: hidden;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#gallery_container:hover > div:first-child .div-actions {
    display: flex;
}
#gallery_container > div:first-child .div-actions {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}
.div-actions i {
    cursor: pointer;
}


.mygallery > div > div:first-child img {
    height: 100%;
    object-fit: contain;
}

.mygallery > div > div:last-child {
    display: flex;
    height: 500px;
    width: 221px;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow: auto;
    padding: 1px 0px;
}

.mygallery > div > div:last-child > div {
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 0px 0px 5px 5px;
    height: 100px;
    width: 100px;
    border: 1px solid var(--content-border-color);
    border-radius: var(--content-border-radius);
    transition: all 0.2s ease;
    align-content: center;
    justify-content: center;
    background: white;
}

.mygallery > div > div:last-child > div img {
    object-fit: cover;
    height: 100%;
}

.mygallery > div > div:last-child > div:last-child {
    background: var(--tab-background);
    font-size: 50px;
    border: 2px dashed var(--content-border-color);
    color: #999;
}

.mygallery > div > div:last-child > div:last-child i { 
    width: 1em;
}

.mygallery > div > div:last-child > div:hover {
    border-color: #999;
    transform: scale(1.02);
}

.mygallery > div > div:last-child > div:last-child:hover {
    background: #eee;
    color: #666;
}

.mygallery .box-actions {
    position: absolute;
    top: 0px;
    right: 0px;
}

.mygallery .div-actions {
    width: 20px;
    height: 20px;
    border: 1px solid var(--content-border-color);
    background: white;
    margin: 2px;
    border-radius: 50%;
    display: none;
    font-size: 12px;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    color: var(--button-text-color);;
}

.mygallery .div-actions:hover {
    scale: 1.2;
}

.mygallery #expanded-area {
    position: fixed;
    top: 0px;
    right: 0px;
    z-index: 2;
    background: #00000099;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    display: none;
}

.mygallery #expanded-area img {
    width: 95vw;
    height: 95vh;
    object-fit: contain;
    user-select: none;
}

.mygallery #expanded-area .position-marker {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: #00000033;
    padding: 5px 15px;
    border-radius: 13px;
}

.mygallery #expanded-area .fi {
    font-size: 20px;
    position: absolute;
    color: white;
    cursor: pointer;
    background: #00000033;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.mygallery #expanded-area .fi.fi-rr-angle-right {
    right: 0;
    font-size: 25px;
    padding: 0;
}
.mygallery #expanded-area .fi.fi-rr-angle-left {
    left: 0;
    font-size: 25px;
    padding: 0;
}
.mygallery #expanded-area .fi.fi-rr-cross-custom {
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
}

.mygallery > div > div:last-child > div:hover .div-actions{
    display: flex;
}