/* Pizza Service Gallery Pagination v1.5.0
   Server-side pagination: only the current page's images are rendered/downloaded. */
.gallery-page-summary{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:.45rem;
  padding:.65rem .9rem;
  border:1px solid rgba(255,196,0,.35);
  border-radius:999px;
  background:#111;
  color:#d7d7d7;
  font-size:.88rem;
  white-space:nowrap;
}
.gallery-page-summary b{color:#ffc400;font-size:1rem}
.gallery-page-summary span{color:#a8a8a8}

.gallery-filters .gallery-filter{text-decoration:none}
.gallery-paged-grid{margin-bottom:1.25rem}

.gallery-pagination{
  display:grid;
  grid-template-columns:minmax(110px,auto) 1fr minmax(110px,auto);
  align-items:center;
  gap:.75rem;
  margin-top:1.4rem;
  padding-top:1.2rem;
  border-top:1px solid rgba(255,255,255,.09);
}
.gallery-page-numbers{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:.45rem;
}
.gallery-page{
  min-width:2.65rem;
  min-height:2.65rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.52rem .72rem;
  border:1px solid #343434;
  border-radius:12px;
  background:#151515;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  line-height:1;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
a.gallery-page:hover{
  background:#e5231f;
  border-color:#e5231f;
  color:#fff;
  transform:translateY(-1px);
}
.gallery-page.active{
  background:#ffc400;
  border-color:#ffc400;
  color:#090909;
  box-shadow:0 0 0 3px rgba(255,196,0,.12);
}
.gallery-page-nav{padding-inline:1rem;white-space:nowrap}
.gallery-page-nav:last-child{justify-self:end}
.gallery-page.disabled{opacity:.32;cursor:not-allowed}
.gallery-page-ellipsis{color:#777;padding:.4rem .1rem;font-weight:800}
.gallery-empty{
  padding:2rem 1rem;
  text-align:center;
  border:1px dashed #373737;
  border-radius:16px;
  color:#aaa;
  background:#111;
}

@media(max-width:760px){
  .gallery-heading{align-items:flex-start;gap:.85rem}
  .gallery-page-summary{align-self:flex-start}
  .gallery-pagination{grid-template-columns:1fr 1fr}
  .gallery-page-numbers{grid-column:1/-1;grid-row:1}
  .gallery-page-nav{grid-row:2}
  .gallery-page-nav:last-child{justify-self:stretch}
  .gallery-page-nav{width:100%}
}

@media(max-width:420px){
  .gallery-pagination{gap:.55rem}
  .gallery-page{min-width:2.45rem;min-height:2.45rem;padding:.48rem .6rem;border-radius:10px}
  .gallery-page-nav{font-size:.9rem}
  .gallery-page-summary{white-space:normal;flex-wrap:wrap}
}
