/*
    ====================
    FOTO-GALERIE (Masonry-Raster)
    ====================
    Ergänzt style.css nur um Galerie-spezifische Regeln.
    Nutzt die bestehenden CSS-Variablen aus style.css (--accent-color etc.)
*/

.photo-gallery-breakout {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 50px;
    margin-bottom: 50px;
}

.photo-grid-masonry {
    columns: 4 280px;
    column-gap: 28px;
    padding: 0 60px;
}

@media (max-width: 900px) {
    .photo-grid-masonry {
        columns: 2 200px;
    }
}

.photo-tile {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    break-inside: avoid;
    margin-bottom: 28px;
}

.photo-tile img {
    cursor: pointer;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.photo-tile:hover img {
    transform: scale(1.06);
}

/*
    ====================
    FOTO-LIGHTBOX (eigenständig, nicht der Homepage-Lightbox)
    ====================
*/

#photoLightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 30px 20px;
}

#photoLightbox.active {
    display: flex;
}

.photo-lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 92vw;
    max-height: 90vh;
}

#photoLightboxImg {
    max-width: 90vw;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.photo-lightbox-close {
    position: absolute;
    top: 22px;
    right: 30px;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 300;
}

.photo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.photo-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.photo-lightbox-prev { left: 20px; }
.photo-lightbox-next { right: 20px; }

/*
    ====================
    GRÖSSERER TITEL & TEXT (nur auf dieser Seite, da gallery.css
    nur hier eingebunden ist)
    ====================
*/

.subpage-hero .subpage-title {
    font-size: clamp(3rem, 8vw, 6rem);
}

.subpage-content > p:first-of-type {
    font-size: 1.4rem;
    max-width: 70ch;
}

/*
    ====================
    ZURÜCK-LINK LINKSBÜNDIG (nur auf dieser Seite)
    ====================
*/

.subpage-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subpage-back {
    align-self: flex-start;
}

/*
    ====================
    QUOTE-BALKEN (trennt die Galerie in der Mitte)
    ====================
*/

.photo-gallery-quote-bar {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--primary-bg);
    color: var(--secondary-bg);
    text-align: center;
    padding: 4rem 5vw;
}

.photo-gallery-quote-bar p {
    max-width: 60ch;
    margin: 0 auto;
    font-family: 'Young Serif', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.4;
}
