/* --- Style für Bilderalben der Mitglieder (z.B. album_thomas-allerlei.html) --- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,body{
    width:100%;
    min-height:100%;
    background:#f4f6f8;
    font-family:Arial,sans-serif;
    overflow-x:hidden;
    padding:10px;
    margin:0;
}

body{
    display:flex;
    flex-direction:column;
    /* align-items:center; */
    align-items:stretch;
    position:relative;
}

.text-center{
  width:100%;
  text-align:center;
  margin:20px 0;
}

/* Titel */
.album-title{
    width:100%;
    text-align:center;
    font-size:clamp(1.8rem, 5vw, 2.2rem);
    font-weight:750;
    color:#222;
    margin:150px 0 20px 0;
}

.album-title-klein{
    width:100%;
    text-align:center;
    font-size:clamp(1.2rem, 3vw, 1.6rem);
    font-weight:450;
    color:#222;
    margin:0px 0 20px 0; 
}



/* Textbutton "nach oben" --- Anfang */
    .scroll-top{
    position:static;
    align-self:flex-end;
    margin-top:25px;
    margin-right:10px;
    color:red;
    text-decoration:none;
    font-size:18px;
    font-weight:bold;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.3s ease;
}

    .scroll-top.show{
        opacity:1;
        visibility:visible;
    }

    /* Nur Smartphone & Tablet */
    @media (min-width: 1025px){
        .scroll-top{
            display:none;
        }
    }

    html{
        scroll-behavior:smooth;
    }
/* Textbutton "nach oben" --- Ende */

/* Zurück Button */
.back-link{
    /*
    position:absolute;
    top:10px;
    left:10px;
	*/

    display:inline-block;
    padding:14px 24px;
    background:#fff;
    border-radius:10px;
    text-decoration:none;
    color:#222;
    font-size:20px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition:background 0.2s ease;
}

.back-link:hover{
    background:#eceff1;
}

/* Galerie */
.gallery{
    width:100%;
    max-width:100%;
    height: auto;
    display:grid;
    gap:1px;
    justify-items:center;
    align-items:center;
    margin-bottom:30px;
    
    /* Smartphone Hochkant */
    grid-template-columns:repeat(1,1fr);
}

/* Smartphone quer */
@media (min-width:600px){
    .gallery{
        grid-template-columns:repeat(2,1fr);
    }
}

/* Tablet */
@media (min-width:768px){
    .gallery{
        grid-template-columns:repeat(3,1fr);
    }
}

/* Kleiner Desktop */
@media (min-width:1024px){
    .gallery{
        grid-template-columns:repeat(4,1fr);
    }
}

/* Großer Desktop */
@media (min-width:1400px){
    .gallery{
        grid-template-columns:repeat(4,1fr);
    }
}

/* Bilder */
.gallery img{
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:3/2;
    object-fit:cover;
    object-position:center center;
    border-radius:4px;
    border:1px solid #a8a8a8;
    cursor:pointer;
    display:block;
    
    transition:
        transform .35s ease,
        opacity .35s ease;
}

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

/* Vollbild */
.lightbox{
    position:fixed;
    inset:0;
    width:100vw;
    height:100vh;
    background:#000;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999999;

    opacity:0;
    pointer-events:none;

    transition:opacity .35s ease;
}

.lightbox.active{
    opacity:1;
    pointer-events:auto;
}

/* Vollbild Bild */
.lightbox img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    object-position:center center;

    user-select:none;
    -webkit-user-drag:none;

    opacity:1;
    transform:scale(1);

    transition:
        opacity .45s ease,
        transform .45s ease;
}

/* Bildtitel im Vollbild */
.lightbox-caption{
    position:fixed;
    left:50%;
    bottom:40px;
    transform:translateX(-50%);

    padding:10px 20px;

    background:rgba(0,0,0,0.35);
    color:#fff;

    border-radius:8px;

    font-size:clamp(16px,2vw,24px);
    text-align:center;

    opacity:0;
    transition:opacity .4s ease;

    pointer-events:none;
    z-index:1000002;

    max-width:90%;
}

.lightbox-caption.show{
    opacity:1;
}


/* Navigation */
.controls{
    position:fixed;
    top:20px;
    right:20px;
    display:flex;
    gap:12px;
    z-index:1000000;

    opacity:1;

    transition:opacity .5s ease;
}

.controls.hide{
    opacity:0;
}

/* Zwei Button untereinander */
.top-buttons{
    position:absolute;
    top:10px;
    left:10px;

    display:flex;
    flex-direction:column;
    gap:10px;
}

/* Buttons */
.btn{
    width:56px;
    height:56px;
    border:none;
    border-radius:50%;
    background:rgba(255,0,0,0.78);
    color:#fff;
    font-size:28px;
    cursor:pointer;
    backdrop-filter:blur(10px);

    transition:
        background .25s ease,
        transform .25s ease;
}

.btn:hover{
    background:rgba(255,0,0,1);
    transform:scale(1.06);
}

/* Mobile */
@media (max-width:600px){

    .btn{
        width:46px;
        height:46px;
        font-size:22px;
    }

    .album-title{
        font-size:30px;
    }

    .back-link{
        font-size:16px;
        padding:10px 16px;
    }
}
