/*-------------------------------------------------------------
- Global
-------------------------------------------------------------*/

/*-------------------------------------------------------------
- Featured Work Slider
-------------------------------------------------------------*/
#featured-work-slider-row {
    top: 0;
}
.wpb_wrapper > div.featured_work_slider {
    height: calc(100vh - 45px);
    margin-bottom: 0;
}
.featured_work_slider .featured_work_img {
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: calc(100vh - 90px);
}
.featured_work_slider .featured_work_content {
    top: 100%;
    position: relative;
}
.featured_work_slider .owl-dots {
    position: absolute;
    top: calc(100% - 45px);
    left: 50%;
    transform: translateX(-50%);
}
.featured_work_link {
    display: inline-block;
}
.featured_work_link a {
    color: #ffffff;
}
.all-work-link {
    line-height: 3.5;
}
.featured_work_link.right {
    float: right;
    color: #c4c4c4;
    font-size: 12px;
}
.featured_work_overlay {
    position: absolute;
    top: 0;
    bottom: 45px;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    z-index: 15;
    pointer-events: none;
}
.featured_work_overlay .container {
    top: 50%;
    transform: translateY(-50%);
}
.featured_work_overlay .container * { 
    color: #fff;
}

/*-------------------------------------------------------------
- CPT Detail
-------------------------------------------------------------*/

.our-work-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.our-work-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.our-work-details-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.our-work-text {
    width: 80%;
}

.our-work-sidebar {
    width: 46%;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto 1fr;
    row-gap: 20px;
}

.our-work-sidebar ul {
    list-style: none;
    padding: 0;
}

.our-work-sidebar ul li {
    margin-bottom: 10px;
}

.our-work-main-content {
    margin-top: 30px;
}

.our-work-wrapper a.our-work-back, .our-work-wrapper + a.our-work-back{
    text-transform: uppercase;
}

.our-work-wrapper a.our-work-back:before, .our-work-wrapper + a.our-work-back:before {
    content: "\f060";
    font-family: FontAwesome;
    color: #bf1212;
    padding-right: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.our-work-wrapper a.our-work-back:hover:before, .our-work-wrapper + a.our-work-back:hover:before {
    transform: translateX(-2px);
}
/* Masonry Grid */
.masonry-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.masonry-item {
    width: calc(50% - 10px);
    margin: 5px;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .masonry-item {
        width: calc(100% - 10px);
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    overflow: hidden;
    padding-top: 50px; /* Adds spacing from the top */
}

/* Inner container to align close button with image */
.lightbox-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 90vw;
    transform: translate(-50%, -50%);
    display: inline-block;
    max-height: 74vh;
}

/* Lightbox Image */
.lightbox-content {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

/* Close Button (X) */
.close {
    position: absolute;
    right: 0vw;
    font-size: 50px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 12px;
    z-index: 1001;
}

/* Navigation Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 10px;
    margin-top: -22px;
    color: white;
    font-size: 50px;
    user-select: none;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 21px 19px;
    border-radius: 5px;
    display: none; /* Initially hidden */
}

.prev {
    left: -3vw;
}

.next {
    right: -3vw;
}

.our-work-main-content .vc_column-inner {
    max-width: 100%;
    overflow: hidden;
}

.our-work-main-content .vc_column-inner img {
    max-width: 100%;
    height: auto;
    display: block;
}


/*-------------------------------------------------------------
- Team List View
-------------------------------------------------------------*/
.team_list_container,
.facetwp-template[data-name="team_list_view"] {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.team_list_wrapper {
    position: relative;
    overflow: hidden;
    max-height: 263px;
    max-width: calc(33% - 20px);
}

@media (max-width: 689px) {
    .team_list_container,
    .facetwp-template[data-name="team_list_view"] {
        flex-direction: column;
        max-width: 389px;
        margin: 0 auto;
    }
    .team_list_wrapper {
        max-width: unset;
    }
}

.team_list_info_wrapper {
    position: absolute;
    top: 50%;
    padding: 30px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity .3s;
}

.team_list_wrapper:hover .team_list_info_wrapper {
    display: block;
}

.row .col .team_list_img_wrapper img {
    margin-bottom: 0;
}

.team_list_overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity .3s;
}

.team_list_img_wrapper {
    transition: transform .3s;
}

.team_list_wrapper:hover .team_list_img_wrapper {
    transform: scale(1.1);
}

.team_list_wrapper:hover .team_list_overlay {
    opacity: 1;
}

.team_list_wrapper:hover .team_list_info_wrapper {
    opacity: 1;
}

.team_job_title {
    padding-bottom: 5px;
}

/*-------------------------------------------------------------
- Media Query
-------------------------------------------------------------*/
@media only screen and (max-width: 767px) {
    /* Mobile Home Featured Work Slider Styles */
    body .wpb_wrapper > div.featured_work_slider, .featured_work_slider.owl-carousel .owl-stage-outer, .featured_work_slider.owl-carousel .owl-stage, .featured_work_slider.owl-carousel .featured_work_img {
        height: 100vh;
    }
    .featured_work_slider .featured_work_slide {
        display: flex;
        justify-content: center;
    }
    .featured_work_slider .featured_work_content {
        top: 70%;
        position: absolute;
    }
    .featured_work_slider .featured_work_content .project-title {
        background-color: unset;
    }
    body .featured_work_slider .owl-dots {
        position: absolute;
        top: 68%;
    }
    body .featured_work_overlay {
        background: unset;
    }
    body .featured_work_overlay .container {
        height: 50%;
    }
    .featured_work_slider.owl-carousel .featured_work_img::before {
        background: rgba(0, 0, 0, 0.3);
        content: '';
        position: absolute;
        height: 100vh;
        width: 100%;
    }
}
