.navbar-brand.logo-control img.logo-img {
	  max-height: 50px;
	  width: auto;
}

.item-page.layout-default .top-article-info {
	text-align: start !important;
}

.item-page.layout-default.no-sidebar .top-article-info {
	max-width: unset;
}



/* ==========================================================
   Purity IV / T4 – Phoca Gallery Megamenu-Fix
   ========================================================== */

@media (min-width: 992px) {

    body.com_phocagallery #t4-megamenu-mainmenu {
        height: auto !important;
        overflow: visible !important;
    }

}



/* ==========================================================
   PHOCA MODERN LAYOUT 0.3
   Joomla 4 / 5 / 6 – Phoca Gallery Standard Theme
   ========================================================== */

/* ----------------------------------------------------------
   1. GRUNDEINSTELLUNGEN
   ---------------------------------------------------------- */

.pg-category-view {
    --pg-gap: 18px;
    --pg-radius: 4px;
    --pg-text: #555;
    --pg-muted: #777;
}

/* ----------------------------------------------------------
   2. BILDKACHELN – 4 SPALTEN
   ---------------------------------------------------------- */

.pg-category-view .pg-item-box {
    display: inline-flex !important;
    flex-direction: column !important;
    vertical-align: top !important;

    width: calc(25% - 18px) !important;
    height: auto !important;
    margin: 0 14px 22px 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
    float: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ----------------------------------------------------------
   3. VORSCHAUBILDER
   ---------------------------------------------------------- */

.pg-category-view .pg-item-box > a.pg-nopopup-button {
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
}

.pg-category-view .pg-item-box-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    overflow: hidden !important;
    border-radius: var(--pg-radius);
    background: #f5f5f5;
}

.pg-category-view .pg-item-box-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    transition: transform 0.25s ease;
}

.pg-category-view .pg-item-box > a:hover img {
    transform: scale(1.035);
}

/* ----------------------------------------------------------
   4. BILDINFORMATIONEN
   ---------------------------------------------------------- */

.pg-category-view .pg-item-box-info {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;

    width: 100% !important;
    height: auto !important;
    padding: 7px 0 0 !important;
    margin: 0 !important;

    box-sizing: border-box;
    background: transparent !important;
}

/* Fotografenangabe */

.pg-category-view .pg-item-box-title {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;

    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    color: var(--pg-text);
    background: transparent !important;
}

/* Überflüssiges Bildsymbol ausblenden */

.pg-category-view .pg-item-box-title > svg.ph-si-image {
    display: none !important;
}

.pg-category-view .pg-item-box-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* ----------------------------------------------------------
   5. DOWNLOAD- UND INFO-SYMBOLE
   ---------------------------------------------------------- */

.pg-category-view .pg-item-box-icons-box {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.pg-category-view .pg-item-box-icons-box a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 2px !important;

    color: #555 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
}

.pg-category-view .pg-item-box-icons-box svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    fill: currentColor;
}

.pg-category-view .pg-item-box-icons-box a:hover {
    color: #111 !important;
}

/* Leere Phoca-Elemente entfernen */

.pg-category-view .pg-item-box-info .ph-cb,
.pg-category-view .pg-item-box-descripton:empty {
    display: none !important;
}

/* ----------------------------------------------------------
   6. ZURÜCK-NAVIGATION
   ---------------------------------------------------------- */

.pg-category-view .pg-back-box,
.pg-category-view .pg-category-box-back {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 0 20px !important;
}

.pg-category-view .pg-back-box svg,
.pg-category-view .pg-category-box-back svg {
    width: 28px !important;
    height: 28px !important;
}

/* ----------------------------------------------------------
   7. KATEGORIENÜBERSICHT
   ---------------------------------------------------------- */

.pg-categories-view .pg-category-box {
    display: inline-block;
    vertical-align: top;
    width: calc(25% - 18px) !important;
    height: auto !important;
    margin: 0 14px 22px 0 !important;
    box-sizing: border-box;
}

.pg-categories-view .pg-category-box-image {
    width: 100% !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--pg-radius, 4px);
}

.pg-categories-view .pg-category-box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.pg-categories-view .pg-category-box-image svg {
    max-width: 100% !important;
    max-height: 100% !important;
}

.pg-categories-view .pg-category-box-title {
    font-size: 0.9rem;
    line-height: 1.35;
    padding: 7px 0;
}

/* ----------------------------------------------------------
   8. RESPONSIVE – TABLET
   ---------------------------------------------------------- */

@media (max-width: 991px) {

    .pg-category-view .pg-item-box,
    .pg-categories-view .pg-category-box {
        width: calc(50% - 14px) !important;
        margin-right: 10px !important;
        margin-bottom: 20px !important;
    }
}

/* ----------------------------------------------------------
   9. RESPONSIVE – SMARTPHONE
   ---------------------------------------------------------- */

@media (max-width: 575px) {

    .pg-category-view .pg-item-box,
    .pg-categories-view .pg-category-box {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 22px !important;
    }

    .pg-category-view .pg-item-box-title {
        font-size: 0.88rem !important;
    }
}

/* ----------------------------------------------------------
   10. BARRIEREFREIHEIT
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .pg-category-view .pg-item-box-image img {
        transition: none !important;
    }
}