/*
 Theme Name:   Divi Child
 Theme URI:    https://www.elegantthemes.com/
 Description:  Divi Child Theme
 Author:       Elegant Themes
 Author URI:   http://www.elegantthemes.com
 Template:     Divi
 Version:      1.0.0
*/
/* Enable Smooth Page Scrolling */
html {
    /*scroll-behavior: smooth;*/
}
.ti-widget[data-wkey="feed-instagram"][data-style=custom-style] .ti-header[data-header-type="3"] .ti-widget-header {
    display: none !important;
}
.et_pb_module.et_pb_code.et_pb_code_0.insta_feedslider {
    margin-top: 25px !important;
}
.transparent-header {
    position: absolute !important;
}
/* Portfolio Grid Container */
/*.custom-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}*/
.custom-portfolio-grid {
    display: flex;
    column-gap: 28px;
    row-gap: 28px;
    width: 100%;
    justify-content: center;
    justify-items: center;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
}
.portfolio-item-card {
    position: relative;
    height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
    transition: background-color 500ms ease 0ms,background-image 500ms ease 0ms, background-size 500ms ease 0ms;
    flex: 1 0 calc(33.33% - 20px);
    aspect-ratio: 1/0.849;
}
.portfolio-item-card.second-last-item, .portfolio-item-card.last-item {
    flex-grow: 0;
}
.portfolio-item-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

/* Dark Overlay (Default Hidden, Show on Hover) */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark background overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    
    /* Default Hidden State */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Show Overlay + Text on Hover */
/*.portfolio-item-card:hover {
    transition: background-color 500ms ease 0ms,background-image 500ms ease 0ms, background-size 500ms ease 0ms;
    background-size: 108%;
}*/
.portfolio-item-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform .5s ease;
    z-index: 0;
}


.portfolio-item-card:hover::before {
    transform: scale(1.08);
}
.portfolio-item-card:hover .portfolio-overlay {
    opacity: 1;
    visibility: visible;
}

