
.sec-video {
    width: 100%;
    max-width: 1390px;
    margin: 0 auto;
    padding: 25px 15px;
}

.video-container {
    position: relative;
    /*height: 690px;*/
    /*overflow: auto;*/

    /*scrollbar-width: none; !* Firefox *!*/
    /*-ms-overflow-style: none;  !* IE и Edge *!*/
}

.video-container::-webkit-scrollbar {
    display: none;
}


.gi_row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.gi_item {
    background: #ddd;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    min-height: 100px;
    max-height: 400px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gi_item.loaded {
    opacity: 1;
}

.gi_item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gi_horizontal {
    grid-column: span 2;
}

.gi_vertical {
    grid-column: span 1;
}

.gi_zoom_icon_svg {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    height: 48px;
    width: 48px;
    text-align: center;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid hsl(0deg 0% 100% / 25%);
}

.gi_zoom_icon_svg:hover {
    animation: gi_zoom_move 1s infinite ease-in-out;
}

@keyframes gi_zoom_move {
    0%, 100% {
        padding: 10px;
    }
    50% {
        padding: 8px;
    }
}

.gi_anim_path_down {
    transform-origin: center;
}

@keyframes bounceY_down {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(0.8px);
    }
}

.gi_icon_wrap_down:hover .gi_anim_path_down {
    animation: bounceY_down 1s infinite ease-in-out;
}


.gi_icon_wrap_down {
    width: 48px;
    height: 48px;
    padding: 10px;
    position: absolute;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid hsl(0deg 0% 100% / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 10px;
    left: 10px;
}
.gi_icon_wrap_like {
    width: 48px;
    height: 48px;
}

.gi_icon_wrap_like path {
    stroke: #ffffff;
}

.gi_like_wrapper {
    top: 72px;
    width: 48px;
    height: 70px;
    left: 10px;
    text-align: center;
    padding: 5px;
    position: absolute;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid hsl(0deg 0% 100% / 25%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.gi_zoom_icon {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-150%, -50%);
    opacity: 0;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 22px;
    width: 100%;
    /*backdrop-filter: blur(10px);*/
    /*border: 1px solid hsl(0deg 0% 100% / 25%);*/
    /*border-radius: 20px;*/
}

@keyframes slideInFromLeft {
    0% {
        transform: translate(-150%, -50%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Анимация сдвига направо влево (исчезновение) */
@keyframes slideOutToLeft {
    0% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    100% {
        transform: translate(-150%, -50%);
        opacity: 0;
    }
}

/* Класс для запуска анимации появления */
.gi_zoom_icon.visible {
    animation: slideInFromLeft 1.4s ease forwards;
}

/* Класс для запуска анимации исчезновения */
.gi_zoom_icon.hide {
    animation: slideOutToLeft 1.4s ease forwards;
}



.gi_popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.gi_popup[aria-hidden="false"] {
    display: flex;
}

.gi_popup_content {
    background: black;
    max-width: 1390px;
    width: 100%;
    position: relative;
    height: 100vh;
    overflow-y: auto;
}

.gi_popup_content video {
    width: 100%;
    height: 768px;
    object-fit: scale-down;
}

.gi_popup_content h2 {
    padding: 15px;
    font-size: clamp(1.2em, 3vw, 1.5em);
    color: white;
    text-align: center;
    text-transform: uppercase;
}

.gi_popup_content p {
    padding: 0px 15px 15px 15px;
    color: white;
    text-transform: uppercase;
}

.gi_popup_close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    padding: 5px;
    z-index: 10;
}

.no-videos {
    text-align: center;
    padding: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .gi_row {
        grid-template-columns: repeat(2, 1fr);
    }
    .gi_horizontal, .gi_vertical {
        grid-column: span 2;
    }
}
