/* ================================================================
   galerie.css – Styles für die Galerie-Seite
   ================================================================ */

/* ----------------------------------------------------------------
    Album-Karten (Übersicht)
-----------------------------------------------------------------*/

.ga-album-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: transform .22s, box-shadow .22s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .ga-album-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(241,91,0,.14);
    }

/* Cover-Bild */
.ga-album-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.ga-album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.ga-album-card:hover .ga-album-img {
    transform: scale(1.06);
}

.ga-album-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}

    .ga-album-overlay i {
        font-size: 2.5rem;
        color: #fff;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
    }

.ga-album-card:hover .ga-album-overlay {
    opacity: 1;
}

/* Medien-Zähler auf dem Cover */
.ga-album-counts {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

    .ga-album-counts span {
        background: rgba(0,0,0,.65);
        color: #fff;
        font-size: .72rem;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 20px;
        backdrop-filter: blur(4px);
    }

/* Body */
.ga-album-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ga-album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.ga-album-date {
    font-size: .75rem;
    font-weight: 600;
    color: #999;
}

.ga-album-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.ga-album-desc {
    font-size: .85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* ----------------------------------------------------------------
    Album-Detail: Medien-Grid
-----------------------------------------------------------------*/

.ga-media-item {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    cursor: pointer;
    transition: transform .22s, box-shadow .22s;
}

    .ga-media-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(241,91,0,.15);
    }

.ga-media-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.ga-media-item:hover .ga-media-img {
    transform: scale(1.04);
}

.ga-media-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.2);
    opacity: 0;
    transition: opacity .25s;
}

    .ga-media-icon i {
        font-size: 2rem;
        color: #fff;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
    }

.ga-media-item:hover .ga-media-icon {
    opacity: 1;
}

.ga-media-icon-video {
    opacity: .8;
    background: rgba(0,0,0,.35);
}

    .ga-media-icon-video i {
        font-size: 3rem;
        color: #fff;
    }

.ga-media-item:hover .ga-media-icon-video {
    opacity: 1;
}

/* ----------------------------------------------------------------
    YouTube-Embed-Karte
-----------------------------------------------------------------*/

.ga-youtube-card {
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
}

.ga-youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

    .ga-youtube-embed iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.ga-youtube-caption {
    padding: 12px 16px;
    font-size: .85rem;
    font-weight: 600;
    color: #ccc;
    background: #111;
}

/* ----------------------------------------------------------------
    Zurück-Button
-----------------------------------------------------------------*/

.ga-back-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: .85rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .2s;
}

    .ga-back-btn:hover {
        border-color: #F15B00;
        color: #F15B00;
        box-shadow: 0 3px 12px rgba(241,91,0,.15);
    }

/* ----------------------------------------------------------------
    Zähler (Inline im Detail-Header)
-----------------------------------------------------------------*/

.ga-album-counts-inline {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}

    .ga-album-counts-inline span {
        font-size: .82rem;
        font-weight: 600;
        color: #888;
    }

    .ga-album-counts-inline i {
        color: #F15B00;
    }

/* ----------------------------------------------------------------
    Responsive
-----------------------------------------------------------------*/

@media (max-width: 576px) {
    .ga-album-cover {
        height: 180px;
    }

    .ga-media-img {
        height: 160px;
    }

    .ga-album-body {
        padding: 14px 16px 18px;
    }
}
