
/* TŁO STRONY */

body {
    background: #080808;
    color: white;
}


/* MENU */

nav {
    flex-wrap: wrap;
}

nav .jezyki {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    visibility: visible !important;
    opacity: 1 !important;
}

nav .jezyk-btn {
    display: inline-block !important;
    background: #191919;
    color: white;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
}

nav .jezyk-btn:hover,
nav .jezyk-btn.wybrany {
    background: #c91c24;
}


/* NAGŁÓWEK */

.galeria-naglowek {
    text-align: center;
    padding: 80px 20px 40px;
}

.galeria-naglowek span {
    color: #e52222;
    font-weight: bold;
    letter-spacing: 4px;
}

.galeria-naglowek h1 {
    font-size: 45px;
    margin: 20px 0;
    color: white;
}

.galeria-naglowek p {
    color: #aaa;
    font-size: 18px;
}

.galeria-linia {
    width: 70px;
    height: 3px;
    background: #e52222;
    margin: 25px auto;
}


/* GALERIA */

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: auto;
    padding: 20px 5% 80px;
}

.zdjecie {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 2px solid #333;
    border-radius: 12px;
    background: #191919;
    padding: 0;
    cursor: pointer;
    transition: 0.4s;
}

.zdjecie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.zdjecie:hover {
    border-color: #e52222;
    box-shadow: 0 0 25px rgba(229, 34, 34, 0.4);
}

.zdjecie:hover img {
    transform: scale(1.1);
}


/* EFEKT POWIĘKSZENIA */

.powiekszenie {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 65px;
    opacity: 0;
    transition: 0.3s;
}

.zdjecie:hover .powiekszenie,
.zdjecie:focus-visible .powiekszenie {
    opacity: 1;
}


/* POWIĘKSZONE ZDJĘCIE */

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.97);
    box-sizing: border-box;
    color: white;
}

.lightbox:not([open]) {
    display: none;
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox::backdrop {
    background: black;
}

#duze-zdjecie {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}


/* PRZYCISKI GALERII */

#zamknij,
#poprzednie,
#nastepne {
    position: absolute;
    background: #222;
    color: white;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 30px;
    cursor: pointer;
    z-index: 2;
}

#zamknij {
    top: 20px;
    right: 20px;
}

#poprzednie {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

#nastepne {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

#zamknij:hover,
#poprzednie:hover,
#nastepne:hover {
    background: #e52222;
}

#numer-zdjecia {
    position: absolute;
    bottom: 25px;
    color: white;
    font-size: 20px;
}


/* KONTAKT */

.galeria-kontakt {
    background: #151515;
    text-align: center;
    padding: 60px 20px;
    border-top: 2px solid #e52222;
}

.galeria-kontakt h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 20px;
}

.galeria-kontakt p {
    color: #aaa;
    margin-bottom: 30px;
}

.galeria-kontakt .przycisk {
    display: inline-block;
    background: #c91c24;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 6px;
}


/* TABLETY */

@media (max-width: 1000px) {

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* TELEFONY */

@media (max-width: 600px) {

    .galeria-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .galeria-naglowek h1 {
        font-size: 30px;
    }

    .galeria-kontakt h2 {
        font-size: 25px;
    }

    .lightbox {
        padding: 10px;
    }

    #duze-zdjecie {
        max-width: 100%;
    }

    #poprzednie,
    #nastepne {
        font-size: 20px;
        padding: 10px;
    }

    nav .jezyki {
        margin: 10px 0;
    }

}

@media (prefers-reduced-motion: reduce) {

    .zdjecie,
    .zdjecie img,
    .powiekszenie {
        transition: none;
    }

}

/* Logo nad galerią */

.galeria-naglowek .logo-galeria {
    display: block;
    width: 280px;
    max-width: 80%;
    height: auto;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.logo-galeria:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px #ff000060);
}
