/*
Theme Name: Vorhang auf - Photoblog
Author: Dein Name
Description: Minimalistisches Photoblog-Theme mit einem mathematisch stabilen 7-Eck-Effekt.
Version: 1.5
*/

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

html, body {
    height: 100%;
    width: 100%;
    font-family: sans-serif;
    background-color: #ffffff;
    /* Aktiviert das harte, native Snapping auf der Y-Achse */
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

/* --- GLOBALER FOTO-HINTERGRUND --- */
.global-hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; 
    pointer-events: none;
}

/* --- SEKTIONEN FÜR DEN SNAP-EFFEKT --- */
.snap-section {
    width: 100vw;
    height: 100vh; /* Jede Stufe füllt exakt den Bildschirm */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background: transparent;
}

/* Sektion 3: Die eigentliche Frontpage mit der Fotostrecke */
.main-content-section {
    background: #ffffff;
    position: relative;
    z-index: 20; 
    min-height: 100vh; 
    height: auto; /* Erlaubt dem Content nach unten zu wachsen */
    padding: 4rem 2rem;
}

/* --- VORHANG & RAHMEN --- */
.curtain-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.3); /* 30% Transparenz */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10;
    
    /* Nutzt die SVG-Definition aus der index.php */
    clip-path: url(#clip-heptagon);
    
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity;
}

/* Der Rahmen-Wrapper zentriert das 7-Eck absolut quadratisch (80% der kleineren Bildschirmkante) */
.heptagon-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;  
    height: 80vmin;
    z-index: 11;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity;
}

.heptagon-frame {
    width: 100%;
    height: 100%;
    display: block;
}

/* JS-Koppelung: Verhindert die Klickblockade im Grid nach dem Ausblenden */
.curtain-overlay.hidden,
.heptagon-wrapper.hidden-wrapper {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* --- PHOTOGRID STYLE --- */
.blog-header {
    text-align: center;
    padding: 3rem 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item {
    display: block;
    background: #f5f5f5;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.photo-wrapper {
    margin-bottom: 1rem;
    overflow: hidden;
    background: #eee;
}