/* ========== FLICKR GALLERY MODULE ========== */
/* Datei: flickr-gallery.css                    */
/* Einbinden im Typemill Theme            */
/* ============================================ */

.flickr-gallery {
    max-width: none;
    margin: 0;
}

.fg-masonry {
    display: flex;
    gap: 4px;
    align-items: flex-start;
}

.fg-masonry > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fg-item {
    position: relative;
    overflow: hidden;
    background-color: #111;
    margin-bottom: 4px;
    cursor: pointer;
}

.fg-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.fg-item:hover img {
    opacity: 0.85;
}

.fg-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 0.9rem;
}

/* ========== LIGHTBOX ========== */
.fg-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.96);
    z-index: 9000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.fg-lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.fg-close {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 9500;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.fg-close:hover {
    color: #fff;
}

.fg-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 60px 0 40px;
}

.fg-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
}

.fg-image-wrapper img {
    max-width: 90%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.fg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 2rem;
    cursor: pointer;
    padding: 20px 16px;
    transition: color 0.2s ease;
    z-index: 9100;
    user-select: none;
}

.fg-nav:hover {
    color: rgba(255, 255, 255, 0.8);
}

.fg-prev { left: 0; }
.fg-next { right: 0; }

/* Museum-style caption */
.fg-meta {
    width: 90%;
    max-width: 600px;
    margin-top: 28px;
    padding: 0;
    text-align: left;
}

.fg-title {
    font-size: 1.05rem;
    font-weight: 400;
    color: #e0e0e0;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    font-style: italic;
}

.fg-description {
    font-size: 0.82rem;
    color: #999;
    line-height: 1.5;
    margin-bottom: 10px;
}

.fg-details {
    font-size: 0.72rem;
    color: #666;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.8;
}

.fg-details .fg-separator {
    margin: 0 8px;
    color: #444;
}

.fg-counter {
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 1px;
    margin-top: 16px;
    text-transform: uppercase;
}

/* Mobile + Tablet (touch devices) */
@media (max-width: 1024px) {
    .fg-image-wrapper img {
        max-width: 100%;
        max-height: 80vh;
    }

    .fg-nav,
    .fg-close {
        display: none;
    }

    .fg-meta {
        width: 92%;
        margin-top: 20px;
    }

    .fg-lightbox-content {
        padding: 110px 0 30px;
    }
}

@media (max-width: 768px) {
    .fg-lightbox-content {
        padding: 110px 0 30px;
    }
}