/*----- GENERAL -----*/
.thu-vien-anh .head{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    color: #fff;
    padding: 30px 0;
    text-shadow: 0 0 9px rgba(0,0,0,.5);
}
.thu-vien-anh .head:before{
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,.2);
}
.thu-vien-anh .head:after{
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(var(--mc-rgb-r, 0),var(--mc-rgb-g, 0),var(--mc-rgb-b, 0),.3);
}
.thu-vien-anh .head .background{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.thu-vien-anh .head .background img{
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    margin: 0;
}
.thu-vien-anh .head .container{
    position: relative;
    width: 100%;
    z-index: 1;
}
.thu-vien-anh .head .title{
    color: inherit;
    padding: 5px 0;
    margin: 0;
}
.thu-vien-anh .head .title + *{
    padding: 5px 0;
}
.thu-vien-anh .head .breadcrumb a:not(:hover),
.thu-vien-anh .head .woocommerce-breadcrumb a:not(:hover){
    color: #fff;
}
.thu-vien-anh .head .breadcrumb a:hover,
.thu-vien-anh .head .woocommerce-breadcrumb a:hover{
    color: #fff;
    text-decoration: underline;
}
@media (max-width: 1199px){
    .thu-vien-anh .head{
        min-height: 250px;
    }
    .thu-vien-anh .head .title,
    .thu-vien-anh .head .title + *{
        padding: 4px 0;
    }
}
@media (max-width: 767px){
    .thu-vien-anh .head{
        min-height: 200px;
    }
    .thu-vien-anh .head .title,
    .thu-vien-anh .head .title + *{
        padding: 3px 0;
    }
}
/*----- album-list -----*/
.thu-vien-anh .album-image-list,
.thu-vien-anh .album-list{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 0 60px;
}
.thu-vien-anh .album-image-list .item,
.thu-vien-anh .album-list .item{
    flex: 1 1 auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.thu-vien-anh .album-list .text{
    flex: 1 1 auto;
    padding: 10px 15px;
    font-weight: 600;
    max-width: 500px;
}
.thu-vien-anh .album-list .item:not(:hover) .text{
    color: #000;
}
.thu-vien-anh .album-image-list .img,
.thu-vien-anh .album-list .img{
    height: 224px;
    background-color: rgba(0,0,0,.2);
    overflow: hidden;
}
.thu-vien-anh .album-image-list .img img,
.thu-vien-anh .album-list .img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin: 0;
    filter: grayscale(.5);
    transition: .2s;
}
.thu-vien-anh .album-image-list .item:hover .img img,
.thu-vien-anh .album-list .item:hover .img img{
    filter: grayscale(0);
    transform: scale(1.1);
}
@media (max-width: 1199px){
    .thu-vien-anh .album-image-list,
    .thu-vien-anh .album-list{
        gap: 15px;
        padding: 30px 0 45px;
    }
    .thu-vien-anh .album-list .text{
        padding: 8px 12px;
    }
    .thu-vien-anh .album-image-list .img,
    .thu-vien-anh .album-list .img{
        height: 202px;
    }
}
@media (max-width: 767px){
    .thu-vien-anh .album-image-list,
    .thu-vien-anh .album-list{
        gap: 10px;
        padding: 20px 0 30px;
    }
    .thu-vien-anh .album-list .text{
        padding: 6px 10px;
    }
    .thu-vien-anh .album-image-list .img,
    .thu-vien-anh .album-list .img{
        height: 188px;
    }
}
/*----- album-image-list -----*/
.thu-vien-anh .album-image-list .item{
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,.3);
}
.thu-vien-anh .album-image-main .text,
.thu-vien-anh .album-image-list .text{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 15px 10px;
    font-weight: 600;
    color: #fff;
    background-image: linear-gradient(transparent, rgba(0,0,0,.5));
    transition: .2s;
    font-size: 16px;
    line-height: 20px;
}
.thu-vien-anh .album-image-list .text span{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}
.thu-vien-anh .album-image-list .item:not(:hover) .text{
    transform: translateY(100%);
}
@media (max-width: 1199px){
    .thu-vien-anh .album-image-main .text,
    .thu-vien-anh .album-image-list .text{
        padding: 40px 12px 8px;
        font-size: 14px;
        line-height: 18px;
    }
}
@media (max-width: 1199px){
    .thu-vien-anh .album-image-main .text,
    .thu-vien-anh .album-image-list .text{
        padding: 30px 10px 6px;
        font-size: 13px;
        line-height: 16px;
    }
}
/*----- album-image-slide -----*/
body.open-album{
    overflow: hidden;
}
body:not(.open-album) .thu-vien-anh .album-image-slide{
    opacity: 0;
    visibility: hidden;
    transform: scale(.8);
}
.thu-vien-anh .album-image-slide{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    display: flex;
    flex-wrap: wrap;
    transition: .3s;
    z-index: 999999;
    --album-nav: 350px;
}
.thu-vien-anh .album-image-main{
    flex: 1 1 auto;
    width: 1%;
    height: 100%;
    text-align: center;
    position: relative;
}
.thu-vien-anh .album-image-main .album-wrap{
    display: flex;
    flex-wrap: wrap;
    height: 100%;
}
.thu-vien-anh .album-image-main .item{
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
}
.thu-vien-anh .album-image-main .item:not(.active){
    display: none;
}
.thu-vien-anh .album-image-main .album-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--btn-size);
    height: var(--btn-size);
    cursor: pointer;
    font-size: var(--btn-fz);
    fill: #fff;
    background-color: rgba(0,0,0,.3);
    opacity: .7;
    --btn-size: 50px;
    --btn-fz: 18px;
}
.thu-vien-anh .album-image-main .album-btn:hover{
    opacity: 1;
}
.thu-vien-anh .album-image-main .album-btn svg{
    height: 1em;
}
.thu-vien-anh .album-image-main .album-btn *{
    fill: inherit;
}
.thu-vien-anh .album-image-main .album-prev,
.thu-vien-anh .album-image-main .album-next{
    position: absolute;
    top: calc(50% - var(--btn-size) / 2);
    left: 10px;
    width: calc(var(--btn-size) + 4px);
    height: calc(var(--btn-size) + 4px);
    font-size: calc(var(--btn-fz) + 2px);
    background-color: rgba(0,0,0,.7);
    border-radius: 50%;
    cursor: pointer;
}
.thu-vien-anh .album-image-main:not(:hover) .album-prev,
.thu-vien-anh .album-image-main:not(:hover) .album-next{
    transform: scale(0);
}
.thu-vien-anh .album-image-main .album-next{
    left: auto;
    right: 10px;
}
.thu-vien-anh .album-image-main .album-close{
    position: absolute;
    top: 0;
    left: 0;
}
.thu-vien-anh .album-image-main .album-expand{
    position: absolute;
    top: 0;
    right: 0;
}
.thu-vien-anh .album-image-main img{
    display: block;
    max-height: 100%;
    width: auto;
    margin: auto;
}
.thu-vien-anh .album-image-nav{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: var(--album-nav);
    height: 100%;
    padding: 15px 20px;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.thu-vien-anh .album-image-nav .title{
    font-size: 15px;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--main-color);
    margin-bottom: 15px;
}
.thu-vien-anh .album-image-nav .title strong{
    font-size: calc(100% + 2px);
    color: var(--main-color);
    font-weight: 700;
}
.thu-vien-anh .album-image-nav .album-wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.thu-vien-anh .album-image-nav .item{
    width: calc(50% - 5px) !important;
    height: 96px !important;
    margin: 0 !important;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.thu-vien-anh .album-image-nav .item img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin: 0;
    filter: grayscale(1);
    border-radius: inherit;
    transition: .2s;
}
.thu-vien-anh .album-image-nav .item.active img{
    filter: grayscale(.5);
}
.thu-vien-anh .album-image-nav .item:after{
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: inherit;
    border: 2px solid var(--main-color);
    opacity: 0;
}
.thu-vien-anh .album-image-nav .item.active:after{
    opacity: 1;
}
@media (min-width: 768px){
    .thu-vien-anh .album-image-slide:not(.album-expand){
        margin-inline-end: var(--album-nav);
    }
}
@media (max-width: 1199px){
    .thu-vien-anh .album-image-slide{
        --album-nav: 300px;
    }
    .thu-vien-anh .album-image-main .album-btn{
        font-size: 16px;
        --btn-size: 44px;
    }
    .thu-vien-anh .album-image-nav{
        padding: 10px 15px;
    }
    .thu-vien-anh .album-image-nav .title{
        font-size: 14px;
        padding-bottom: 1px;
        margin-bottom: 12px;
    }
}
@media (max-width: 767px){
    .thu-vien-anh .album-image-slide{
        flex-direction: column;
        --album-nav: 300px;
    }
    .thu-vien-anh .album-image-main{
        height: 300px;
        max-height: 50%;
        width: 100%;
    }
    .thu-vien-anh .album-image-main .album-btn{
        font-size: 14px;
        --btn-size: 36px;
    }
    .thu-vien-anh .album-image-main .album-expand{
        display: none;
    }
    .thu-vien-anh .album-image-nav{
        position: static;
        flex: 1 1 auto;
        height: 1%;
        width: 100%;
    }
}
/*----- ARCHIVE -----*/
.thu-vien-anh.archive-page{}
/*----- TAXONOMY -----*/
.thu-vien-anh.tax-page{}
/*----- SINGLE -----*/
.thu-vien-anh.single-page{}
