/* PLACE YOUR CUSTOM STYLES IN THIS FILE */
.nk-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.nk-modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.nk-modal-content video {
    width: 100%;
    display: block;
}

.nk-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    background: red;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

.nk-portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nk-portfolio-item:hover .nk-portfolio-item-overlay {
    opacity: 1;
}

.nk-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.nk-modal-content {
    position: relative;
    width: 90%; /* Maksymalna szerokość */
    max-width: 1200px; /* Ograniczenie szerokości */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.nk-modal-content video {
    width: 100%; /* Wideo zajmuje całą szerokość kontenera */
    height: auto; /* Wysokość dopasowana do proporcji wideo */
    background: #000;
}

.nk-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px; /* Szerokość obszaru krzyżyka */
    height: 40px; /* Wysokość obszaru krzyżyka */
    background: rgba(0, 0, 0, 0.6); /* Tło krzyżyka */
    border-radius: 50%; /* Okrągły kształt */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    transition: background 0.3s ease;
}

.nk-modal-close::before,
.nk-modal-close::after {
    content: '';
    position: absolute;
    width: 20px; /* Długość linii krzyżyka */
    height: 2px; /* Grubość linii krzyżyka */
    background-color: #fff; /* Kolor linii */
    transition: background-color 0.3s ease;
}

.nk-modal-close::before {
    transform: rotate(45deg); /* Ustawienie pierwszej linii */
}

.nk-modal-close::after {
    transform: rotate(-45deg); /* Ustawienie drugiej linii */
}

.nk-modal-close:hover {
    background: rgba(255, 0, 0, 0.8); /* Zmiana tła na hover */
}

.nk-modal-close:hover::before,
.nk-modal-close:hover::after {
    background-color: #ff0; /* Zmiana koloru linii na hover */
}
