.zz-product-gallery-page .page-title,
.zz-product-gallery-page .breadcrumbs {
  display: none;
}

.zz-product-gallery-page .sidebar-container,
.zz-product-gallery-page aside {
  display: none !important;
}

.zz-product-gallery-page #main-content {
  max-width: 1400px !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.zz-product-gallery-page .site-content {
  width: 100% !important;
  max-width: none !important;
  grid-column: 1 / -1 !important;
}

.zz-gallery-product[hidden] {
  display: none !important;
}

.zz-product-gallery {
  --zz-ink: #111214;
  --zz-muted: #74777d;
  --zz-line: #e7e7e7;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 20px 96px;
  color: var(--zz-ink);
  font-family: Inter, Arial, sans-serif;
}

.zz-gallery-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 10vw, 118px) 24px;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle at 78% 22%, #34363c 0, #17181b 34%, #090a0c 74%);
  color: #fff;
  text-align: center;
}

.zz-gallery-hero::before {
  position: absolute;
  z-index: -1;
  top: -45%;
  left: 50%;
  width: min(760px, 88%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(255, 255, 255, .045);
  content: "";
  transform: translateX(-50%);
}

.zz-gallery-kicker {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.64);
  font-family: Lexend, Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.zz-gallery-hero h1 {
  margin: 0;
  color: #fff;
  font-family: Lexend, Inter, sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.zz-gallery-intro {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.7;
}

.zz-gallery-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 42px 0 70px;
}

.zz-gallery-categories a {
  padding: 10px 20px;
  border: 1px solid #d9dade;
  border-radius: 999px;
  color: #52545a;
  font-family: Lexend, Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.zz-gallery-categories a:hover,
.zz-gallery-categories a:focus,
.zz-gallery-categories a[aria-current="true"] {
  border-color: var(--zz-ink);
  color: var(--zz-ink);
  transform: translateY(-2px);
}

.zz-gallery-categories a[aria-current="true"] {
  background: var(--zz-ink);
  color: #fff;
}

.zz-gallery-product {
  margin-bottom: 80px;
  scroll-margin-top: 120px;
}

.zz-gallery-product:last-of-type {
  margin-bottom: 0;
}

.zz-gallery-product-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--zz-line);
}

.zz-gallery-product-head h2 {
  margin: 0 0 5px;
  color: var(--zz-ink);
  font-family: Lexend, Inter, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.zz-gallery-product-head p {
  margin: 0;
  color: var(--zz-muted);
  font-size: 15px;
}

.zz-gallery-product-head a {
  flex: none;
  color: var(--zz-ink);
  font-family: Lexend, Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}

.zz-gallery-product-head a:hover {
  color: #666;
}

.zz-gallery-product-head a span {
  display: inline-block;
  transition: transform .2s ease;
}

.zz-gallery-product-head a:hover span,
.zz-gallery-product-head a:focus span {
  transform: translateX(3px);
}

.zz-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.zz-gallery-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #f4f4f5;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .07);
  cursor: zoom-in;
  transform: translateZ(0);
}

.zz-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}

.zz-gallery-card.is-render img {
  background: #f6f6f6;
  object-fit: contain;
}

.zz-gallery-card:hover img {
  transform: scale(1.035);
}

.zz-gallery-card:focus-visible,
.zz-gallery-categories a:focus-visible,
.zz-gallery-product-head a:focus-visible,
.zz-gallery-close:focus-visible,
.zz-gallery-nav:focus-visible {
  outline: 3px solid rgba(17, 18, 20, .38);
  outline-offset: 4px;
}

.zz-gallery-close:focus-visible,
.zz-gallery-nav:focus-visible {
  outline-color: #fff;
}

.zz-gallery-zoom {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(13, 14, 16, .72);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.zz-gallery-lightbox {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
  background: #f5f5f7;
  overscroll-behavior: contain;
}

.zz-gallery-lightbox.is-open {
  display: flex;
}

.zz-gallery-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: #f5f5f7;
  cursor: zoom-out;
}

.zz-gallery-dialog {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100% - 48px));
  margin: 28px auto 56px;
  padding: 0 36px 42px;
  border: 1px solid rgba(0, 0, 0, .055);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .12);
}

.zz-gallery-dialog figcaption {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 104px;
  margin: 0 -2px;
  padding: 24px 124px 20px 2px;
  border-bottom: 1px solid #e8e8ed;
  background: rgba(255, 255, 255, .94);
  color: #111214;
  font-family: Lexend, Inter, sans-serif;
  backdrop-filter: blur(18px);
}

.zz-gallery-dialog figcaption #zzGalleryTitle {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 650;
  letter-spacing: -.04em;
}

.zz-gallery-count {
  color: #777a80;
  font-size: 14px;
  font-weight: 650;
}

.zz-gallery-lightbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 28px;
}

.zz-gallery-lightbox-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 22px;
  background: #f5f5f7;
  object-fit: cover;
  border: 1px solid #e6e7e9;
  box-shadow: none;
}

.zz-gallery-lightbox-grid img:first-child {
  padding: clamp(18px, 3vw, 48px);
  object-fit: contain;
}

.zz-gallery-close {
  position: fixed !important;
  z-index: 2147483001;
  top: 48px;
  right: max(48px, calc((100vw - 1460px) / 2 + 52px));
  display: inline-flex;
  width: auto;
  height: 60px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #111214;
  border-radius: 999px;
  background: #111214;
  color: #fff;
  cursor: pointer;
  font-family: Lexend, Inter, sans-serif;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .06em;
  line-height: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}

.zz-gallery-lightbox.is-open #zzGalleryClose {
  position: fixed !important;
  z-index: 2147483646 !important;
  top: 32px !important;
  right: 32px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  min-width: 190px;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 2px solid #111214 !important;
  border-radius: 999px !important;
  background: #111214 !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.zz-gallery-lightbox.is-open #zzGalleryClose:hover {
  background: #fff !important;
  color: #111214 !important;
}

.zz-gallery-close span {
  font-size: 24px;
  font-weight: 500;
}

.zz-gallery-close:hover {
  border-color: #111214;
  background: #fff;
  color: #111214;
}

@media (max-width: 1024px) {
  .zz-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zz-gallery-lightbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zz-gallery-close { right: 34px; }
}

@media (max-width: 640px) {
  .zz-product-gallery { padding: 18px 14px 70px; }
  .zz-gallery-hero { border-radius: 20px; }
  .zz-gallery-categories { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 30px 0 48px; padding-bottom: 6px; scrollbar-width: none; }
  .zz-gallery-categories::-webkit-scrollbar { display: none; }
  .zz-gallery-categories a { flex: none; }
  .zz-gallery-product { margin-bottom: 58px; }
  .zz-gallery-product-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .zz-gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .zz-gallery-lightbox { padding: 0; }
  .zz-gallery-dialog { width: calc(100% - 20px); margin: 10px auto 24px; padding: 0 12px 18px; border-radius: 22px; }
  .zz-gallery-dialog figcaption { min-height: 82px; padding: 18px 98px 16px 2px; }
  .zz-gallery-lightbox-grid { grid-template-columns: 1fr; gap: 14px; }
  .zz-gallery-lightbox-grid img { border-radius: 16px; }
  .zz-gallery-close { top: 22px; right: 22px; height: 50px; padding: 0 17px; font-size: 13px; }
  .zz-gallery-dialog figcaption { padding: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .zz-product-gallery *,
  .zz-product-gallery *::before,
  .zz-product-gallery *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
