/* =========================================================
   PHOCA GALLERY - wyśrodkowanie kafelków galerii
   (ostatni rząd również jest wyśrodkowany)
   ========================================================= */

.pg-category-items-box {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px;
}

.pg-category-items-box .pg-item-box {
    float: none !important;
    margin: 0 !important;
}

/* ==========================================================
   PHOCA GALLERY
   ========================================================== */

/* Wyśrodkowanie kafelków kategorii */
.pg-categories-items-box {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 20px;
}

/* Wyłączenie domyślnego float kafelków */
.pg-category-box {
    float: none !important;
    margin: 0 !important;
}


/* ==========================================================
   PRZYCISKI W TREŚCI ARTYKUŁÓW
   ========================================================== */

/* Kontener przycisku wyrównany do prawej */
.article-button,
.readmore {
    text-align: right;
    margin-top: 1rem;
}

/* ==========================================
   Przycisk "Więcej..." (Joomla)
   Wygląd identyczny z Bootstrap .btn.btn-primary
   ========================================== */

.readmore {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.readmore a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .375rem .75rem;
    min-height: 38px;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    font-family: inherit;

    color: #fff !important;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: .375rem;

    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;

    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out;
}

.readmore a:hover,
.readmore a:focus {
    color: #fff !important;
    background-color: #0b5ed7;
    border-color: #0a58ca;
    text-decoration: none;
}

.readmore a:active {
    background-color: #0a58ca;
    border-color: #0a53be;
}

/* ==========================================================
   TABELA INTENCJI MSZALNYCH
   ========================================================== */

table.intencje {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

/* Nagłówek */
table.intencje thead th {
    background: #f3f3f3;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border-bottom: 2px solid #dee2e6;
}

/* Komórki */
table.intencje td,
table.intencje th {
    padding: 8px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* Wyśrodkowanie pierwszych kolumn */
table.intencje td:first-child,
table.intencje td:nth-child(2),
table.intencje td:nth-child(3) {
    text-align: center;
    white-space: nowrap;
}

/* Brak efektu hover */
table.intencje tbody tr:hover {
    background: transparent;
}

/* Responsywność tabel na telefonach */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mniejsze odstępy na urządzeniach mobilnych */
@media (max-width: 768px) {

    table.intencje {
        font-size: 0.85rem;
    }

    table.intencje td,
    table.intencje th {
        padding: 6px;
    }
}

.pg-category-items-box,
.pg-categories-items-box {
    display: table;
    margin: 0 auto;
}

/* ==========================================
   PHOCA GALLERY - odstęp przed paginacją
   ========================================== */

.com_phocagallery .pagination,
.com-phocagallery .pagination {
    margin-top: 30px !important;
}

.ph-cb.pg-cv-paginaton {
    margin-top: 30px !important;
}

/* ==========================================
   PHOCA GALLERY - ukrycie stopki "Powered by"
   ========================================== */

div[style*="text-align:right"] a[href*="phoca.cz"] {
    display: none !important;
}

div[style*="text-align:right"] {
    display: none !important;
}