/* =========================================
   EVENT PHOTO SHOP – ÖFFENTLICHE GALERIE
   ========================================= */

   .eps-public-gallery {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.eps-public-gallery h2 {
    margin-bottom: 25px;
}


/* =========================================
   PAKETAUSWAHL
   ========================================= */

.eps-package-selection {
    margin-bottom: 25px;
}

.eps-package-selection h3 {
    margin-bottom: 15px;
}

.eps-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eps-package-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

.eps-package-option:hover {
    border-color: #888;
}

.eps-package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.eps-package-option:has(input[type="radio"]:checked) {
    border-color: #333;
    background: #f0f0f0;
}

.eps-package-name {
    font-weight: 600;
}

.eps-package-images {
    font-size: 14px;
}

.eps-package-price {
    font-weight: 600;
}


/* =========================================
   AUSWAHLZÄHLER
   ========================================= */

.eps-selection-counter {
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 16px;
}


/* =========================================
   GALERIE-RASTER
   ========================================= */

.eps-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}


/* =========================================
   GALERIE-EINZELBILD
   ========================================= */

.eps-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #eee;
    border: 3px solid transparent;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.eps-gallery-item label {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.eps-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}


/* =========================================
   NORMALE CHECKBOX AUSBLENDEN
   ========================================= */

.eps-image-checkbox {
    display: none !important;
}


/* =========================================
   HÄKCHEN
   ========================================= */

.eps-image-check {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;

    width: 32px;
    height: 32px;

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

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: transparent;

    font-size: 20px;
    font-weight: bold;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================
   AUSGEWÄHLTES BILD
   ========================================= */

.eps-gallery-item.eps-selected {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.eps-gallery-item.eps-selected .eps-image-check {
    background: #000;
    color: #fff;
    transform: scale(1.05);
}


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

.eps-gallery-item:hover img {
    transform: scale(1.03);
}


/* =========================================
   LIMIT-MELDUNG
   ========================================= */

#eps-limit-message {
    margin-top: 15px;
    padding: 12px 16px;

    background: #f8d7da;
    color: #842029;

    border: 1px solid #f5c2c7;
    border-radius: 6px;

    font-weight: 600;
}


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

@media (max-width: 900px) {

    .eps-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================================
   SMARTPHONE
   ========================================= */

@media (max-width: 600px) {

    .eps-public-gallery {
        padding: 10px;
    }

    .eps-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .eps-image-check {
        width: 28px;
        height: 28px;
        font-size: 18px;
        top: 7px;
        right: 7px;
    }

    .eps-packages {
        flex-direction: column;
    }

    .eps-package-option {
        width: 100%;
        box-sizing: border-box;
    }

}


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

   #eps-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;

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

#eps-lightbox.eps-lightbox-open {
    display: flex;
}

.eps-lightbox-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.92);
}

.eps-lightbox-image {
    position: relative;
    z-index: 2;

    max-width: 96vw;
    max-height: 94vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 4px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5);
}


/* Schließen */

.eps-lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    z-index: 5;

    width: 45px;
    height: 45px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: #000;

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

    cursor: pointer;
}


/* Zurück */

.eps-lightbox-prev,
.eps-lightbox-next {
    position: absolute;

    top: 50%;

    z-index: 5;

    transform: translateY(-50%);

    width: 50px;
    height: 70px;

    border: 0;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.85);

    color: #000;

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

    cursor: pointer;
}

.eps-lightbox-prev {
    left: 20px;
}

.eps-lightbox-next {
    right: 20px;
}


/* Hover */

.eps-lightbox-close:hover,
.eps-lightbox-prev:hover,
.eps-lightbox-next:hover {
    background: #fff;
}


/* Seite während Lightbox nicht scrollen */

body.eps-lightbox-active {
    overflow: hidden;
}


/* Smartphone */

@media (max-width: 600px) {

    .eps-lightbox-image {
        max-width: 96vw;
        max-height: 82vh;
    }

    .eps-lightbox-close {
        top: 10px;
        right: 10px;

        width: 40px;
        height: 40px;

        font-size: 28px;
    }

    .eps-lightbox-prev,
    .eps-lightbox-next {
        width: 40px;
        height: 55px;

        font-size: 38px;
    }

    .eps-lightbox-prev {
        left: 8px;
    }

    .eps-lightbox-next {
        right: 8px;
    }

}

    /* Radio-Punkte der Paketauswahl komplett ausblenden */
.eps-package-option input[type="radio"] {
    display: none !important;
}