/* Completed-orders page: CSS-only category scrolling and WooCommerce-style pagination. */
.an-work-page,
.an-work-page *,
.an-work-page *::before,
.an-work-page *::after {box-sizing:border-box}
.an-work-page {background:#ede7e4;color:var(--an-ink,#514e4b);padding:45px 0 65px;font-family:"Evolventa",Arial,sans-serif;font-weight:400}
.an-work-page__container {width:min(1300px,calc(100% - 48px));margin:0 auto}
.an-work-page h1,.an-work-page h2,.an-work-page p,.an-work-page figure {margin:0}
.an-work-page__header {text-align:center;margin-bottom:33px}
.an-work-page__header h1 {font-size:clamp(25px,3.1vw,41px);font-weight:500;line-height:1.25}
.an-work-page__header p {margin:13px auto 0;max-width:700px;font-size:15px;line-height:1.5}
/* Compact dynamic categories, without the JavaScript carousel. */
.an-work-page__categories {margin-bottom:37px}
.an-work-page__all-categories {display:flex;justify-content:center;margin-bottom:19px}
.an-work-page__all-link {display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:8px 28px;border:1px solid #ceb373;border-radius:25px;color:#7a673c;text-decoration:none;font-size:14px;font-weight:500;transition:background .2s,color .2s}
.an-work-page__all-link:hover,.an-work-page__all-link.is-active {background:#d3b972;color:#fff}
.an-work-page__category-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#ccb477 transparent}
.an-work-page__category-list {display:grid;grid-template-columns:repeat(var(--an-work-category-count,10),minmax(95px,1fr));gap:11px;min-width:0}
.an-work-page__category {display:block;min-width:0;text-decoration:none;color:#514e4b;outline-offset:3px;border-bottom:3px solid #d3b975;text-align:center}
.an-work-page__category:hover,.an-work-page__category.is-active {border-bottom-color:#98773a;color:#98773a}
.an-work-page__category-image,.an-work-page__category-placeholder {display:block;width:100%;aspect-ratio:3/4;object-fit:cover;background:#ede7e4}
.an-work-page__category-placeholder {display:grid;place-items:center;padding:5px;color:#87735b;font-size:12px}
.an-work-page__category-name {display:block;min-height:39px;padding:8px 2px 9px;font-size:11px;line-height:1.24;text-transform:uppercase;font-weight:500;overflow-wrap:anywhere}
.an-work-page__category:focus-visible,.an-work-page__all-link:focus-visible {outline:2px solid #a6833b;outline-offset:3px}
.an-work-page__list-head {display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:22px}
.an-work-page__list-head h2 {font-weight:500;font-size:clamp(23px,2.3vw,31px);line-height:1.3}
.an-work-page__list-head span {font-size:14px;color:#82766d;white-space:nowrap}
.an-work-page__grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px}
.an-work-page__item {min-width:0}
.an-work-page__photo-link {position:relative;display:block;aspect-ratio:3/4;padding:0;background:transparent;border-radius:0;overflow:hidden;text-decoration:none;cursor:zoom-in}
.an-work-page__photo {display:block;width:100%;height:100%;object-fit:cover;border-radius:0;background:transparent;transition:transform .2s ease}
.an-work-page__photo-link:hover .an-work-page__photo {transform:scale(1.025)}
.an-work-page__photo-link:focus-visible,.an-work-page__all-link:focus-visible {outline:2px solid #a6833b;outline-offset:3px}
.an-work-page__empty {padding:45px 20px;text-align:center;background:#fff;border-radius:16px;color:#766f68;line-height:1.5}
.an-work-page__pagination {margin-top:40px;text-align:center}
.an-work-page__pagination ul.page-numbers {display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;padding:0;margin:0;border:0}
.an-work-page__pagination ul.page-numbers li {border:0;margin:0;padding:0}
.an-work-page__pagination .page-numbers:not(ul) {
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:40px;
  height:40px;
  padding:2px 0 0;
  margin:0;
  border:1px solid #d8cbbf;
  border-radius:9px;
  background:#fff;
  color:#514e4b;
  text-decoration:none;
  text-align:center;
  font-size:16px;
  font-weight:500;
  line-height:1;
}
.an-work-page__pagination .page-numbers.current,.an-work-page__pagination .page-numbers:not(ul):hover {background:#cbb375;border-color:#cbb375;color:#fff}
@media(max-width:1024px) {
  .an-work-page__category-list {display:flex;gap:12px;width:max-content;min-width:100%;padding:0 1px 4px}
  .an-work-page__category {flex:0 0 120px;scroll-snap-align:start}
  .an-work-page__category-scroll {scroll-snap-type:x proximity}
  .an-work-page__grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 14px}
}
@media(max-width:767px) {
  .an-work-page {padding:29px 0 45px}
  .an-work-page__container {width:calc(100% - 26px)}
  .an-work-page__header {margin-bottom:23px}
  .an-work-page__header p {font-size:13px;margin-top:9px}
  .an-work-page__categories {margin-bottom:27px}
  .an-work-page__all-categories {margin-bottom:12px}
  .an-work-page__all-link {min-height:37px;font-size:13px}
  .an-work-page__category-list {gap:9px}
  .an-work-page__category {flex-basis:100px}
  .an-work-page__category-name {font-size:10px;min-height:35px;padding:7px 1px 8px}
  .an-work-page__grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .an-work-page__list-head {margin-bottom:14px;align-items:center}
  .an-work-page__list-head span {font-size:12px}
  .an-work-page__pagination {margin-top:27px}
  .an-work-page__pagination .page-numbers:not(ul) {width:36px;height:36px}
  .an-work-page__category-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .an-work-page__category-scroll::-webkit-scrollbar {
    display: none;
  }
}
@media(prefers-reduced-motion:reduce) {
  .an-work-page__photo,.an-work-page__all-link {transition:none}
}
