#header-contact-panel {
    .address-item .phone a {
        text-wrap: nowrap;
    }
}
.header-contact-box {
    .phone a {
        text-wrap: nowrap;
    }
}
#slide-1-heading {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    -moz-transform: translate(-50%, -50%) !important;
    -ms-transform: translate(-50%, -50%) !important;
    -o-transform: translate(-50%, -50%) !important;
}
#languages-container {
    flex-direction: row;
    align-items: center;

    .languages p {
        margin: auto 0;
        line-height: 35px;
        padding-left: 15px;
    }
}
.burger-menu-right {
    display: none;
}
#projects-grid {
    .p-title {
        a {
            font-size: 26px;
            line-height: 36px;
            padding: 0;
        }
    }

    .portfolio-title-cat {
        padding: 15px 25px 15px 25px;
    }
    p {
        &.p-category {
            margin: 0;
            padding-bottom: 0;
        }
    }

    .portfolio-item {
        &:hover {
            cursor: pointer;

            .portfolio-details {
                bottom: -20px;
                left: -20%;
                transform: scale(0.5);
            }
        }
    }
}
.project-popup-image {
    max-width: 80vw;
    max-height: 90vh;
}

.rs-header-main > .elementor-hidden-tablet {
    justify-content: space-between;
}

#projects-gallery {
    --flex-wrap: none;
}

footer
    .hfe-nav-menu__layout-horizontal
    .hfe-nav-menu
    .menu-item-has-children:hover
    > .sub-menu,
footer
    .hfe-nav-menu__layout-horizontal
    .hfe-nav-menu
    .menu-item-has-children:focus
    > .sub-menu {
    transform: scaleY(0);
    -webkit-transform: scaleY(0);
    -moz-transform: scaleY(0);
    -ms-transform: scaleY(0);
    -o-transform: scaleY(0);
}
footer
    .hfe-nav-menu__submenu-arrow:not(.rs-arrow-plus)
    .hfe-nav-menu
    .parent-has-child:hover
    i {
    transform: rotate(0);
    -webkit-transform: rotate(0);
    -moz-transform: rotate(0);
    -ms-transform: rotate(0);
    -o-transform: rotate(0);
}

.right_menu_togle #media_image-2.widget {
    margin: 0 0 26px;
}
.right_menu_togle #media_image-2 h4 {
    margin-bottom: 15px;
}

/*
** Responsive
*/
@media (max-width: 1024px) {
    .burger-menu-right {
        display: block;
    }
    .moc-right {
        display: none;
    }
    .rs-offcanvas-area .nav-link {
        float: right;
    }
}

/*
** Foundation plugin
*/

/* Foundation plugin - Enhanced with TV Effects */
/* Foundation plugin - Three Column Grid with Overlay Text */
.ef-posts-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 25px;
    padding: 25px;
    width: 100%;
}

.ef-gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1.25; /* Slightly taller than wide (4:5 ratio) */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ef-gallery-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ef-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ef-gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    color: white;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ef-gallery-title {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ef-gallery-year {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Effects */
.ef-gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.ef-gallery-item:hover .ef-gallery-thumbnail img {
    transform: scale(1.08);
}

.ef-gallery-item:hover .ef-gallery-content {
    transform: scale(0.7);
    /*Scalestheentirecontentbox*/
    transform-origin: bottom left;
    /*Anchorsscalingtobottom-leftcorner*/
    padding: 20px;
    /*Reducedpaddingtomaintainproportions*/
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    -o-transform: scale(0.7);
}

.ef-gallery-item:hover .ef-gallery-title {
    font-size: 1.5rem; /* Slightly smaller font size */
    transform: none; /* Remove individual transform */
    line-height: 1.2; /* Tighter line height */
}

.ef-gallery-item:hover .ef-gallery-year {
    transform: scale(0.85); /* Proportionally smaller */
    padding: 4px 12px; /* Slightly reduced padding */
    margin-top: 8px; /* Adjusted spacing */
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .ef-posts-gallery {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
    }
}

@media (max-width: 768px) {
    .ef-posts-gallery {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 15px;
    }

    .ef-gallery-item {
        aspect-ratio: 1/1.1; /* Slightly square on mobile */
    }

    .ef-gallery-content {
        padding: 20px;
    }

    .ef-gallery-title {
        font-size: 1.5rem;
    }

    .ef-gallery-item:hover .ef-gallery-title {
        font-size: 1.4rem;
    }
}

/* Enhanced Modal Styles with TV Effect */
.ef-gallery-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    -moz-transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    -ms-transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    -o-transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ef-gallery-modal.active {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
    visibility: visible;
}

.ef-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ef-gallery-modal.active .ef-modal-content {
    transform: scale(1);
}

.ef-modal-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.ef-gallery-modal.active .ef-modal-image.loaded {
    opacity: 1;
}

.ef-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease 0.2s;
}

.ef-gallery-modal.active .ef-modal-close {
    opacity: 1;
    transform: rotate(90deg);
}

.ef-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.ef-gallery-modal.active .ef-modal-nav {
    opacity: 1;
}

.ef-modal-prev {
    left: 20px;
}

.ef-modal-next {
    right: 20px;
}

/* Optional CRT TV Effects (uncomment to enable) */
/*
.ef-modal-content {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.ef-gallery-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}
*/

/* @media (max-width: 768px) {
    .ef-posts-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .ef-modal-nav {
        font-size: 20px;
        padding: 15px;
    }

    .ef-modal-close {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }
} */
