.fonte-gallery-categories,
.fonte-gallery-categories *,
.fonte-gallery-collections,
.fonte-gallery-collections * { box-sizing: border-box; }
.fonte-gallery-categories { position: relative; z-index: 1; margin-top: -2.5rem; padding: 6rem var(--fonte-public-inline-gutter) 0; background: var(--fonte-web-white); }
.fonte-gallery-categories__inner { width: 100%; max-width: var(--fonte-public-content-max-width); margin-inline: auto; }
.fonte-gallery-categories__state { margin: 0; color: var(--fonte-web-ink-soft); font-size: 1rem; font-weight: var(--fonte-font-weight-light); }
.fonte-gallery-categories__list { display: flex; gap: 0.625rem; flex-wrap: wrap; justify-content: flex-start; }
.fonte-gallery-category { --category-color: var(--fonte-web-ink); --roll: var(--category-color); --roll-c: var(--fonte-web-white); display: inline-flex; height: 2.875rem; padding-inline: 1.25rem; flex: 0 0 auto; align-items: center; gap: 0.5625rem; border: 0.09375rem solid var(--category-color); border-radius: var(--fonte-token-radius-pill); background: transparent; color: var(--category-color); cursor: pointer; font-family: var(--fonte-font-public); font-size: 0.875rem; font-weight: var(--fonte-font-weight-bold); white-space: nowrap; }
.fonte-gallery-category__icon { display: inline-flex; align-items: center; justify-content: center; }
.fonte-gallery-category__icon svg { width: 1.0625rem; height: 1.0625rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.fonte-gallery-category[aria-pressed="true"] { background: var(--category-color); color: var(--fonte-web-white); }
.fonte-gallery-collections { background: var(--fonte-web-white); }
.fonte-gallery-collections__state { max-width: var(--fonte-public-content-max-width); margin: 0 auto; padding: 4rem var(--fonte-public-inline-gutter) 5rem; color: var(--fonte-web-ink-soft); font-size: 1rem; font-weight: var(--fonte-font-weight-light); text-align: center; }
.fonte-gallery-collections__list { display: flex; flex-direction: column; }
.fonte-gallery-collection { padding: 4rem var(--fonte-public-inline-gutter) 4.5rem; background: var(--fonte-web-white); }
.fonte-gallery-collection[hidden] { display: none; }
.fonte-gallery-collection__inner { display: flex; width: 100%; max-width: var(--fonte-public-content-max-width); margin-inline: auto; flex-direction: column; gap: 1.5rem; }
.fonte-gallery-collection__header { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.fonte-gallery-collection__header h2 { margin: 0; color: var(--fonte-web-ink); font-family: var(--fonte-font-public-display); font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: var(--fonte-font-weight-regular); letter-spacing: -0.01em; line-height: 1.1; }
.fonte-gallery-collection__header span { color: var(--fonte-web-ink-soft); font-size: 0.9375rem; font-weight: var(--fonte-font-weight-light); }
.fonte-gallery-collection__grids { display: flex; flex-direction: column; gap: 1rem; }
.fonte-gallery-collection .fonte-gallery__grid { max-width: none; }
.fonte-gallery-construction { padding: 5.5rem var(--fonte-public-inline-gutter) 6.25rem; background: var(--fonte-web-mint-soft); }
.fonte-gallery-construction[hidden] { display: none; }
.fonte-gallery-construction__inner { display: flex; width: 100%; max-width: var(--fonte-public-content-max-width); margin-inline: auto; flex-direction: column; gap: 1.5rem; }
.fonte-gallery-construction__header { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; text-align: center; }
.fonte-gallery-construction__icon { display: inline-flex; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center; border: var(--fonte-border-width) solid var(--fonte-web-action); border-radius: var(--fonte-token-radius-pill); color: var(--fonte-web-action); }
.fonte-gallery-construction__icon svg { width: 1.625rem; height: 1.625rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.fonte-gallery-construction__header h2 { margin: 0; color: var(--fonte-web-ink); font-family: var(--fonte-font-public-display); font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: var(--fonte-font-weight-regular); letter-spacing: -0.01em; line-height: 1.1; }
.fonte-gallery-construction__header > span:last-child { color: var(--fonte-web-ink-soft); font-size: 0.9375rem; font-weight: var(--fonte-font-weight-light); }
.fonte-gallery-construction .fonte-gallery__grid { max-width: none; }
.fonte-gallery-construction__notice { display: flex; width: 100%; padding: 1.25rem 1.625rem; align-items: center; gap: 0.875rem; border: 0.125rem dashed var(--fonte-web-ink-16); border-radius: 1.25rem; background: var(--fonte-web-white); }
.fonte-gallery-construction__notice > span { width: 0.75rem; height: 0.75rem; flex: none; border-radius: var(--fonte-token-radius-pill); background: var(--fonte-web-ink); }
.fonte-gallery-construction__notice p { margin: 0; color: var(--fonte-web-ink-soft); font-size: 1.0625rem; font-weight: var(--fonte-font-weight-light); line-height: 1.5; }
.public-gallery-page .fonte-gallery-card__copy { opacity: 1; transform: none; }
.public-gallery-page .fonte-gallery-card__scrim { opacity: 0.7; }
.fonte-gallery__grid[data-count="1"] { grid-auto-rows: clamp(18rem, 40vw, 37.5rem); }
.fonte-gallery__grid[data-count="1"] .fonte-gallery-card:nth-child(1) { grid-area: 1 / 1 / 2 / 13; }
.fonte-gallery__grid[data-count="2"] { grid-auto-rows: clamp(15rem, 28vw, 30rem); }
.fonte-gallery__grid[data-count="2"] .fonte-gallery-card:nth-child(1) { grid-area: 1 / 1 / 2 / 7; }
.fonte-gallery__grid[data-count="2"] .fonte-gallery-card:nth-child(2) { grid-area: 1 / 7 / 2 / 13; }
.public-gallery-page .fonte-gallery__grid--overflow { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; }
.public-gallery-page .fonte-gallery__grid--overflow[data-count] .fonte-gallery-card:nth-child(n) { grid-area: auto; aspect-ratio: 1; }
@media (max-width: 47.5rem) {
    .public-gallery-page .fonte-page-hero { padding-block: 3.125rem; }
    .public-gallery-page .fonte-page-hero h1 { font-size: 1.875rem; }
    .public-gallery-page .fonte-page-hero__content > p { font-size: 1rem; line-height: 1.5; }
    .public-gallery-page > .fonte-gallery-categories { margin-top: 0; padding: 2.0625rem var(--fonte-public-inline-gutter) 1rem; overflow: hidden; }
    .fonte-gallery-categories__list { width: 100%; margin-inline: 0; padding-left: 0; flex-wrap: wrap; overflow: visible; }
    .fonte-gallery-categories__list::-webkit-scrollbar { display: none; }
    .fonte-gallery-categories__list::after { display: none; }
    .fonte-gallery-category { min-width: 0; max-width: 100%; height: auto !important; padding-block: 0.625rem !important; white-space: normal; overflow-wrap: anywhere; }
    .fonte-gallery-collection { padding-block: 1rem; }
    .fonte-gallery-collection.is-last-visible { padding-bottom: 3.125rem; }
    .fonte-gallery-collection:not([hidden]) ~ .fonte-gallery-collection:not([hidden]) { padding-top: 2rem; border-top: var(--fonte-border-width) solid var(--fonte-web-line); }
    .fonte-gallery-collection__header { align-items: flex-start; flex-direction: column; gap: 0.375rem; }
    .fonte-gallery-collection__header h2,
    .fonte-gallery-construction__header h2 { font-size: 1.875rem; }
    .fonte-gallery-collection__header span,
    .fonte-gallery-construction__header > span:last-child { font-size: 1rem; line-height: 1.5; }
    .fonte-gallery-collection__header span { display: inline-flex; min-height: 1.75rem; padding-inline: 0.75rem; align-items: center; border-radius: var(--fonte-token-radius-pill); background: var(--fonte-web-rose-soft); color: var(--fonte-web-ink); }
    .fonte-gallery-collection__grids { width: calc(100% + (2 * var(--fonte-public-inline-gutter))); margin-inline: calc(-1 * var(--fonte-public-inline-gutter)); padding-left: var(--fonte-public-inline-gutter); flex-direction: row; gap: 0.875rem; overflow-x: auto; overflow-y: hidden; scroll-padding-inline: var(--fonte-public-inline-gutter); scroll-snap-type: inline mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
    .fonte-gallery-collection__grids::-webkit-scrollbar { display: none; }
    .fonte-gallery-collection__grids::after { display: block; min-width: calc(var(--fonte-public-inline-gutter) - 0.875rem); height: 1px; flex: 0 0 calc(var(--fonte-public-inline-gutter) - 0.875rem); content: ""; }
    .fonte-gallery-construction { padding-block: 3.125rem; }
    .fonte-gallery-construction__notice { padding: 1rem 1.125rem; align-items: flex-start; }
    .fonte-gallery-construction__notice p { font-size: 1rem; }
    .public-gallery-page .fonte-gallery-collection__grids > .fonte-gallery__grid { display: contents; }
    .public-gallery-page .fonte-gallery-collection__grids > .fonte-gallery__grid::after { display: none; }
    .public-gallery-page .fonte-gallery__grid[data-count] .fonte-gallery-card:nth-child(n) { height: auto; flex: 0 0 75%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
}
@media (max-width: 35rem) {
    .public-gallery-page .fonte-page-hero__actions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 0.625rem; }
    .public-gallery-page .fonte-page-hero__actions .fonte-button { width: 100%; min-width: 0; gap: 0.375rem; white-space: nowrap; }
}

@media (min-width: 47.501rem) {
    .public-gallery-page .fonte-gallery__grid .fonte-gallery-card:nth-child(n + 8) { display: none; }
}

@media (max-width: 50rem) {
    .fonte-gallery-categories__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
    .fonte-gallery-category { width: 100%; min-width: 0; height: auto; min-height: 2.875rem; padding: 0.625rem 0.75rem; justify-content: center; gap: 0.5rem; white-space: normal; overflow-wrap: anywhere; }
    .fonte-gallery-category__icon { flex-shrink: 0; line-height: 1; }
}
@media (max-width: 40rem) {
    .fonte-gallery-categories__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (hover: none), (max-width: 75rem) {
    .fonte-gallery-category:hover { color: var(--category-color) !important; }
    .fonte-gallery-category[aria-pressed="true"]:hover { color: var(--fonte-web-white) !important; }
}

.fonte-gallery-collections__list[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.fonte-gallery-load-retry { display: block; margin-top: 1rem; padding: 0.75rem 1rem; border: var(--fonte-border-width) solid var(--fonte-web-line); border-radius: var(--fonte-token-radius-pill); background: transparent; color: var(--fonte-web-ink); font: inherit; cursor: pointer; }
.fonte-gallery-load-retry[hidden] { display: none; }

@media (min-width: 47.501rem) and (max-width: 75rem) {
    .public-gallery-page .fonte-gallery__grid:is([data-count="5"], [data-count="6"], [data-count="7"]) { grid-template-rows: repeat(4, 6.25rem) repeat(3, 5rem); }
}
@media (min-width: 47.501rem) and (max-width: 53.75rem) {
    .public-gallery-page .fonte-gallery__grid:is([data-count="5"], [data-count="6"], [data-count="7"]) { grid-template-rows: repeat(4, 5rem) repeat(3, 4rem); }
}
