/* --- BAZA I TYPOGRAFIA --- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,700;1,300&family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f6fa;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* --- --- */
.site-header {
    background-color: #2c3e50; 
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('/images/baner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 10px 0; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-header h1 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.site-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* --- BREADCRUMPS --- */
.breadcrumbs {
    background: #ecf0f1;
    padding: 5px 15px;
    border-radius: 5px;    
    font-size: 0.9rem;
    color: #7f8c8d;
}

.breadcrumbs a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .current { color: #2c3e50; font-weight: bold; }

/* --- GRID  */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); /* Mniejsze kafelki! */
    gap: 15px; /* Mniejsze odstępy */
    margin-bottom: 40px;
}

/* --- H1  */
.photo-container h1 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.photo-card, .category-card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.photo-card figure, .category-card figure {
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover figure, .category-card:hover figure {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.photo-card img, .category-card img {
    width: 100%;
    height: 130px; 
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.photo-card h3, .category-card h3 {
    font-size: 0.8rem;
    margin: 15px;
    text-align: center;
}

.category-card p.photo-count {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: -5px 0 15px 0;
    font-weight: 600;
}

/* --- photo --- */
.photo-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 10px 22px 10px; /* Zwiększony dolny padding na podpowiedź */
    border-radius: 8px;   
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    position: relative; /* Ważne dla wypozycjonowania napisu Tip */
}

.photo-navigation a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.photo-navigation a:hover { text-decoration: underline; }
.nav-counter { color: #7f8c8d; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.photo-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eaeaea;
}

.photo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
}

.nav-tip {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.65rem;
    color: #aaa;
    font-style: italic;
    pointer-events: none; /* Tekst nie reaguje na kliknięcia, nie blokuje linków */
    letter-spacing: 0.5px;
}

/* --- text over grid --- */
.folder-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    margin-top: 30px;
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
}

/* --- LAYOUT with SIDEBAR (2 col) --- */
.site-layout {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.main-content {
    flex: 1; 
    min-width: 0;
}
.sidebar {
    width: 250px; /*  sidebar */
    flex-shrink: 0;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

/* RWD  */
@media (max-width: 850px) {
    .site-layout { flex-direction: column; }
    .sidebar { width: 100%; box-sizing: border-box; }
}

/* ---  MENU --- */
.top-menu {
    background-color: #34495e;    
}
.top-menu .container { padding: 10px 20px; }
.top-menu a {
    color: #ecf0f1; text-decoration: none; margin-right: 20px; font-weight: 600; font-size: 0.95rem;
}
.top-menu a:hover { color: #3498db; }

/* --- widgets SIDEBAR --- */
.widget { margin-bottom: 30px; }
.widget_text p { font-size: 0.8rem; color: #555; line-height: 1.8; }
.widget_nav_menu ul { list-style: none; padding: 0; margin: 0; }
.widget_nav_menu ul li { margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 8px;}
.widget_nav_menu ul li a { text-decoration: none; color: #2980b9; font-weight: 600; font-size: 0.9rem;}
.widget_nav_menu ul li a:hover { color: #d35400; }
.widget_nav_menu ul ul { margin-left: 15px; margin-top: 5px; border-left: 1px dashed #ccc; padding-left: 10px; border-bottom: none;}
.widget_nav_menu ul ul li { border-bottom: none; padding-bottom: 4px; margin-bottom: 4px;}
.widget_nav_menu ul ul li a { font-weight: normal; color: #555; font-size: 0.8rem;}