/*
 Theme Name:     Divi Child Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/

.cat-item.current-cat{
    background: #7E7F7F !important;
    color: #fff !important;
}
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0em !important;
    padding-right: 20px;
    cursor: pointer;
}

.album-gallery{flex:1;position:relative;}
.loading{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);padding:10px 20px;}
.gallery-grid{display:grid;gap:15px;}
.gallery-grid-inner{display: flex;flex-wrap: wrap;}
.gallery-item{ height: 345px;position: relative;}
.gallery-item img{width:100%;height:auto;   
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0px;
    color: transparent;
    object-fit: cover;
    vertical-align: middle;
}
@media(min-width:992px){.gallery-grid{grid-template-columns:repeat(3,1fr);}}
@media(min-width:768px) and (max-width:991px){.gallery-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:767px){.gallery-grid{grid-template-columns:repeat(1,1fr);}}
.pagination-list{list-style:none;display:flex;gap:8px;justify-content:center;margin:50px 0 0;padding:0;}
.pagination-list a{font-size: 12px; padding: 10px 18px;background:#eee;text-decoration:none;color: #000;}
.pagination-list a.active{background:#222;color:#fff;}

.gallery-item a{
    color: #000;
    font-size: 21px;
    align-items: center;
    justify-content: center;
    margin: auto;
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 9;
    text-decoration: none;
    display: none;
}
.gallery-item:hover a{
    display: flex;
}
.gallery-item a svg{
    display: var(--fa-display, inline-block);
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
    color: #fff;
}

.gallery-item::before{
    background-image: linear-gradient(rgba(0, 0, 0, 0) 5%, #000000 109%);
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.gallery-item .caption{
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    padding: 4px 14px;
    position: absolute;
    bottom: 0;
    z-index: 9;
    width: 100%;
    color: #fff;
}

.pagination-list li{
    list-style-type: none;
}
.pagination{
    padding-top: 50px;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.custom-modal-content {
    background: #fff;
    margin: 10% auto;
    width: 50%;
    position: relative;
    display: flex;
    z-index: 9999999;
    flex-direction: column;
    font-family: 'Rajdhani', sans-serif !important;
    padding: 1.5rem !important;
}
.close-modal {
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 24px;
    cursor: pointer;
}

.image_rounded{
    border-radius: 100%;
    object-fit: cover !important;
    width: 190px;
    height: 190px;
    border: 4px solid #7E7F7F !important;
    padding: .25rem !important;
    vertical-align: middle;
    margin: 0 auto;
    margin-top: 2.5rem !important;
    margin-bottom: 1.5rem !important;
}


.modal_team_position{
    color: #7E7F7F !important;
    text-transform: uppercase !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}
.modal_team_name{
    font-size: 2.125rem !important;
    line-height: 1.5;
    color: #000;
    font-weight: 700;
    text-transform: capitalize;
    position: relative;
    margin-bottom: 10px;
    text-align: center !important;
    margin-bottom: 1rem !important;
}
.modal_team_email{
    text-align: center !important;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    justify-content: center;
    display: flex;
}
.modal_team_phone{
    text-align: center !important;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    justify-content: center;
    display: flex;
}
.modal_team_address{
    text-align: center !important;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;

}
.modal_team_intro{
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}
.modal_header{
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.modal_header .modal_title{
    width: 65%;
    text-align: center;
    font-weight: 700;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    font-size: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 479px) {
    .custom-modal-content{
        width: 90%;
        margin-top:calc(100%/2);
    }
}