﻿/* =========================================
   1. ZMIENNE I KONFIGURACJA KOLORĂ“W
   ========================================= */
:root {
    --primary-green: #6ECB9C; /* MiÄ™towy - gĹ‚Ăłwny kolor */
    --primary-dark: #2E8B57;  /* Ciemna zieleĹ„ - teksty nagĹ‚ĂłwkĂłw */
    --accent-red: #FF8585;    /* Koralowy - akcenty */
    --bg-color: #F7FAF9;      /* Jasne tĹ‚o strony */
    --white: #ffffff;
    --text-dark: #333333;     /* GĹ‚Ăłwny kolor tekstu */
    --text-light: #555555;    /* Szary tekst pomocniczy */
    --shadow: 0 4px 20px rgba(0,0,0,0.06); /* CieĹ„ pod elementami */
}

/* =========================================
   2. RESET I BAZA
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =========================================
   3. NAGĹĂ“WEK (HEADER) I MENU
   ========================================= */
header {
    background: var(--white);
    padding: 15px 0;
    border-top: 5px solid var(--primary-green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

h1 {
    color: var(--accent-red);
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.subtitle {
    color: var(--accent-red);
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

/* Pasek nawigacji */
nav {
    background: var(--primary-green);
    padding: 10px;
    border-radius: 50px;
    margin-top: 20px;
    position: relative; /* WaĹĽne dla pozycjonowania mobilnego */
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Styl dla elementĂłw listy w menu (potrzebne do dropdown) */
nav ul li {
    position: relative;
    list-style: none;
}

nav a {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 20px;
    display: block;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.25);
}

/* --- MENU ROZWIJANE (DROPDOWN) --- */
.submenu {
    display: none;           /* DomyĹ›lnie ukryte */
    position: absolute;      /* Oderwane od ukĹ‚adu */
    top: 75%;                /* Pod przyciskiem */
    left: 50%;               /* WyĹ›rodkowane */
    transform: translateX(-50%);
    background-color: #E0E0E0; /* Szare tĹ‚o */
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;           /* Na wierzchu */
    margin-top: 10px;
}

/* TrĂłjkÄ…cik nad menu */
.submenu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #E0E0E0 transparent;
}

/* Pokazywanie po najechaniu (tylko desktop) */
nav ul li:hover .submenu {
    display: block;
}

/* Linki w podmenu */
.submenu li { display: block; margin: 0; }
.submenu a {
    padding: 10px 20px;
    color: #333 !important;
    background: transparent !important;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 0 !important;
    white-space: normal;
    font-weight: 600;
}
.submenu a:hover {
    background-color: #d1d1d1 !important;
    color: #000 !important;
}

/* =========================================
   4. SYSTEM UKĹADU STRONY
   ========================================= */

/* Kontener ogĂłlny */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* UkĹ‚ad dla Strony GĹ‚Ăłwnej i AktualnoĹ›ci (Z Sidebar'em) */
.home-container, .layout-sidebar {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    grid-auto-flow: row;
}

/* UkĹ‚ad wyĹ›rodkowany dla Podstron */
.content-centered {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* =========================================
   5. STYLIZACJA TREĹšCI
   ========================================= */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}
.page-title { font-size: 2.2rem; color: var(--primary-dark); margin-bottom: 10px; }
.breadcrumbs { color: #888; font-size: 0.9rem; }

.article-text h3 { color: var(--primary-green); margin-top: 30px; margin-bottom: 15px; font-size: 1.4rem; }
.article-text p { margin-bottom: 15px; text-align: justify; }
.article-text ul { list-style: disc; margin-left: 20px; margin-bottom: 20px; color: var(--text-light); }

.important-box {
    background: #E8F8F5;
    border-left: 5px solid var(--primary-green);
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

/* =========================================
   6. ELEMENTY STRONY GĹĂ“WNEJ
   ========================================= */
   .hero {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    height: 250px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
} */

.main-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}
.main-content h2 { color: var(--primary-dark); margin-bottom: 20px; font-size: 2rem; }
.center-text-content p { text-align: center; }
.latest-post-home {
    text-align: left;
}

/* Apel i Finanse */
.alert-box {
    background: #FFF4F4;
    border: 2px solid var(--accent-red);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
}
.alert-title { color: var(--accent-red); font-weight: bold; font-size: 1.3rem; display: block; margin-bottom: 10px; }

.finance-section { margin-top: 30px; }
.finance-card {
    background: #FFFFFF;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid #ccc;
    text-align: left;
    transition: transform 0.2s;
}
.finance-card:hover { transform: translateY(-3px); }
.primary-card { border-left-color: #0000FF; }
.second-card { border-left-color: #FF0000; }
.third-card { border-left-color: #6ECB9C; }


.account-number {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    word-break: break-all;
    margin-top: 5px;
}
.copy-btn { margin-top: 10px; background: white; border: 1px solid #ddd; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 0.8rem; transition: 0.3s; }
.copy-btn:hover { background-color: #f0f0f0; }

/* =========================================
   7. SIDEBAR I KALENDARZ
   ========================================= */
aside { display: flex; flex-direction: column; gap: 25px; }
.widget { background: var(--white); padding: 25px; border-radius: 20px; box-shadow: var(--shadow); }
.widget h3 { color: var(--primary-dark); font-size: 1.1rem; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 15px; text-align: left; }

.search-box { display: flex; gap: 5px; }
.search-box input { flex: 1; padding: 10px; border: 2px solid #eee; border-radius: 10px; }
.search-box button { background: var(--primary-green); color: white; border: none; padding: 0 15px; border-radius: 10px; cursor: pointer; }

.post-list li { padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 0.9rem; text-align: left; }

.calendar-preview { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: 0.85rem; }
.cal-head { font-weight: bold; color: var(--primary-green); }
.calendar-footer { text-align: center; margin-top: 15px; color: #999; font-size: 0.8rem; }

/* Styl dla aktualnego dnia w kalendarzu */
.cal-day.today {
    background-color: var(--accent-red);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto;
}
.calendar-preview div:not(.cal-head) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

/* =========================================
   8. SPECYFICZNE STYLE ZAKĹADEK (KONTAKT, OPP, GALERIA)
   ========================================= */
.contact-header { text-align: center; margin-bottom: 40px; }
.main-blue-title { color: #0000FF; font-weight: bold; font-size: 1.3rem; margin-bottom: 5px; }
.main-address { color: #555; margin-bottom: 15px; }
.main-email { font-size: 1.1rem; text-decoration: underline; color: #2E8B57; }

.section-title { text-align: center; color: #333; border-bottom: 2px solid #eee; padding-bottom: 10px; margin: 40px 0 20px 0; font-size: 1.5rem; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.person-card { background: #f9f9f9; padding: 20px; border-radius: 10px; text-align: center; border-top: 4px solid #6ECB9C; transition: transform 0.2s; }
.person-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.role { font-size: 0.9rem; color: #777; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.name { font-size: 1.2rem; font-weight: bold; color: #333; margin-bottom: 10px; }
.contact-detail a { color: #2E8B57; font-weight: 600; }
.commission-list { text-align: center; color: #555; line-height: 1.8; }
.bank-section { text-align: center; background: #fff4f4; padding: 30px; border-radius: 15px; border: 1px solid #ffcccc; margin-top: 30px; }
.bank-number { color: #FF0000; font-weight: bold; font-size: 1.3rem; font-family: monospace; margin: 15px 0; word-break: break-all; }
.admin-contact { margin-top: 50px; text-align: center; font-size: 0.9rem; color: #777; border-top: 1px solid #eee; padding-top: 20px; }

/* OPP */
.opp-header { text-align: center; margin-bottom: 30px; }
.text-blue { color: #0000FF; font-weight: bold; }
.text-orange { color: #FF4500; font-weight: bold; }
.opp-title { font-size: 1.3rem; margin-bottom: 5px; line-height: 1.4; }
.opp-address { font-weight: bold; color: #333; margin-bottom: 20px; }
.opp-reg-info { color: #444; font-weight: bold; margin-bottom: 10px; }
.opp-nip { font-size: 0.9rem; margin-bottom: 30px; }
.opp-main-info { font-size: 1.4rem; margin-bottom: 15px; }
.opp-krs { font-size: 2rem; margin-bottom: 30px; }
.opp-list { margin-bottom: 30px; margin-top: 10px; }
.opp-list li { margin-bottom: 8px; list-style-type: disc; margin-left: 20px; }

/* Galeria i News */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { background: white; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s; }
.gallery-item:hover { transform: translateY(-5px); }
.gallery-img { width: 100%; height: 200px; background: #ddd; object-fit: cover; }
.gallery-caption { padding: 15px; text-align: center; font-weight: 600; color: #666; font-size: 0.9rem; }

.news-item { background: white; padding: 30px; border-radius: 15px; box-shadow: var(--shadow); margin-bottom: 30px; display: flex; gap: 20px; align-items: flex-start; }
.news-date { background: var(--accent-red); color: white; padding: 10px; border-radius: 10px; text-align: center; min-width: 80px; }
.news-day { font-size: 1.5rem; font-weight: bold; display: block; }
.news-content {
    flex: 1;
    text-align: left;
}
.btn-read-more { display: inline-block; margin-top: 10px; color: var(--primary-green); font-weight: bold; }

/* =========================================
   9. STOPKA
   ========================================= */
footer {
    background: #34495e;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}
.footer-meta { font-size: 0.8rem; opacity: 0.6; margin-top: 15px; }

/* =========================================
   10. RESPONSYWNOĹšÄ† I MENU MOBILNE
   ========================================= */

/* Stylizacja przycisku Hamburger (domyĹ›lnie ukryty na desktopie) */
.hamburger {
    display: none; /* Ukryty na komputerach */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white; /* Dopasowany do tĹ‚a menu */
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* Animacja ikony hamburgera po otwarciu */
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }


/* PUNKT PRZEĹAMANIA DLA TABLETĂ“W I TELEFONĂ“W (992px) */
@media (max-width: 992px) {

    /* 1. Pokazujemy hamburgera */
    .hamburger {
        display: block;
        margin: 0 auto 10px auto;
    }

    /* 2. Zmieniamy ukĹ‚ad nawigacji */
    nav {
        padding: 10px;
        border-radius: 20px;
    }

    /* 3. Ukrywamy listÄ™ linkĂłw i zmieniamy jÄ… na pionowÄ… */
    nav ul {
        display: none; /* Ukryte domyĹ›lnie */
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* 4. Klasa .active dodawana przez JS - pokazuje menu */
    nav ul.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }

    /* 5. Styl linkĂłw na mobile */
    nav ul li {
        width: 100%;
        margin-bottom: 5px;
    }

    nav a {
        display: block;
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    /* Naprawa submenu na mobile (rozwiniÄ™te, statyczne) */
    .submenu {
        display: block; 
        position: static;
        transform: none;
        background-color: rgba(0,0,0,0.1);
        box-shadow: none;
        width: 100%;
        margin-top: 0;
        min-width: unset;
    }
    
    .submenu::before { display: none; } /* Ukrywamy strzaĹ‚kÄ™ */
    .submenu li a { font-size: 0.8rem; padding: 10px; }

    /* UkĹ‚ad kontenerĂłw (Grid zmienia siÄ™ w Flex Column) */
    .home-container, .layout-sidebar {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Zmniejszenie nagĹ‚ĂłwkĂłw i marginesĂłw */
    .container { margin: 20px auto; }
    .content-centered { padding: 25px; }
    h1 { font-size: 1.5rem; }
    .hero { height: 160px; font-size: 1.3rem; padding: 20px; }
    .page-title { font-size: 1.8rem; }

    /* Newsy i daty */
    .news-item { flex-direction: column; }
    .news-date {
    background: var(--accent-red);
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center; /* <--- To jest kluczowe dla daty! */
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
    .account-number { font-size: 0.95rem; }
    .opp-krs { font-size: 1.6rem; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-item {
    text-align: left !important;
}

.news-content p, 
.news-content h3 {
    text-align: left !important;
}

.news-date {
    text-align: center !important;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

#latest-post-home {
    width: 100%;
    margin-top: 20px;
}
/* =========================================
   GALERIA - WYGLD KAFELKÓW (POPRAWIONY)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Wymuszone 3 kolumny */
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex; /* Flex dla równego ukadu */
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-img {
    width: 100%;
    height: 240px; /* Nieco wysze zdjcia */
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.gallery-caption {
    padding: 20px;
    text-align: center;
    background: white;
    flex-grow: 1; /* Wypenia przestrze */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Styl daty (Róowy/Czerwony na górze) */
.gallery-date {
    color: #FF8585;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Styl tytuu (Ciemny poniej) */
.gallery-title {
    color: #444;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsywno galerii */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 kolumna na telefonach */
    }
    .gallery-img {
        height: 200px;
    }
}

/* =========================================
   MODAL - PODGLD WYDARZENIA
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Brak paska przewijania na body */
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 40px auto; /* Mniejszy margines góra/dó */
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh; /* Maksymalna wysoko */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0; /* Nie zmniejszaj nagówka */
}

.modal-title {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-date {
    margin: 5px 0 0 0;
    color: #FF8585;
    font-weight: bold;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #FF8585;
}

/* Siatka zdj wewntrz modala */
.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 30px;
    overflow-y: auto; /* Przewijanie tylko wewntrz siatki */
    flex-grow: 1; /* Zajmuje reszt miejsca */
}

.modal-gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal-gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================================
   LIGHTBOX - PENY EKRAN (POWIKSZENIE)
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 20000; /* Wyej ni modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    user-select: none;
}

/* Strzaki nawigacji */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 20001;
    border-radius: 8px;
    user-select: none;
}

.lightbox-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow-left { left: 20px; }
.lightbox-arrow-right { right: 20px; }

.lightbox-arrow.hidden { display: none; }

/* Przycisk zamknicia lightbox */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20001;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lightbox-close:hover { opacity: 1; color: #FF8585; }

/* Licznik zdj */
.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Mobile styles for lightbox */
@media (max-width: 768px) {
    .lightbox-arrow {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    .lightbox-arrow-left { left: 10px; }
    .lightbox-arrow-right { right: 10px; }
    .lightbox-close { top: 15px; right: 20px; }
}

/* =========================================
   NOWY STYL MODALA (Z reference)
   ========================================= */
:root {
  --card-bg: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --text: #1f2937;
  --hover-bg: #f3f4f6;
  --transition: all 0.3s ease;
}

.project-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.project-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-dialog {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  width: min(100%, 1000px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--card-shadow-hover);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--hover-bg);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.modal-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.modal-gallery img:hover {
  transform: scale(1.02);
}

.modal-gallery p {
    color: #666;
    text-align: center;
    grid-column: 1/-1;
}



/* Buttony Czytaj wiecej */
.read-more-btn {
    background-color: var(--primary-green); /* Mitowy */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s;
}
.read-more-btn:hover {
    background-color: var(--primary-dark);
}


