/* Resetowanie marginesów i paddingów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styl podstawowy dla body */
body {
    background-color: #f4f4f4; /* Jasne szare tło */
    color: #333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Nagłówek strony */
header {
    background-color: #b42423; /* Czerwone tło */
    color: white;
    padding: 20px 0;
    text-align: center;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
}

header .logo {
    width: 200px;        /* Ustaw szerokość logo */
    height: 200px;       /* Ustaw wysokość logo na tę samą wartość */
    border-radius: 50%;  /* Zaokrąglij rogi do 50%, aby utworzyć koło */
    object-fit: cover;   /* Upewnij się, że obrazek wypełnia cały okrąg */
}

/* Nawigacja */
nav ul {
    list-style: none;
    margin-top: 15px;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Sekcja ogólna */
section {
    padding: 40px 0;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #b42423;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Kontakt */
#kontakt ul {
    list-style: none;
}

#kontakt ul li {
    font-size: 1.2rem;
    margin: 10px 0;
}

#kontakt a {
    text-decoration: none;
    color: #b42423;
}

/* Galeria */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Automatycznie dostosowuje kolumny */
    gap: 15px; /* Odstęp między obrazami */
    margin-top: 20px;
    align-items: center; /* Wyśrodkowanie w pionie */
}

.gallery img {
    width: 100%;  /* Obrazki wypełnią całą szerokość kontenera */
    height: auto; /* Wysokość automatycznie dopasowana */
    border-radius: 8px; /* Zaokrąglone rogi */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Cień wokół obrazów */
    cursor: pointer; /* Zmiana kursora na rękę */
}

/* Lightbox – modalne okno */
.lightbox-modal {
    display: none; /* Domyślnie niewidoczny */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Przyciemnienie tła */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Powiększone zdjęcie */
.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    border-radius: 8px;
}

/* Przycisk zamykania */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* Przycisk nawigacji w lightbox */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* Opcjonalnie stylizacja na modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    border-radius: 8px;
}


/* Stopka */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer p {
    font-size: 1rem;
}
