/* Czcionki, ustawienia ogólne */
* {
    font-family: 'Work Sans', Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    color: #111;
    background-color: black;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}
h3, h3 a {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    text-decoration: none;
    color: black;
}

/* Hero (obrazek w tle) */
.hero {
    height: 45vh;
    min-height: 350px;
    background-image: url('zdjecia/zbior1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}
#hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
}
#hero-content h1 {
    color: white;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    max-width: 800px;
    margin: 0;
}

/* Nawigacja - TWOJA ORYGINALNA */
header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0px 20px;
    display: flex;
    align-items: center;
    background-color: #FAFAFA;
    border-radius: 50px;
    z-index: 100;
}
#nawigacjalogo {
    margin-right: auto;
    transition: transform 900ms ease-out;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: black;
    padding: 0;
}
.nav-links {
    display: flex;
    align-items: center;
}
.nawigacja {
    color: black;
    margin: 0px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: transform 900ms ease-out;
    text-decoration: none;
}
.nawigacja span {
    position: relative;
    display: inline-block;
    color: #000;
    font-size: 16px;
}
.nawigacja span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: #75b5fd;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nawigacja:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nawigacja a {
    text-decoration: none;
    color: inherit;
}
.media {
    height: 20px;
    width: 20px;
    vertical-align: middle;
}

/* Main - treść */
main {
    width: 100%;
    margin-top: -40px;
    border-radius: 50px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 60px 20px;
}
.tytul {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 15px;
    color: #333;
    font-weight: 700;
    width: 100%;
    max-width: 1200px;
    margin: 40px 0 40px 0;
}
.tytul::before, .tytul::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #eaeaea;
}

/* GALERIA - 2 rzędy po 4 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolumny na komputerze */
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}
.gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 15px;
    background: #eee;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Powiększanie na hover */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* Stopka */
footer {
    width: 90%;
    max-width: 1200px;
    min-height: 200px;
    background-color: #1A1A1A;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    padding: 40px;
}
#mail {
    color: white;
}
#stopkalewo, #stopkaprawo { 
    color: white; }
#stopkalewo { 
    text-align: left; }
#stopkaprawo { 
    text-align: right; }
#stopkalewo p, #stopkaprawo p { 
    margin: 5px 0; }
/* --- Galeria 2x4 --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s ease; /* Płynne powiększenie po najechaniu */
}

/* Efekt po najechaniu myszką */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Lightbox (Pełny Ekran) --- */
.modal-lightbox {
    display: none; /* Ukryte na start */
    position: fixed;
    z-index: 99999; /* Bardzo wysoki, nad wszystkim */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-img-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}
.telefon{
    transform: translateY(20%);
}
/* Responsywność galerii */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); } /* 2 kolumny na tablety */
}

@media (max-width: 768px) {
    header { width: 95%; border-radius: 25px; }
    .hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background-color: #FAFAFA;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nawigacja { margin: 10px 0; width: 100%; justify-content: center; }

    .gallery-grid { grid-template-columns: 1fr; } /* 1 kolumna na telefon */
    
    footer { flex-direction: column; text-align: center; gap: 30px; }
    #stopkalewo, #stopkaprawo { text-align: center; width: 100%; }
}