
/* =========================================
   PIXX Masonry Galerie – Layout & Stil
   ========================================= */

/* Wrapper für Galerie + Filterleiste */
.pixx-masonry-wrapper {
    max-width: 1350px;          /* gleiche Breite wie Header/Footer */
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

/* -----------------------------------------
   Kategorieleiste
   ----------------------------------------- */

.pixx-masonry-filter {
    text-align: center;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.pixx-masonry-filter-link {
    display: inline-block;
    margin: 0 0.75rem;
    text-decoration: none;
    color: #444444;              /* dunkles Grau, auf allen Themenwelten nutzbar */
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.pixx-masonry-filter-link:hover,
.pixx-masonry-filter-link:focus {
    color: #111111;
    transform: translateY(-1px);
}

.pixx-masonry-filter-link.is-active {
    font-weight: 600;
    font-size: 1rem;             /* minimal größer als die anderen */
}

/* -----------------------------------------
   Masonry Grid
   ----------------------------------------- */

.pixx-masonry-grid {
    column-count: 4;
    column-gap: 2.25rem;
}

/* Tablet / kleinere Desktops */
@media (max-width: 1024px) {
    .pixx-masonry-grid {
        column-count: 3;
        column-gap: 2rem;
    }
}

/* Kleine Tablets / große Smartphones */
@media (max-width: 768px) {
    .pixx-masonry-grid {
        column-count: 2;
        column-gap: 1.5rem;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .pixx-masonry-grid {
        column-count: 1;
        column-gap: 1.25rem;
    }
}

.pixx-masonry-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 3.0rem;          /* mehr Luft nach unten – hilft beim Zuordnen des Titels */
}

.pixx-masonry-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Bild mit stärkerem, aber weichem Schatten */
.pixx-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

/* Bildtitel */
.pixx-masonry-caption {
    margin-top: 1.0rem;          /* etwas mehr Abstand zum Bild */
    font-size: 0.95rem;          /* leicht größer als bisher */
    line-height: 1.5;
    text-align: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover-Effekt: Bild + Titel heben sich dezent ab */
.pixx-masonry-item a:hover img,
.pixx-masonry-item a:focus img {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.pixx-masonry-item a:hover .pixx-masonry-caption,
.pixx-masonry-item a:focus .pixx-masonry-caption {
    transform: translateY(-1px);
    color: #222222;
}

/* Etwas enger auf ganz schmalen Displays */
@media (max-width: 600px) {
    .pixx-masonry-wrapper {
        padding: 0 1rem;
    }

    .pixx-masonry-filter {
        font-size: 0.9rem;
        line-height: 1.8;
    }
}

/* ------------------------------
   Pagination
------------------------------ */
.pixx-masonry-pagination {
    text-align: center;   /* <— DIE WICHTIGE ZEILE */
    margin-top: 2rem;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.pixx-masonry-pagination a,
.pixx-masonry-pagination span {
    display: inline-block;
    margin: 0 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    text-decoration: none;
    color: #444;
    transition: background 0.2s ease, color 0.2s ease;
}

.pixx-masonry-pagination a:hover {
    background: #eee;
    color: #000;
}

.pixx-masonry-pagination .current {
    background: #444;
    color: #fff;
    font-weight: 600;
}

/* Grid zunächst unsichtbar, wird nach Stabilisierung eingeblendet */
.pixx-masonry-wrapper.is-loading .pixx-masonry-grid,
.pixx-masonry-wrapper.is-loading .pixx-masonry-pagination {
  opacity: 0;
  transform: translateY(12px);
}

.pixx-masonry-grid,
.pixx-masonry-pagination {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}

/* optional: damit es nicht "blitzt", wenn Bilder nachladen */
.pixx-masonry-grid img {
  display: block;
  width: 100%;
  height: auto;
}

