/*
 * FotoGrids - Collection Header (back button + breadcrumb trail)
 *
 * Stylesheet for the .fg-collection-header block emitted by the
 * Collection_Header feature module. Sits inside the gallery wrapper,
 * above .fotogrids-filters.
 *
 * Theming-friendly defaults:
 *   - Uses `currentColor` so themes can recolour just by setting `color:`
 *     on the parent.
 *   - No background, no padding by default - sits as text-like chrome.
 *   - No hard-coded font; inherits from the surrounding content.
 *   - Wraps cleanly on narrow viewports.
 */

.fg-collection-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 16px;
}

/* Back button */

.fg-back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
    line-height: 1.2;
    font-size: 0.9em;
    transition: opacity 120ms ease, background-color 120ms ease;
}

.fg-back-button:hover,
.fg-back-button:focus-visible {
    opacity: 0.85;
    text-decoration: none;
}

.fg-back-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.fg-back-button__icon {
    flex: 0 0 auto;
}

/* Breadcrumb trail */

.fg-breadcrumbs {
    font-size: 0.9em;
    line-height: 1.4;
    color: inherit;
}

.fg-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fg-breadcrumbs__item a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.fg-breadcrumbs__item a:hover,
.fg-breadcrumbs__item a:focus-visible {
    opacity: 0.85;
}

.fg-breadcrumbs__item--current {
    font-weight: 500;
    opacity: 0.85;
}

.fg-breadcrumbs__separator {
    display: inline-flex;
    align-items: center;
    opacity: 0.5;
    /* The user / Pro can override gap, opacity, or replace the SVG entirely
     * via the `fotogrids/breadcrumb/separator_svg` filter. */
}

.fg-breadcrumbs__separator svg {
    display: block;
}
