/* ==========================================================
   GALERIE SEKTION
========================================================== */

.pkfgg-section {
    padding: 95px 20px;
    background: #ffffff;
}


/* ==========================================================
   GRID
========================================================== */

.pkfgg-grid {
    display: grid;
    gap: 18px;
    grid-auto-flow: dense;
}

.pkfgg-cols-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.pkfgg-cols-3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.pkfgg-cols-4 {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* ==========================================================
   ITEM
========================================================== */

.pkfgg-item {
    position: relative;

    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 24px;

    background: #e9ecef;

    overflow: hidden;

    cursor: zoom-in;

    aspect-ratio: 4 / 3;

    box-shadow:
        0 16px 38px
        rgba(18, 35, 52, 0.08);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.pkfgg-item:hover {
    transform: translateY(-4px);

    box-shadow:
        0 24px 52px
        rgba(18, 35, 52, 0.15);
}


/* ==========================================================
   EDITORIAL LAYOUT
========================================================== */

.pkfgg-layout-editorial
.pkfgg-item-featured {
    grid-column: span 2;
    grid-row: span 2;

    aspect-ratio: auto;

    min-height: 520px;
}


/* ==========================================================
   IMAGE
========================================================== */

.pkfgg-image {
    position: absolute;

    inset: 0;

    display: block;
}

.pkfgg-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .55s
        cubic-bezier(.22,.61,.36,1);
}

.pkfgg-item:hover
.pkfgg-image img {
    transform: scale(1.045);
}


/* ==========================================================
   HOVER
========================================================== */

.pkfgg-hover {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 13px;

    padding: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(18,28,38,.02),
            rgba(18,28,38,.60)
        );

    opacity: 0;

    transition:
        opacity .3s ease;
}

.pkfgg-item:hover
.pkfgg-hover,
.pkfgg-item:focus-visible
.pkfgg-hover {
    opacity: 1;
}

.pkfgg-zoom {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.94);

    color: #2f4358;

    font-size: 31px;
    line-height: 1;
    font-weight: 300;

    box-shadow:
        0 15px 30px
        rgba(0,0,0,.15);

    transform:
        translateY(8px);

    transition:
        transform .3s ease;
}

.pkfgg-item:hover
.pkfgg-zoom {
    transform:
        translateY(0);
}

.pkfgg-caption {
    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 20px;

    color: #ffffff;

    text-align: left;

    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}


/* ==========================================================
   EMPTY EDITOR
========================================================== */

.pkfgg-empty {
    padding: 35px;

    border:
        2px dashed
        rgba(47,67,88,.18);

    border-radius: 20px;

    background: #f7f8fa;

    color: #607284;

    text-align: center;

    font-size: 15px;
}


/* ==========================================================
   LIGHTBOX
========================================================== */

.pkfgg-lightbox {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 32px;

    opacity: 0;

    transition:
        opacity .22s ease;
}

.pkfgg-lightbox[hidden] {
    display: none;
}

.pkfgg-lightbox.is-open {
    opacity: 1;
}

.pkfgg-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(18, 24, 30, .94);

    backdrop-filter:
        blur(10px);
}


/* ==========================================================
   LIGHTBOX INNER
========================================================== */

.pkfgg-lightbox-inner {
    position: relative;

    width: min(1280px, 100%);

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 2;
}


/* ==========================================================
   STAGE
========================================================== */

.pkfgg-stage {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;
}

.pkfgg-stage > img {
    display: block;

    max-width: 100%;
    max-height: 78vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 18px;

    box-shadow:
        0 35px 90px
        rgba(0,0,0,.42);
}


/* ==========================================================
   META
========================================================== */

.pkfgg-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    width: min(100%, 1000px);

    margin-top: 17px;

    color:
        rgba(255,255,255,.78);
}

.pkfgg-lightbox-caption {
    font-size: 14px;
    line-height: 1.5;
}

.pkfgg-counter {
    flex: 0 0 auto;

    color:
        rgba(255,255,255,.55);

    font-size: 13px;
}


/* ==========================================================
   CLOSE
========================================================== */

.pkfgg-close {
    position: fixed;

    top: 24px;
    right: 27px;

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255,255,255,.11);

    color: #ffffff;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;

    z-index: 5;
}

.pkfgg-close:hover {
    background:
        rgba(255,255,255,.19);

    transform: rotate(4deg);
}


