/* Home gallery bundle: image progress slider + lightbox styles */ 
.progress_slider_custom {
    display: flex;
    gap: 72px;
    align-items: center;
    width: 85%;
    margin: 0 auto;
}
.psc_imgBox {
    flex: 0 0 45%;
    max-width: 45%;
}
.psc_imgBox img {
    width: 100%;
    border-radius: 12px;
    height: 400px;
    object-fit: cover;
}
/*.psc_progressBar {
    -webkit-animation: progress_slider 4s linear;
    animation: progress_slider 4s linear ;
    overflow: auto;
}*/
.psc_imgBox .owl-stage-outer, .psc_imgBox .owl-item {
    border-radius: 12px;
}
.psc_textBox {
    flex: 0 0 calc(55% - 72px);
    max-width: calc(55% - 72px);
    height: 100%;
}
.psc_li,
.psc_li .psc_text {
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.psc_li .psc_text {
    max-height: 30px;
}
.psc_ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.psc_li {
    display: flex;
    gap: 32px;
    overflow: hidden;
    max-height: 60px;
    cursor: pointer;
}
.psc_li.active,
.psc_li.active .psc_text {
    max-height: 200px;
}
.psc_li.active .psc_text h3 {
    font-weight: 700;
    font-size: 24px;
}
.psc_li h3 {
    font-size: 24px;
    color: #1C1D20;
    font-weight: 600;
    margin: 0 0 8px;
}
.psc_li p {
    font-size: 16px;
    color: #5F636D;
    margin: 0;
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.5s ease;
    opacity: 0;
    padding: 0;
}
.psc_li.active p {
    max-height: 200px;
     opacity: 1;
}
/*.psc_li.active .psc_progress .psc_progressBar {
    animation: progress_slider 5s linear !important;
}*/
.psc_progress {
    height: auto;
    background-color: #E4E5E7;
    max-width: 6px;
    border-radius: 20px;
    position: relative;
    flex: 0 0 6px;
}
.psc_progress .psc_progressBar {
    width: 6px;
    height: auto;
    transform-origin: 0 top;
    background: #0049FF;
    border-radius: 20px;
}
.psc_li.active .psc_progress .psc_progressBar {
    animation: progress_slider 5s linear !important;
    -webkit-animation: progress_slider 5s linear !important; /* Safari compatibility */
    overflow: auto !important;
    height: 0%;
    width: 100%;
    background-color: blue;
    position: absolute ;
    top: 0;

}
@keyframes progress_slider {
    0% {
        height: 0; /* Start with 0 height */
    }
    100% {
        height: 100%; /* End with full height */
    }
}
@-webkit-keyframes progress_slider {
    0% {
        height: 0; /* Start with 0 height */
    }
    100% {
        height: 100%; /* End with full height */
    }
}

/*.psc_li.active .psc_progress .psc_progressBar {
    -webkit-animation: progress_slider 5s linear;
    animation: progress_slider 5s linear;
}*/
/* responsive */
@media screen and (max-width: 768px){
    .progress_slider_custom{
        flex-wrap: wrap;
        gap: 40px !important;
        width: 100%;
    }
    .psc_imgBox, .psc_textBox{
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .psc_imgBox img {
        height: 300px !important;
    }
    .psc_li h3 {
        font-size: 18px !important;
    }
    .psc_li p {
        font-size: 14px !important;
    }
    .psc_li.active .psc_text h3 {
        font-size: 20px !important;
    }
    .progress_slider_custom .psc_textBox {
        min-height: 320px;
    }

}
@media screen and (min-width: 769px) and (max-width: 1200px){
    .progress_slider_custom {
        gap: 40px;
    }
    .psc_imgBox {
        flex: 0 0 48%;
        max-width: 48%;
    }
    .psc_textBox {
        flex: 0 0 calc(52% - 40px);
        max-width: calc(52% - 40px);
    }
    .psc_li {
        gap: 22px;
    }
} 
.hh_caseStudy_grid {
    display: grid;
    gap: 4px;
}
.photos-grid-container {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr;
    grid-gap: 4px;
    align-items: start;
}
.photos-grid-container2 {
    grid-template-columns: 2fr 1fr;
}
/*@media (max-width: 580px) {
    .photos-grid-container {
        grid-template-columns: 1fr;
    }
}*/

.photos-grid-container .img-box {
    border: 1px solid #ffffff;
    position: relative;
    height: 100%;
    background-color: #eaf1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.photos-grid-container .img-box:hover .transparent-box {
    background-color: rgba(0, 0, 0, 0.6);
}

.photos-grid-container .img-box:hover .caption {
    transform: translateY(-5px);
}

.photos-grid-container img {
    max-width: 100%;
    display: block;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    height: 112px;
    transition: .4s;
}
.photos-grid-container img:hover {
    transform: scale(.9);
}
.photos-grid-container .caption {
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 1.5rem;
}

.photos-grid-container .transparent-box {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photos-grid-container .main-photo {
    grid-row: 1;
    grid-column: 1;
}

.sub_outer {
    height: 100%;
}

.photos-grid-container .sub {
    /*display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr;
    grid-gap: 0em;*/
    height: 100%;
}

.photos-grid-container .sub:nth-child(0) {
    grid-column: 1;
    grid-row: 1;
}

.photos-grid-container .sub:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

.photos-grid-container .sub:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.photos-grid-container .sub:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.hide-element {
    border: 0;
    clip: rect(1px 1px 1px 1px);
    /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.hh_caseStudy_grid .photos-grid-container,
.hh_caseStudy_grid .photos-grid-container2 {
    transition: all 0.4s ease; 
}

.hh_caseStudy_grid:hover .photos-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr; 
}

.hh_caseStudy_grid:hover .photos-grid-container2 {
    grid-template-columns: 1fr 2fr; 
}

.photos-grid-container2 .sub_outer .img-box img, 
.photos-grid-container1 .main-photo img {
    height: 60px;
}

.hh_caseStudy_grid:hover .photos-grid-container2 .sub_outer .img-box img {
    height: 112px;
}
.hh_caseStudy_grid:hover .photos-grid-container1 .main-photo img {
    height: 112px;
}