#an-desktop-search-panel.an-ref-search-controls:not([hidden]) {
  grid-template-columns:minmax(0,1fr) max-content 44px !important;
  height:48px !important; min-height:48px !important;
}
#an-desktop-search-panel.an-ref-search-controls > button {
  height:44px !important; align-self:center;
}
#an-desktop-search-panel.an-ref-search-controls > .an-ref-search-submit {
  width:auto !important; min-width:78px !important; box-sizing:border-box !important;
  gap:6px; padding:0 8px !important;
  border-left:1px solid rgba(201,154,50,.25) !important;
  font-family:inherit !important; font-size:14px !important; font-weight:400 !important;
  line-height:1.2 !important; letter-spacing:normal !important; text-transform:none !important;
}
#an-desktop-search-panel.an-ref-search-controls > .an-ref-search-submit svg {
  width:16px !important; height:16px !important; flex:none;
}
#an-desktop-search-panel.an-ref-search-controls > .an-ref-search-submit[aria-busy="true"] svg {
  display:none;
}
#an-desktop-search-panel.an-ref-search-controls > .an-ref-search-submit[aria-busy="true"]::before {
  content:""; display:block; width:16px; height:16px; flex:none; box-sizing:border-box;
  border:1px solid rgba(201,154,50,.3); border-top-color:currentColor;
  border-radius:50%; animation:an-ref-search-spin .9s linear infinite;
}
@keyframes an-ref-search-spin {to {transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce) {
  #an-desktop-search-panel.an-ref-search-controls > .an-ref-search-submit[aria-busy="true"]::before {animation:none;}
}
#an-desktop-search-panel.an-ref-results-open:not([hidden]) {
  height:auto !important; grid-template-rows:44px auto; align-items:start;
}
#an-desktop-search-panel.an-ref-results-open > .an-search-field,
#an-desktop-search-panel.an-ref-results-open > .an-search-close {align-self:center;}
.an-ref-results[hidden] {display:none !important;}
.an-ref-results {
  grid-column:1/-1; box-sizing:border-box; width:100%; min-width:0;
  max-height:var(--an-ref-results-height,55svh); overflow-y:auto; overscroll-behavior:contain;
  margin:0; padding:0 10px 12px 0; color:#f2ece3; background:#100a16;
  font-family:inherit; font-size:14px; line-height:1.4;
}
.an-ref-results .an-ref-status {margin:6px 0 10px;padding:0;font:inherit;color:#f2ece3;}
.an-ref-results .an-ref-list {margin:0;padding:0;list-style:none;display:grid;gap:4px;}
.an-ref-results .an-ref-list > li {margin:0;padding:0;list-style:none;}
.an-ref-results a.an-ref-result {
  display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;
  min-height:76px;padding:8px 2px;box-sizing:border-box;text-decoration:none;
  color:#c99a32;border-top:1px solid rgba(201,154,50,.2);font:inherit;
}
.an-ref-result > :is(img,video,.an-ref-no-photo) {width:64px;height:64px;object-fit:contain;display:block;margin:0;}
.an-ref-result > .an-ref-no-photo {display:grid;place-items:center;color:#c99a32;}
.an-ref-result > span {display:grid;gap:3px;min-width:0;overflow-wrap:anywhere;}
.an-ref-result strong {font:inherit;color:#c99a32;}
.an-ref-result small {font-size:12px;color:#c2b7c7;}
.an-ref-result:focus-visible {outline:1px solid #c99a32;outline-offset:-1px;}
.an-ref-target:focus {outline:none;}

/* One quiet search surface under the existing header, shared by all devices. */
html.an-catalog-search-open {overflow:hidden!important;}
@media(min-width:783px) {
  /* Extend the search surface behind the unchanged header. On Home its
     transparent header otherwise exposes a strip of the black hero artwork. */
  html.an-catalog-search-open :is(.an-global-header,.gallery-header) {isolation:isolate;}
  html.an-catalog-search-open :is(.an-global-header,.gallery-header)::before {
    content:'';position:fixed;inset:0 0 auto;height:var(--an-catalog-header-cover,260px);
    background:#100a16;pointer-events:none;z-index:-1;
  }
}
html body #an-desktop-search-panel.an-catalog-panel:not([hidden]) {
  position:fixed!important;left:0!important;right:0!important;
  top:var(--an-catalog-panel-top,140px)!important;
  width:100%!important;max-width:none!important;
  height:var(--an-catalog-panel-height,calc(100dvh - 140px))!important;min-height:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 96px!important;
  grid-template-rows:auto 52px auto minmax(0,1fr)!important;align-content:start;align-items:start;
  column-gap:0!important;row-gap:0!important;
  margin:0!important;padding:32px max(24px,calc((100% - 680px)/2)) 32px!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;background:#100a16!important;
  color:#e8e0d6;font-family:var(--wp--preset--font-family--manrope,Manrope,sans-serif);
}
html body #an-desktop-search-panel.an-catalog-panel .an-catalog-panel-title {
  grid-column:1;grid-row:1;display:block;margin:0 0 26px;color:#c99a32;
  font:300 28px/1.4 var(--wp--preset--font-family--manrope,Manrope,sans-serif);
}
html body #an-desktop-search-panel.an-catalog-panel > .an-search-field {
  grid-column:1;grid-row:2;height:52px!important;padding:0 8px 0 0!important;
  font-size:19px!important;border-bottom:1px solid #c99a3270!important;border-radius:0!important;
}
html body #an-desktop-search-panel.an-catalog-panel > .an-ref-search-submit {
  grid-column:2;grid-row:2;height:52px!important;min-width:0!important;width:96px!important;
  border:0!important;border-bottom:1px solid #c99a3270!important;border-radius:0!important;
  font-size:14px!important;padding:0 4px!important;
}
html body #an-desktop-search-panel.an-catalog-panel > .an-search-close {
  grid-column:2;grid-row:1;justify-self:end;align-self:start;width:44px!important;height:44px!important;margin-top:-5px!important;
}
html body #an-desktop-search-panel.an-catalog-panel .an-catalog-hint {
  grid-column:1/-1;grid-row:3;margin:14px 0 24px;color:#bdb0c1;font-size:12px;line-height:1.7;
}
html body #an-desktop-search-panel.an-catalog-panel .an-ref-results {
  grid-column:1/-1;grid-row:4;align-self:stretch;min-height:0;max-height:none;
  padding:0 8px 20px 0;overflow-y:auto;scrollbar-width:thin;
}
.an-ref-results a.an-catalog-suggestion {
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:48px;padding:9px 0;border-bottom:1px solid #c99a3226;box-sizing:border-box;
  color:#c99a32;text-decoration:none;font-size:16px;line-height:1.5;
}
.an-catalog-suggestion small {font-size:12px;color:#bdb0c1;text-align:right;}
.an-catalog-suggestion:focus-visible {outline:1px solid #c99a32;outline-offset:-1px;}
.an-catalog-suggestion:hover {color:#f2ece3;}
@media(max-width:782px) {
  html body #an-desktop-search-panel.an-catalog-panel:not([hidden]) {padding:16px 24px 16px!important;}
  html body #an-desktop-search-panel.an-catalog-panel .an-catalog-panel-title {font-size:24px;margin-bottom:18px;}
  html body #an-desktop-search-panel.an-catalog-panel > .an-search-field {font-size:16px!important;}
  html body #an-desktop-search-panel.an-catalog-panel .an-catalog-hint {margin:10px 0 14px;font-size:11px;}
  .an-ref-results a.an-catalog-suggestion {font-size:15px;}
}

/* The dedicated results template retains the site's actual header and footer. */
html:has(body.an-catalog-view),body.an-catalog-view {scroll-snap-type:none!important;}
body.an-catalog-view {color:#e8e0d6;}
html body.an-catalog-view .an-catalog-main {
  box-sizing:border-box;width:calc(100% - 96px);max-width:1400px;margin:calc(16px + var(--an-catalog-clearance,0px)) auto 0!important;
  padding:8px 0 80px;min-height:max(0px,calc(100svh - var(--an-catalog-start,0px)));
  font-family:var(--wp--preset--font-family--manrope,Manrope,sans-serif);
}
.an-catalog-main :is(h1,h2,h3,p) {margin:0;padding:0;}
.an-catalog-main h1 {font-size:clamp(30px,3vw,42px);font-weight:300;line-height:1.3;color:#c99a32;}
.an-catalog-main h2 {font-size:18px;font-weight:400;line-height:1.4;color:#c99a32;margin-bottom:16px;}
.an-catalog-main h3 {font-size:19px;font-weight:400;line-height:1.4;color:#c99a32;}
.an-catalog-main .an-catalog-heading {max-width:680px;margin:0 auto 28px;text-align:center;}
.an-catalog-main .an-catalog-form {display:grid;grid-template-columns:minmax(0,1fr) auto;margin:16px 0 0;gap:0;text-align:left;}
.an-catalog-form input[type="search"] {
  appearance:none;box-sizing:border-box;min-width:0;width:100%;height:52px;margin:0;padding:10px 12px;
  color:#e8e0d6;background:transparent;border:0;border-bottom:1px solid #c99a3270;border-radius:0;
  font-family:inherit;font-size:16px;font-weight:400;line-height:1.5;
}
.an-catalog-form button {min-height:52px;padding:10px 18px;border:0;border-bottom:1px solid #c99a3270;background:transparent;color:#c99a32;font:inherit;cursor:pointer;}
.an-catalog-form :is(input,button):focus-visible,.an-catalog-main a:focus-visible {outline:1px solid #c99a32;outline-offset:3px;}
.an-catalog-form .an-ref-results {grid-column:1/-1;margin-top:12px;padding:12px;max-height:300px;}
.an-catalog-main .an-catalog-summary {color:#e8e0d6;font-size:15px;line-height:1.7;margin:12px 0;}
.an-catalog-summary small {color:#bdb0c1;font-size:13px;}
.an-catalog-summary a {color:#c99a32;display:inline-block;margin-right:16px;}
.an-catalog-collections {margin-bottom:28px;}
.an-catalog-collection-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
.an-catalog-collection-grid article {border-block:1px solid #c99a323b;padding:12px 0;}
.an-catalog-collection-grid article>p {font-size:12px;line-height:1.5;color:#bdb0c1;margin-bottom:6px;}
.an-catalog-collection-grid article>div {display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:10px;}
.an-catalog-collection-grid a {display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#c99a32;font-size:13px;text-decoration:none;}
@media(min-width:783px) {
  .an-catalog-collection-grid:has(>article:only-child) {grid-template-columns:1fr;}
  .an-catalog-collection-grid>article:only-child {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:24px;}
  .an-catalog-collection-grid>article:only-child>p {grid-column:1;grid-row:1;}
  .an-catalog-collection-grid>article:only-child>h3 {grid-column:1;grid-row:2;}
  .an-catalog-collection-grid>article:only-child>div {grid-column:2;grid-row:1/3;margin-top:0;}
}
.an-catalog-piece-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 32px;}
.an-catalog-piece {display:block;min-width:0;color:#e8e0d6;text-decoration:none;}
.an-catalog-photo {display:grid;place-items:center;aspect-ratio:4/3;background:#c99a3205;overflow:hidden;margin-bottom:18px;}
.an-catalog-photo :is(img,video) {display:block;width:100%;height:100%;max-height:300px;object-fit:contain;}
.an-catalog-photo>span {color:#c99a32;font:28px Georgia,serif;}
.an-catalog-piece>small {display:block;color:#bdb0c1;font-size:11px;line-height:1.5;margin-bottom:7px;}
.an-catalog-piece>p {font-size:14px;line-height:1.6;margin-top:8px;}
.an-catalog-ref {display:block;color:#bdb0c1;font-size:11px;margin-top:12px;line-height:1.5;}
.an-catalog-view-link {display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#c99a32;font-size:13px;}
.an-catalog-empty {text-align:center;font-size:16px;line-height:1.8;padding:24px 0 60px;}
.an-catalog-empty p+p {font-size:14px;color:#bdb0c1;margin-top:10px;}
.an-catalog-empty a {display:inline-block;color:#c99a32;min-height:44px;margin-top:24px;}
.an-catalog-sr,.an-catalog-skip:not(:focus) {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
.an-catalog-skip:focus {position:fixed;top:8px;left:8px;z-index:999999;background:#100a16;color:#c99a32;padding:12px;}
html body.an-catalog-view .an-catalog-main + footer {height:auto!important;min-height:0!important;margin-top:0!important;scroll-snap-align:none!important;}
@media(max-width:782px) {
  html body.an-catalog-view .an-catalog-main {width:calc(100% - 48px);margin-top:calc(24px + var(--an-catalog-clearance,0px))!important;padding:8px 0 56px;}
  .an-catalog-main .an-catalog-heading {margin-bottom:28px;}
  .an-catalog-collection-grid {grid-template-columns:1fr;gap:18px;}
  .an-catalog-piece-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px;}
  .an-catalog-main h3 {font-size:17px;}
  .an-catalog-collections {margin-bottom:36px;}
}
@media(max-width:380px) {.an-catalog-piece-grid {grid-template-columns:1fr;}}

/* All results form one vertical sequence; the footer stays outside it. */
.an-catalog-viewport-probe {position:absolute;left:0;top:0;width:0;height:100svh;visibility:hidden;pointer-events:none;}
html:has(body.an-catalog-view.an-catalog-slides) {
  scroll-snap-type:y mandatory!important;scroll-padding-top:var(--an-catalog-toolbar,0px)!important;
}
html:has(body.an-catalog-slides)::before {
  content:'';position:absolute;left:0;top:0;width:1px;height:1px;pointer-events:none;
  scroll-snap-align:start;scroll-snap-stop:always;
}
html body.an-catalog-view.an-catalog-slides .an-catalog-main {
  margin-top:var(--an-catalog-clearance,0px)!important;padding:0;min-height:0;
}
.an-catalog-slides .an-catalog-entry {box-sizing:border-box;display:flex;flex-direction:column;padding:8px 0 16px;}
.an-catalog-slides .an-catalog-entry-tall {scroll-snap-align:start;scroll-snap-stop:always;}
.an-catalog-slides .an-catalog-pieces {display:flex;flex-direction:column;flex:1;min-height:0;}
.an-catalog-slides :is(.an-catalog-piece-grid,.an-catalog-screen-grid) {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 32px;flex:1;min-height:0;
}
.an-catalog-slides .an-catalog-screen-grid {grid-template-rows:repeat(2,minmax(0,1fr));}
.an-catalog-slides .an-catalog-screen[data-rows="1"] .an-catalog-screen-grid {grid-template-rows:auto;align-content:center;}
.an-catalog-slides .an-catalog-piece {display:flex;flex-direction:column;min-width:0;min-height:0;}
.an-catalog-slides .an-catalog-photo {
  position:relative;display:block;flex:1;min-height:140px;aspect-ratio:auto;margin-bottom:8px;background:transparent;
}
.an-catalog-slides .an-catalog-screen[data-rows="1"] .an-catalog-photo {height:clamp(180px,32svh,300px);flex:none;}
.an-catalog-slides .an-catalog-photo :is(img,video) {
  position:absolute!important;inset:0;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;
}
.an-catalog-slides .an-catalog-photo>span {position:absolute;inset:0;display:grid;place-items:center;}
.an-catalog-slides .an-catalog-view-link {flex:none;}
.an-catalog-slides .an-catalog-screen {
  box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:20px;
  padding:20px 0 16px;scroll-snap-align:start;scroll-snap-stop:always;
}
.an-catalog-slides .an-catalog-screen:focus {outline:none;}
@media(min-width:783px) {
  /* A parent collection plus its three subtypes stays on a single row. */
  .an-catalog-entry .an-catalog-collection-grid:has(>article:nth-child(4)):not(:has(>article:nth-child(5))) {
    grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;
  }
}
@media(min-width:783px) and (max-height:900px) {
  /* Use laptop width for the opening controls; leave space for the first
     three photos and the down arrow. Following screens keep their layout. */
  .an-catalog-slides .an-catalog-entry {padding-bottom:8px;}
  .an-catalog-slides .an-catalog-entry>.an-catalog-next {margin-top:4px;}
  .an-catalog-slides .an-catalog-entry .an-catalog-heading {
    display:grid;grid-template-columns:auto minmax(280px,480px);align-items:center;
    justify-content:center;gap:12px 32px;width:100%;max-width:none;margin-bottom:8px;
  }
  .an-catalog-entry .an-catalog-heading h1 {font-size:30px;}
  .an-catalog-entry .an-catalog-heading .an-catalog-form {margin:0;}
  .an-catalog-entry .an-catalog-form :is(input,button) {height:44px;min-height:44px;}
  .an-catalog-entry .an-catalog-heading>.an-catalog-summary {grid-column:1/-1;}
  .an-catalog-entry .an-catalog-collections {margin-bottom:8px;}
  .an-catalog-entry .an-catalog-collections h2[hidden] {display:none;}
  .an-catalog-entry .an-catalog-collections:has(.an-catalog-collection-grid>article:only-child)>h2 {display:none;}
  .an-catalog-entry .an-catalog-collection-grid>article:only-child {padding:0;border-top:0;}
  .an-catalog-entry .an-catalog-collection-grid>article:only-child>p {display:none;}
  .an-catalog-entry .an-catalog-collection-grid>article:only-child>h3 {grid-row:1;}
  .an-catalog-entry .an-catalog-collection-grid>article:only-child>div {grid-row:1;}
  .an-catalog-entry .an-catalog-collection-details summary {
    display:flex;align-items:center;justify-content:space-between;min-height:44px;
    list-style:none;cursor:pointer;color:#c99a32;font-size:14px;border-bottom:1px solid #c99a323b;
  }
  .an-catalog-entry .an-catalog-collection-details summary::-webkit-details-marker {display:none;}
  .an-catalog-entry .an-catalog-collection-details summary::after {content:'⌄';font-size:20px;}
  .an-catalog-entry .an-catalog-collection-details[open] summary::after {content:'⌃';}
  .an-catalog-entry .an-catalog-collection-details summary:focus-visible {outline:1px solid #c99a32;outline-offset:3px;}
  .an-catalog-entry #an-pieces-title {font-size:14px;margin-bottom:8px;}
  .an-catalog-entry .an-catalog-piece-description {display:none;}
  .an-catalog-entry .an-catalog-piece>small {margin-bottom:4px;}
  .an-catalog-entry .an-catalog-piece>h3 {font-size:17px;}
  .an-catalog-entry .an-catalog-ref {margin-top:6px;}
}
.an-catalog-screen-logo {display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;align-self:center;flex:none;}
.an-catalog-screen-logo img {display:block;width:32px;height:40px;object-fit:contain;}
.an-catalog-slides .an-catalog-next {
  display:flex;align-items:center;justify-content:center;align-self:center;flex:none;width:44px;min-height:44px;
  border:0;background:transparent;color:#c99a32;padding:0;margin:8px 0 0;cursor:pointer;
}
.an-catalog-next svg {display:block;fill:none;stroke:currentColor;stroke-width:1.25;}
.an-catalog-slides :is(.an-catalog-next,.an-catalog-screen-logo):focus-visible {outline:1px solid #c99a32;outline-offset:3px;}
html body.an-catalog-view.an-catalog-slides .an-catalog-results-footer {scroll-snap-align:end!important;scroll-snap-stop:always;}
html body #an-desktop-search-panel.an-catalog-panel-short:not([hidden]) {
  grid-template-rows:auto 52px auto auto!important;overflow-y:auto;overscroll-behavior:contain;
}
html body #an-desktop-search-panel.an-catalog-panel-short .an-ref-results {overflow:visible;}
@media(max-width:782px) {
  html body.an-catalog-view.an-catalog-slides .an-catalog-main {width:calc(100% - 40px);}
  .an-catalog-slides .an-catalog-heading {width:100%;margin-bottom:14px;}
  .an-catalog-slides .an-catalog-heading h1 {font-size:28px;line-height:1.3;}
  .an-catalog-slides .an-catalog-form {margin-top:8px;}
  .an-catalog-slides .an-catalog-form :is(input,button) {height:44px;min-height:44px;}
  .an-catalog-slides .an-catalog-form button {padding-inline:10px;font-size:14px;}
  .an-catalog-slides .an-catalog-summary {font-size:13px;line-height:1.5;margin:8px 0 0;}
  .an-catalog-slides .an-catalog-summary small {font-size:11px;}
  .an-catalog-slides .an-catalog-collections {margin-bottom:12px;}
  .an-catalog-slides .an-catalog-collections h2 {font-size:14px;margin-bottom:4px;}
  .an-catalog-slides .an-catalog-collections h2[hidden] {display:none;}
  .an-catalog-collection-details summary {
    display:flex;align-items:center;justify-content:space-between;min-height:44px;
    list-style:none;cursor:pointer;color:#c99a32;font-size:14px;border-bottom:1px solid #c99a323b;
  }
  .an-catalog-collection-details summary::-webkit-details-marker {display:none;}
  .an-catalog-collection-details summary::after {content:'⌄';font-size:20px;}
  .an-catalog-collection-details[open] summary::after {content:'⌃';}
  .an-catalog-collection-details summary:focus-visible {outline:1px solid #c99a32;outline-offset:3px;}
  .an-catalog-slides .an-catalog-collection-grid {display:grid;grid-template-columns:1fr;gap:0;}
  .an-catalog-slides .an-catalog-collection-grid>article {
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;
  }
  .an-catalog-slides .an-catalog-collection-grid>article>p {display:none;}
  .an-catalog-slides .an-catalog-collection-grid>article>h3 {font-size:14px;line-height:1.4;}
  .an-catalog-slides .an-catalog-collection-grid>article>div {margin:0;gap:10px;flex-wrap:nowrap;}
  .an-catalog-slides .an-catalog-collection-grid a {font-size:11px;gap:4px;white-space:nowrap;}
  .an-catalog-slides #an-pieces-title {font-size:14px;margin-bottom:8px;}
  .an-catalog-slides :is(.an-catalog-piece-grid,.an-catalog-screen-grid) {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;}
  .an-catalog-slides .an-catalog-piece-description {display:none;}
  .an-catalog-slides .an-catalog-piece>small {font-size:11px;margin-bottom:4px;line-height:1.4;}
  .an-catalog-slides .an-catalog-piece>h3 {font-size:16px;line-height:1.4;overflow-wrap:anywhere;}
  .an-catalog-slides .an-catalog-ref {font-size:10px;line-height:1.5;margin-top:6px;overflow-wrap:anywhere;}
  .an-catalog-slides .an-catalog-view-link {font-size:12px;line-height:1.4;min-height:44px;}
  .an-catalog-slides .an-catalog-screen {gap:16px;}
}
