:root {
  --weave-navy: #071c3a;
  --weave-navy-soft: #102b51;
  --weave-gold: #c9a24e;
  --weave-cream: #f7f4ee;
  --weave-ink: #172033;
}

.single-weave_catalog {
  background: var(--weave-cream);
}

.weave-catalog-shell {
  min-height: 100vh;
  padding: 42px 20px 72px;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 78, 0.13), transparent 30rem),
    var(--weave-cream);
  color: var(--weave-ink);
}

.weave-catalog-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.weave-catalog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--weave-navy);
  color: #fff;
  box-shadow: 0 18px 45px rgba(7, 28, 58, 0.15);
}

.weave-brand-name {
  margin: 0 0 12px;
  color: var(--weave-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.weave-catalog-title {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
}

.weave-catalog-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.weave-catalog-count,
.weave-share-button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  box-sizing: border-box;
}

.whc-site .weave-share-button { color: var(--weave-navy); }

.weave-share-button {
  border-color: var(--weave-gold);
  background: var(--weave-gold);
  color: var(--weave-navy);
  cursor: pointer;
}

.weave-share-button:hover,
.weave-share-button:focus-visible {
  filter: brightness(1.07);
}

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

.weave-catalog-card {
  display: block;
  overflow: hidden;
  align-self: start;
  border: 1px solid rgba(7, 28, 58, 0.08);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  box-shadow: 0 10px 30px rgba(7, 28, 58, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.weave-catalog-card:hover,
.weave-catalog-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(7, 28, 58, 0.13);
}

.weave-catalog-photo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

.weave-catalog-empty-public {
  padding: 70px 20px;
  border: 1px dashed rgba(7, 28, 58, 0.22);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.weave-catalog-footer-note {
  margin: 28px 0 0;
  color: #647084;
  font-size: 13px;
  text-align: center;
}

.weave-lightbox[hidden] {
  display: none;
}

.weave-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  padding: 56px 18px 22px;
  background: rgba(3, 12, 27, 0.95);
}

.weave-lightbox figure {
  display: flex;
  min-width: 0;
  max-height: calc(100vh - 84px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.weave-lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 116px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.weave-lightbox figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.weave-lightbox-close,
.weave-lightbox-nav {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.weave-lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 30px;
  line-height: 1;
}

.weave-lightbox-nav {
  font-size: 42px;
  line-height: 1;
}

.weave-lightbox-next {
  justify-self: end;
}

.weave-lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .weave-catalog-shell {
    padding: 18px 12px 46px;
  }

  .weave-catalog-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px;
    padding: 22px 20px;
    border-radius: 12px;
  }

  .weave-catalog-meta {
    width: 100%;
    justify-content: space-between;
  }

  .weave-public-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .weave-catalog-card {
    border-radius: 10px;
  }

  .weave-lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding-inline: 6px;
  }

  .weave-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 34px;
  }
}
