/*== Gallery Addon ==*/

.lg-actions .lg-next:before {
    content: "\f116";
    font-family: 'icomoon';
    color: #fff;
}
.lg-actions .lg-prev:after {
    content: "\f115";
    font-family: 'icomoon';
    color: #fff;
}
.lg-actions .lg-next, .lg-actions .lg-prev {
    font-size: 35px;
}
.upstudy-gallery .gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: row;
    gap: 20px 20px;
}
.upstudy-gallery .gallery-container .gallery-item {
    position: relative;
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow: hidden;
    border-radius: 30px;
}
.upstudy-gallery .gallery-container .gallery-item:hover {
    cursor: pointer;
}
.upstudy-gallery .gallery-container .gallery-item img {
    min-height: 100%;
}
.upstudy-gallery .gallery-container .gallery-item .upstudy-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    padding: 35px;
    background-color: transparent;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
    height: 100%;
}
.upstudy-gallery .gallery-container .gallery-item .upstudy-gallery-overlay::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--upstudy-primary-color);
    z-index: 0;
    opacity: 0.9;
}
.upstudy-gallery .gallery-container .gallery-item:hover .upstudy-gallery-overlay {
    opacity: 1;
    visibility: visible;
}
.upstudy-gallery .gallery-container .gallery-item .upstudy-gallery-overlay .icon-wrap {
    margin-bottom: 0;
    line-height: 1;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}
.upstudy-gallery .gallery-container .gallery-item:hover .upstudy-gallery-overlay .icon-wrap {
    transform: translateY(0);
}
.upstudy-gallery .gallery-container .gallery-item .upstudy-gallery-overlay .icon-wrap i {
    font-size: 20px;
    color: var(--upstudy-primary-color);
    display: inline-flex;
}
.upstudy-gallery .gallery-container .gallery-item .upstudy-gallery-overlay .icon-wrap svg {
    width: 20px;
    height: 20px;
    fill: var(--upstudy-primary-color);
    display: inline-flex;
}
.upstudy-gallery .gallery-container .gallery-item .upstudy-gallery-overlay .content-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
}
.upstudy-gallery .gallery-container .gallery-item:hover .upstudy-gallery-overlay .content-wrap {
    transform: translateY(0);
}
.upstudy-gallery .gallery-container .gallery-item .upstudy-gallery-overlay .content-wrap .overlay-title {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    padding: 5px;
    line-height: 24px;
    color: #fff;
}