/* Text Content Styling */
.portfolio-content {
    color: #ffffff;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
/* Slight slide-up effect on hover for elegant look */
.portfolio-item-card:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 auto;
    padding: 0;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond',Georgia,"Times New Roman",serif;
    line-height: 1em;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.portfolio-city {
    font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1em;
    letter-spacing: 3px;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.portfolio-view-btn {
    font-size: 12px;
    line-height: 29px;
    font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    display: inline-flex;
    letter-spacing: 2px;
}
/* Divi Visual Builder Override - Admin par image hamesha dikhegi */
.et-fb-app-frame .portfolio-item-card,
.et-fb-preview--wireframe .portfolio-item-card{
    opacity: 1 !important;
    transition: none !important;
}
/* .loaded class active */
.portfolio-item-card.loaded {
    opacity: 1;   
    /*transform: translateY(0);*/
}
.custom-column-2,
.custom-column-3 {
    display: flex !important;
    column-gap: 28px;
    justify-content: center;
    align-items: flex-start;
}
.custom-column-2>.et_pb_column {
    flex: 0 0 calc(50% - 14px);
    width: calc(50% - 14px) !important;
    height: stretch !important;
}
.custom-column-3>.et_pb_column {
    flex: 0 0 calc(33.33% - 9px);
    width: calc(33.33% - 9px) !important;
    height: stretch !important;
}
.et_pb_module.et_pb_image.image-grow-1,
.et_pb_module.et_pb_image.image-grow-1 span.et_pb_image_wrap {
    height: stretch !important;
    flex-grow: 1;
}
.et-l .et_pb_row.custom-column-2:after {
    content: none !important;
}
/* Image Scroll Fade Initial State */
.image-scroll-fade img {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}
.et-fb-app-frame .image-scroll-fade img,
.et-fb-preview--wireframe .image-scroll-fade img{
    opacity: 1 !important;
    transition: none !important;
}
/* Image Active State on Scroll */
.image-scroll-fade img.loaded {
    opacity: 1;
}
.custom-pagination span.meta-nav{
	font-size: 0 !important;
	position: relative;
}
.custom-pagination .nav-previous span.meta-nav:before {
    content: '<';
    font-size: 12px !important;
}
.custom-pagination .nav-next span.meta-nav:before {
    content: '>';
    font-size: 12px !important;
}
.custom-pagination .nav-previous > a:after {
    content: '/';
    font-size: 12px !important;
    position: absolute;
    left: calc(100% + 10px);
}
.et_pb_button_module_wrapper:has(a.et_pb_button.portfolio-link-hover){   
    position: relative !important;
}
.et_pb_button_module_wrapper:has(a.et_pb_button.portfolio-link-hover)::after {
    content: '' !important;
    position: absolute;
    top: 0;
    left: 56px;
    transform: translateX(-50%);
    width: 0 !important;
    height: 1px !important;
    background: #ff3b30;
    transition: width .35s ease;
}
.et_pb_button_module_wrapper:has(a.et_pb_button.portfolio-link-hover):hover::after {
    width: 48px !important;
}
.et-db #et-boc .et-l .image-scroll-fade .et_pb_image .et_pb_image_wrap, .et-db #et-boc .et-l .image-scroll-fade .et_pb_image .et_pb_image_wrap img {
    max-width: 100%;
    width: 100%;
}
.dsm-mega-menu-container:not(.mobile-menu) .dsm-mega-menu-item-root.dsm-active-menu>.dsm-submenu-container, 
.dsm-mega-menu-container[data-trigger=hover] li:hover>.dsm-submenu-container {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999999999999;
}
.custom-grid-item.dsm_masonry_gallery h4.dsm-overlay-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 auto;
    padding: 0;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond',Georgia,"Times New Roman",serif;
    line-height: 1em;
    padding: 0 10px 10px;
    letter-spacing: 1px;
	position: relative;
}
.custom-grid-item.dsm_masonry_gallery .grid-item a img {
    transition: all ease-in-out .5s;
}
.custom-grid-item.dsm_masonry_gallery .grid-item img {
    aspect-ratio: 1/1.25;
    object-fit: cover;
}
.custom-grid-item.dsm_masonry_gallery .grid-item a:hover img {
    transform: scale(1.08);
}
.custom-grid-item.dsm_masonry_gallery h4.dsm-overlay-title:after {
    content: 'View -';
    width: 100px;
    height: 30px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #fff;
	font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
	font-weight: 300;
}
.mfp-bg {
    background: #fff;
}
.mfp-gallery .mfp-figure:after {
     -webkit-box-shadow: none !important; 
     box-shadow: none !important; 
     background: transparent !important; 
     pointer-events: none !important;
}
.mfp-gallery .mfp-image-holder .mfp-content,
.mfp-gallery .mfp-gallery .mfp-image-holder .mfp-figure {
    position: static;
}
.mfp-gallery .mfp-figure figure {
    position: relative;
}
.mfp-gallery .mfp-arrow {
    height: calc(100% - 80px) !important;
    top: 72px !important;
}
.mfp-gallery button.mfp-arrow.mfp-arrow-left {
    width: 50% !important;
    left: 0 !important;
    cursor: url(assets/images/prev.cur), w-resize;
}
.mfp-gallery button.mfp-arrow.mfp-arrow-right {
    width: 50% !important;
    right: 0 !important;
    cursor: url(assets/images/next.cur), w-resize;
}
.mfp-gallery button.mfp-arrow.mfp-arrow-left:after,
.mfp-gallery button.mfp-arrow.mfp-arrow-right:after {
    content: none;
}
.mfp-gallery .mfp-bottom-bar {
    pointer-events: none;
}
.mfp-image-holder .mfp-close {
    top: 20px !important;
    right: 20px !important;
    width: 44px;
    height: 44px;
    z-index: 99999;
    padding-right: 0 !important;
    font-size: 0;
    background: url('assets/images/close-dark.png') no-repeat center;
    background-size: 30px 30px;
    opacity: 0.8;
}
body .mfp-image-holder .mfp-close:hover { 
    opacity: 1;
    background: url('assets/images/close-dark.png') no-repeat center !important;
    background-size: 30px 30px !important;
}
.mfp-title, .mfp-counter {
    color: #6d6d6d !important;
}
/* Smooth Fade-In + Bottom-to-Top Animation Setup */
#press-award-grid .grid-item .et_pb_image_wrap {
    opacity: 0;
    transform: translateY(20px); /* Slightly lower start position */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* Active State for Visible Items */
#press-award-grid .grid-item.dsm-show-item .et_pb_image_wrap {
    opacity: 1;
    transform: translateY(0); /* Slides up to natural position */
}
/* .dsm_advanced_tabs_0_tb_header .dsm-tab.dsm-active .dsm-title a,
.dsm_advanced_tabs_1_tb_header .dsm-tab.dsm-active .dsm-title a {
    color: #000 !important;
}  */
/* Responsive Mobile Layout */
@media (max-width: 981px) {
    .portfolio-item-card {
	    flex: 0 0 calc(50% - 20px);
	}
}

@media (max-width: 767px) {
    .custom-portfolio-grid {
        row-gap: 20px;
    }
    .portfolio-item-card, .custom-column-2>.et_pb_column, .custom-column-3>.et_pb_column {
        flex: 0 0 100%;
    }
	.custom-column-2,
    .custom-column-3 {
	    display: flex !important;
	    column-gap: 0;
	    row-gap: 28px;
	    justify-content: center;
	    align-items: flex-start;
	    flex-direction: column;
	}
}