html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Customowy pasek przewijania */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #e0eaf5;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
    border: 3px solid #e0eaf5;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

header {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 60%, #3498db 100%);
    color: white;
    text-align: center;
    padding: 60px 20px 30px;
    position: relative;
}

.pogoda-kontener {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.nawigacja {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(34, 49, 63, 0.98);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border-bottom: 3px solid #3498db;
}

.nawigacja a {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95em;
    transition: background 0.3s, transform 0.2s;
}

.nawigacja a:hover {
    background: #3498db;
    transform: translateY(-2px);
}

main {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.info-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    font-size: 0.9em;
}

.opis-wsi {
    font-style: italic;
    color: #555;
    background: #fffdf0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
    margin-bottom: 30px;
}

.news-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    background: #fdfdfd;
}

.news-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.news-header h3 {
    margin: 0;
    color: #2c3e50;
}

.news-data {
    font-size: 0.85em;
    color: #7f8c8d;
}

.news-body {
    padding: 20px;
}

.news-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.news-opis {
    color: #444;
    line-height: 1.7;
}

/* Zaktualizowane marginesy przewijania ze względu na lepkie menu */
h2,
section {
    scroll-margin-top: 80px;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}

.mapa-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.mapa-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.galeria-foldery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.folder {
    background: #fdfdfd;
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #eee;
    transition: 0.2s;
}

.folder:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.folder-ikona {
    font-size: 60px;
    margin-bottom: 10px;
}

.ukryty {
    display: none !important;
}

.przycisk-powrot {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    margin-bottom: 20px;
    transition: 0.2s;
}

.przycisk-powrot:hover {
    background: #2980b9;
}

.tytul-otwartej-galerii {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
}

.siatka-zdjec {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.siatka-zdjec img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.siatka-zdjec img:hover {
    transform: scale(1.03);
}

.kontakt-dane {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #3498db;
}

.kontakt-dane a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

/* ==========================================
   LIGHTBOX (POWIĘKSZONE ZDJĘCIA I PRZYCISKI)
   ========================================== */

#lightbox-container {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#lightbox-obraz {
    max-width: 95vw;
    max-height: 60vh;
    border: 3px solid white;
    border-radius: 4px;
    object-fit: contain;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#lightbox-zamknij {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    z-index: 1001;
    user-select: none;
    transition: color 0.3s;
}

#lightbox-prev {
    left: 10px;
}

#lightbox-next {
    right: 10px;
}

#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-zamknij:hover {
    color: #3498db;
}

#lightbox-pobierz {
    margin-top: 25px;
    padding: 10px 25px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
    max-width: 80vw;
}

#lightbox-pobierz:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.stopka {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 20px;
}