/* === GŁÓWNA GALERIA === */
.cfg-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}


.cfg-album {
    width: 350px;
    text-align: center;
}

.cfg-album-title {
    font-size: 24px;
    font-weight: bold;
    color: #00B9F2;
    margin-top: 10px;
    text-align: center;
}

.cfg-album-thumb {
    width: 100%;
    height: 250px !important;
    object-fit: cover;
    border: 2px solid #EC008C !important;
    border-radius: 0 20px 20px 0 !important;
    box-shadow: 0 0 4px rgba(0,0,0,0.2) !important;
}

.cfg-album-date {
    font-size: 16px;
    color: #00B9F2;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.cfg-gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.cfg-pagination {
    text-align: center;
    margin-top: 20px;
}

.cfg-pagination .cfg-page {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}

.cfg-pagination .cfg-page.current {
    font-weight: bold;
    background: #eee;
}


/* === WIDOK POJEDYNCZEGO ALBUMU === */
.cfg-single-album {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
}

.cfg-single-album h2 {
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    background-color: #00B9F2;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.cfg-album-date-single {
    display: inline-block;
    background-color: #00B9F2;
    color: #fff;
    padding: 5px 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
}

.cfg-album-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cfg-album-photos img.cfg-album-photo {
    width: 250px;
    height: 160px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.cfg-album-photos img.cfg-album-photo:hover {
    border-color: #EC008C;
}

/* === PRZYCISK POWROTU === */
.cfg-back-link {
    display: inline-block;
    margin-bottom: 20px;
    background-color: #EC008C;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cfg-back-link:hover {
    background-color: #c70070;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
    .cfg-gallery {
        flex-direction: column;
        align-items: center;
    }

    .cfg-album {
        width: 90%;
    }

    .cfg-album-thumb {
        height: 200px !important;
    }

    .cfg-album-title {
        font-size: 20px;
    }

    .cfg-album-date {
        font-size: 14px;
    }

    .cfg-single-album h2 {
        font-size: 20px;
    }

    .cfg-album-date-single {
        font-size: 14px;
        padding: 4px 10px;
    }

    .cfg-album-photos img.cfg-album-photo {
        width: 180px;
        height: 120px;
    }

    .cfg-single-album {
        padding: 5px;
    }
}

/* ===== Styl paginacji galerii ===== */
.cfg-pagination {
    margin-top: 20px;
    text-align: center;
}

.cfg-pagination .cfg-page {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    background-color: #0073aa;   /* kolor przycisku powrotu */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cfg-pagination .cfg-page:hover {
    background-color: #005f8d;   /* ciemniejszy na hover */
}

.cfg-pagination .cfg-page.current {
    background-color: #444;      /* aktywna strona */
    font-weight: bold;
    cursor: default;
}

/* ===== Responsywność dla urządzeń mobilnych ===== */
@media (max-width: 600px) {
    .cfg-pagination .cfg-page {
        margin: 3px;
        padding: 8px 10px;
        font-size: 14px;
    }
}

.cfg-year-pagination {
    text-align: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cfg-year-pagination a,
.cfg-year-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 0px solid #999;
    background: #EC008C;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.cfg-year-pagination a:hover {
    background: #c70070;
    color: #ffffff;
}

.cfg-year-pagination .current {
    background: #00B9F2;
    color: #fff;
    font-weight: bold;
    border-color: #333;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .cfg-year-pagination a,
    .cfg-year-pagination span {
        padding: 6px 10px;
        font-size: 14px;
    }
}