/* ==========================================================
   NAV
========================================================== */

.pkfgg-nav {
    position: absolute;

    top: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255,255,255,.12);

    color: #ffffff;

    font-size: 42px;
    line-height: 1;

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        background .2s ease,
        transform .2s ease;

    z-index: 5;
}

.pkfgg-nav:hover {
    background:
        rgba(255,255,255,.20);
}

.pkfgg-prev {
    left: -10px;
}

.pkfgg-next {
    right: -10px;
}


/* ==========================================================
   BODY LOCK
========================================================== */

body.pkfgg-lock {
    overflow: hidden !important;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {

    .pkfgg-cols-4 {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .pkfgg-layout-editorial
    .pkfgg-item-featured {
        min-height: 430px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 760px) {

    .pkfgg-section {
        padding: 68px 16px;
    }

    .pkfgg-cols-2,
    .pkfgg-cols-3,
    .pkfgg-cols-4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .pkfgg-grid {
        gap: 12px;
    }

    .pkfgg-item {
        border-radius: 17px;
    }

    .pkfgg-layout-editorial
    .pkfgg-item-featured {
        grid-column: span 2;
        grid-row: auto;

        min-height: 360px;
    }

    .pkfgg-hover {
        opacity: 1;

        background:
            linear-gradient(
                180deg,
                transparent 55%,
                rgba(18,28,38,.56)
            );
    }

    .pkfgg-zoom {
        display: none;
    }

    .pkfgg-caption {
        left: 15px;
        right: 15px;
        bottom: 13px;

        font-size: 13px;
    }

    .pkfgg-lightbox {
        padding:
            70px
            14px
            25px;
    }

    .pkfgg-stage > img {
        max-height: 72vh;

        border-radius: 13px;
    }

    .pkfgg-nav {
        top: auto;
        bottom: -61px;

        width: 46px;
        height: 46px;

        transform: none;
    }

    .pkfgg-prev {
        left:
            calc(50% - 55px);
    }

    .pkfgg-next {
        right:
            calc(50% - 55px);
    }

    .pkfgg-close {
        top: 15px;
        right: 15px;

        width: 45px;
        height: 45px;
    }

    .pkfgg-meta {
        gap: 15px;

        margin-top: 12px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .pkfgg-cols-2,
    .pkfgg-cols-3,
    .pkfgg-cols-4 {
        grid-template-columns: 1fr;
    }

    .pkfgg-layout-editorial
    .pkfgg-item-featured {
        grid-column: span 1;

        min-height: auto;

        aspect-ratio: 4 / 3;
    }

}


/* ==========================================================
   PEKESIN GALERIE – UI FIX
   Kein Grün / neue Navigation / keine Bildtitel
========================================================== */


/* ----------------------------------------------------------
   GLOBALER BUTTON-STYLE DES THEMES KOMPLETT ENTFERNEN
---------------------------------------------------------- */

.pkfgg-item,
.pkfgg-nav,
.pkfgg-close {
    -webkit-appearance: none !important;
    appearance: none !important;

    outline: none !important;

    text-decoration: none !important;

    -webkit-tap-highlight-color: transparent !important;
}


/* ----------------------------------------------------------
   GALERIEKARTEN – KEINE GRÜNEN RÄNDER
---------------------------------------------------------- */

.pkfgg-item,
.pkfgg-item:hover,
.pkfgg-item:focus,
.pkfgg-item:focus-visible,
.pkfgg-item:active {
    border: 0 !important;

    outline: 0 !important;

    background: #e9ecef !important;

    color: inherit !important;

    box-shadow:
        0 16px 38px
        rgba(18,35,52,.08) !important;
}

.pkfgg-item:hover {
    transform: translateY(-4px);

    box-shadow:
        0 24px 52px
        rgba(18,35,52,.15) !important;
}


/* ----------------------------------------------------------
   BILDTITEL KOMPLETT AUSBLENDEN
---------------------------------------------------------- */

.pkfgg-caption,
.pkfgg-lightbox-caption {
    display: none !important;
}


/* Meta unten im Popup nur noch für Zähler */

.pkfgg-meta {
    justify-content: flex-end !important;
}


/* ----------------------------------------------------------
   PLUS IM GRID
---------------------------------------------------------- */

.pkfgg-zoom {
    width: 56px !important;
    height: 56px !important;

    border: 1px solid
        rgba(255,255,255,.75) !important;

    background:
        rgba(255,255,255,.94) !important;

    color: #2f4358 !important;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.18) !important;
}


/* ----------------------------------------------------------
   LIGHTBOX CLOSE BUTTON
---------------------------------------------------------- */

.pkfgg-close,
.pkfgg-close:hover,
.pkfgg-close:focus,
.pkfgg-close:focus-visible,
.pkfgg-close:active {

    position: fixed !important;

    top: 25px !important;
    right: 28px !important;

    width: 52px !important;
    height: 52px !important;

    padding: 0 !important;

    border:
        1px solid
        rgba(255,255,255,.18) !important;

    border-radius: 50% !important;

    background:
        rgba(255,255,255,.10) !important;

    color: transparent !important;

    font-size: 0 !important;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.15) !important;

    outline: none !important;

    cursor: pointer !important;

    transform: none !important;

    transition:
        background .22s ease,
        border-color .22s ease,
        transform .22s ease !important;

    z-index: 100 !important;
}


/* X selbst zeichnen */

.pkfgg-close::before,
.pkfgg-close::after {

    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 19px;
    height: 2px;

    border-radius: 10px;

    background: #ffffff;

    transform-origin: center;
}

.pkfgg-close::before {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

.pkfgg-close::after {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}

.pkfgg-close:hover {

    background:
        rgba(255,255,255,.18) !important;

    border-color:
        rgba(255,255,255,.32) !important;

    transform:
        scale(1.05) !important;
}


/* ----------------------------------------------------------
   PFEILE
---------------------------------------------------------- */

.pkfgg-nav,
.pkfgg-nav:hover,
.pkfgg-nav:focus,
.pkfgg-nav:focus-visible,
.pkfgg-nav:active {

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 56px !important;
    height: 56px !important;

    padding: 0 !important;

    border:
        1px solid
        rgba(255,255,255,.18) !important;

    border-radius: 50% !important;

    background:
        rgba(255,255,255,.10) !important;

    color: transparent !important;

    font-size: 0 !important;

    outline: none !important;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.16) !important;

    cursor: pointer !important;

    transition:
        background .22s ease,
        border-color .22s ease,
        transform .22s ease !important;
}


/* Pfeil grafisch zeichnen */

.pkfgg-nav::before {

    content: "";

    display: block;

    width: 11px;
    height: 11px;

    border-top:
        2px solid #ffffff;

    border-right:
        2px solid #ffffff;
}


/* Links */

.pkfgg-prev::before {

    transform:
        translateX(2px)
        rotate(-135deg);
}


/* Rechts */

.pkfgg-next::before {

    transform:
        translateX(-2px)
        rotate(45deg);
}


.pkfgg-nav:hover {

    background:
        rgba(255,255,255,.18) !important;

    border-color:
        rgba(255,255,255,.32) !important;
}


/* Position */

.pkfgg-prev {
    left: 18px !important;
}

.pkfgg-next {
    right: 18px !important;
}


/* ----------------------------------------------------------
   LIGHTBOX IMAGE
---------------------------------------------------------- */

.pkfgg-stage > img {

    border-radius: 18px !important;

    box-shadow:
        0 32px 85px
        rgba(0,0,0,.42) !important;
}


/* ----------------------------------------------------------
   BILDZÄHLER
---------------------------------------------------------- */

.pkfgg-counter {

    padding:
        7px
        11px;

    border-radius: 9px;

    background:
        rgba(255,255,255,.08);

    color:
        rgba(255,255,255,.75) !important;

    font-size: 13px !important;
}


/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */

@media (max-width:760px) {

    .pkfgg-close,
    .pkfgg-close:hover,
    .pkfgg-close:focus {

        top: 14px !important;
        right: 14px !important;

        width: 46px !important;
        height: 46px !important;
    }


    .pkfgg-nav,
    .pkfgg-nav:hover,
    .pkfgg-nav:focus {

        width: 48px !important;
        height: 48px !important;

        bottom: -62px !important;

        top: auto !important;
    }


    .pkfgg-prev {

        left:
            calc(50% - 57px) !important;
    }


    .pkfgg-next {

        right:
            calc(50% - 57px) !important;
    }


    /*
     * Auf Mobile auch keine eingeblendeten
     * Dateinamen / Captions.
     */

    .pkfgg-caption,
    .pkfgg-lightbox-caption {

        display: none !important;
    }

}

