#app{
    position: relative;
    display: table;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    width: 100%;
    margin: auto;
}

#service_albums {
    position: relative;
    display: inline-table;
    margin: auto;
    width: 100%;
    height: 95%;
}

.image-item {
    width: 16.6%;
    float: left;
    position: relative;
    margin: auto;
}

.image-item::after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

/*Ipad dọc(768 x 1024)*/
@media screen and (max-width: 1024px) {
    #service_albums {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 1024px;
    }

    .image-item {
        width: 25%;
        height: 22%;
        display: flex;
        margin: unset;
    }

    .image-item img {
        padding: 0px;
    }
}

/*Tablet nhỏ(480 x 640)*/
@media screen and (max-width: 480px) {
    #service_albums {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 480px;
    }

    .image-item {
        width: 33%;
        height: 13%;
        display: flex;
        margin: unset;
    }

    .image-item img {
        padding: 0px;
    }
}


.preview {
    background: #F8F8F9;
    border-radius: 8px;
}

.image-item img {
    border-radius: 8px;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: fill;
    padding: 5px;
}

.pagination {
    width: 100%;
    margin: auto;
    display: block;
    text-align: center;
    position: relative;
}

.page-nav {
    margin: 3px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #EAE8E8;
    font-weight: 400;
    line-height: 16px;
    font-size: 14px;
    font-family: 'SFProText-Regular', serif;
    background: #FFFFFF;
    color: #64686E;
}

.page-nav:hover {
    background-color: #EAE8E8;
}

.page-nav:focus {
    outline: none;
}

.page-nav.disabled {
    background: #FFFFFF;
    border: 1px solid #EAE8E8;
    color: #FFFFFF;
}

.page-nav.active {
    background: #DD1029;
    color: #FFFFFF;
}

.arrow-left, .arrow-right {
    border: 2px solid #141618;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.arrow-left.disabled, .arrow-right.disabled {
    border: 2px solid #A1A4A9;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.arrow-right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.arrow-left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}


#slider {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99999;
    background: #0c0c0c;
    opacity: 0.95;
}

.fancybox-content {
    width: 100%;
    height: 100%;
    text-align: center;
}

.fancybox-content-left {
    display: inline-block;
    width: 50%;
    margin: 2px;
    height: 100%;
    align-content: center;
}

.fancybox-content-left img {
    /*width: 100%;*/
    max-width: 100%;
    max-height: 95%;
}

.fancybox-content-right {
    display: inline-block;
    width: 450px;
    margin: 2px;
    text-align: left;
    vertical-align: top;
    padding: 10px 20px 20px 10px;
}

.fancybox-content-right div:first-child {
    display: flex;
    flex-direction: row;
    height: 40px;
}

.fancybox-content-right div:nth-child(2) {
    display: flex;
    flex-direction: column;
    line-height: 20px;
    vertical-align: center;
}

.fancybox-content-right .avatar {
    width: 40px;
    display: inline;
}

.fancybox-content-right .avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.fancybox-content .hr {
    height: 2px;
    width: 100%;
    border: 1px solid #FFFFFF;
    margin-top: 10px;
    margin-bottom: 10px
}

.fancybox-content .fancybox-img-info {
    display: inline;
    width: 100%;
    font-size: 14px;
    font-family: PingFangHK-Regular, serif;
    line-height: 14px;
    margin-left: 10px;
    color: #FFFFFF;
    font-weight: 400;
}

.fancybox-content .img-description {
    display: inline;
    width: 100%;
    font-size: 15px;
    line-height: 21px;
    font-family: PingFangHK-Regular, serif;
    color: #FFFFFF;
    font-weight: 400;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .pagination {
        justify-content: right;
    }
}
