/* ==========================================
   Claudia & Alex - Hochzeitsgalerie
   style.css
========================================== */

:root{

    --primary:#38c6c2;
    --secondary:#f7b787;
    --background:#f7f9fb;
    --card:#ffffff;
    --text:#444;
    --headline:#2c2c2c;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --radius:18px;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:Arial, Helvetica, sans-serif;
    background:var(--background);
    color:var(--text);
    line-height:1.7;

}


/* ==========================================
                HEADER
========================================== */

header{

    height:420px;

    background-image:
        linear-gradient(rgba(0,0,0,.35),
        rgba(0,0,0,.35)),
        url("../img/header.jpg");

    background-position:center;
    background-size:cover;

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

    text-align:center;

}

.header-overlay{

    color:white;

}

.header-overlay h1{

    font-size:4rem;

    letter-spacing:2px;

    margin-bottom:15px;

}

.header-overlay p{

    font-size:1.3rem;

}


/* ==========================================
                MAIN
========================================== */

main{

    max-width:1200px;

    margin:auto;

    padding:50px 20px;

}

section{

    margin-bottom:80px;

}

h2{

    text-align:center;

    color:var(--headline);

    margin-bottom:35px;

    font-size:2rem;

}


/* ==========================================
                SLIDER
========================================== */

.slider{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:25px;

}

.image-container{
	position:relative;
	
    width:100%;
    max-width:1000px;
    height:650px;

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

    background:#fafafa;
	padding:20px;
    border-radius:var(--radius);
    overflow:hidden;

    box-shadow:var(--shadow);
}

.image-container img{
    width:auto;
    height:auto;

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

    object-fit:contain;

    transition:opacity .8s ease;
}


/* ==========================================
                BUTTONS
========================================== */

.button{

    display:inline-block;

    background:var(--primary);

    color:white;

    text-decoration:none;

    padding:14px 28px;

    border-radius:50px;

    transition:.3s;

    font-weight:bold;

}

.button:hover{

    background:var(--secondary);

    transform:translateY(-2px);

}


/* ==========================================
            GALLERY CONTROLS
========================================== */

.gallery-controls{

    margin-top:25px;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:30px;

    flex-wrap:wrap;

}

#imageCounter{

    font-size:1rem;

    font-weight:bold;

}


/* ==========================================
                PFEILE
========================================== */

#prevBtn,
#nextBtn{

    position:absolute;

    top:50%;
    transform:translateY(-50%);

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:rgba(255,255,255,.35);
    backdrop-filter:blur(5px);

    cursor:pointer;

    font-size:28px;

    color:#444;

    box-shadow:var(--shadow);

    transition:.3s;

    z-index:20;

}

#prevBtn{

    left:65px;

}

#nextBtn{

    right:65px;

}

#prevBtn:hover,
#nextBtn:hover{

    background:var(--primary);
    color:white;

}


/* ==========================================
                DOTS
========================================== */

.dots{

    display:flex;

    justify-content:center;

    gap:12px;

    margin-top:35px;

}

.dot{

    width:14px;
    height:14px;

    border-radius:50%;

    background:#cfcfcf;

    cursor:pointer;

    transition:.3s;

}

.dot.active{

    background:var(--primary);

}


/* ==========================================
                INFO
========================================== */

.info{

    background:white;

    border-radius:var(--radius);

    padding:40px;

    box-shadow:var(--shadow);

    text-align:center;

}


/* ==========================================
            DOWNLOADS
========================================== */

.download-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

}

.download-card{

    background:var(--card);

    padding:30px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    text-align:center;

    transition:.3s;

}

.download-card:hover{

    transform:translateY(-5px);

}

.download-card h3{

    margin-bottom:20px;

}


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

#lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.9);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.lightbox-content{

    position:relative;

    max-width:90%;

    max-height:90%;

    text-align:center;

}

.lightbox-content img{

    max-width:100%;

    max-height:80vh;

    border-radius:15px;

}

#closeLightbox{

    position:absolute;

    top:-55px;

    right:0;

    border:none;

    background:none;

    color:white;

    font-size:45px;

    cursor:pointer;

}

#lightboxDownload{

    margin-top:25px;

}


/* ==========================================
                RESPONSIVE
========================================== */

@media (max-width:900px){

    .header-overlay h1{
        font-size:2.7rem;
    }

    .image-container{
        height:500px;
    }

    .slider{
        gap:10px;
    }

    #prevBtn,
    #nextBtn{
        width:50px;
        height:50px;
    }

}

@media (max-width:650px){

    header{
        height:280px;
    }

    .image-container{
        height:320px;
    }

    .header-overlay h1{
        font-size:2rem;
    }

    .header-overlay p{
        font-size:1rem;
    }

    .gallery-controls{
        flex-direction:column;
    }

    #prevBtn,
    #nextBtn{
        width:45px;
        height:45px;
        font-size:20px;
    }

    .info{
        padding:25px;
    }

}