/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor. Enjoy it!
Author: Blanknet
Author URI: https://blanknet.co
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* Stiluri pentru lista de videoclipuri */
.video-listing {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}

.video-item {
    position: relative;
    width: calc(33.333% - 20px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #f3f3f3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .video-item {
        width: 100%;
    }
}

.video-title {
    color: white;
    z-index: 999;
    margin-top: -32px;
    padding-left: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-title {
    opacity: 1;
}

/* Stiluri pentru popup */
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1043;
    overflow: hidden;
    position: fixed;
    background: rgba(0, 0, 0, 0.8); /* Fundal negru translucid */
}

.mfp-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1044;
    overflow: hidden;
    outline: none;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mfp-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%; /* Asigură că ocupă lățimea maximă */
}

.mfp-content {
    position: relative;
    width: 100%;
    max-width: 720px !important;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfp-iframe-holder .mfp-close {
    position: absolute;
    right: -15px;
    top: -15px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Stiluri pentru iframe */
.iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    background: #000;
    overflow: hidden;
}

#iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#popup-video-iframe {
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .iframe-container {
        max-width: 100%; /* Lățimea maximă pe dispozitive mobile */
        height: auto; /* Ajustează automat înălțimea */
    }

    #popup-video-iframe {
        width: 90%;
        min-width: 420px;
        height: auto; /* Ajustează automat înălțimea */
        min-height: 236px;
        margin: 0 10px; /* Padding lateral de 10px */
    }

    .mfp-content {
        padding: 0; /* Elimină padding-ul din jurul iframe-ului pe mobil și tabletă */
    }
}

@media (max-width: 428px) {
    .iframe-container {
        max-width: 100%; /* Lățimea maximă pe dispozitive mobile */
        height: auto; /* Ajustează automat înălțimea */
    }

    #popup-video-iframe {
        width: 90%;
        min-width: 320px;
        height: auto; /* Ajustează automat înălțimea */
        min-height: 180px;
        margin: 0 10px; /* Padding lateral de 10px */
    }
}

.ehf-header #masthead {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 999;
    align-items: center !important;
}

@media (min-width:1024px) {
    #popup-video-iframe {
        width: 720px;
        height:405px;
    }
}

@media (max-width: 1024px) {
    #menu-1-be11b37 > li {
        width: unset;
        align-items: center !important;
    }

    #menu-1-be11b37 {
        display: inline-flex;
        flex-direction: column;
        align-items: center !important;
    }

    #masthead > div > div > div > div.elementor-element.elementor-element-e58d753.e-con-full.e-flex.e-con.e-child > div > div > div {
        align-items: center !important;
    }

    .elementor-widget-container {
        align-items: center !important;
    }

    #custmenu {
        align-items: center !important;
    }

    #custmenu > div > div > nav {
        width: 100% !important;
        min-width: 120px;
        left: unset !important;
    }
}

.hfe-menu-item {
    border-bottom: 2px solid #fff;
}

.hfe-menu-item:hover {
    border-bottom: 2px solid #aa2423;
}

#hlang > div > ul > li {
	list-style: none;
}

#hlang > div > ul > li > a {
	color: #7a7a7a;
	font-family: 'Roboto', sans-serif !important;
	font-size: 16px;
	font-weight: 500;
}

#hlang > div > ul > li > a:hover {
	color: #aa2423;
}

html,
body{
  width:100%;
  overflow-x:hidden;
}