/* ZUJID & CO. — gallery safety + links carousel
   No empty frames, no broken-image icons, and a working link carousel.
   Portraits are real photographs at /assets/portraits/*.jpg.
   Until a photograph exists, the slot renders a designed monogram panel. */

:root {
  --zj-navy: #08263a;
  --zj-navy-2: #0c2b3f;
  --zj-gold: #b47b32;
  --zj-cream: #f6f2ea;
  --zj-line: rgba(8, 38, 58, 0.12);
}

.portrait-slide,
.bio-gallery figure,
.mp-portrait,
.partner-photo,
.bio-hero-photo {
  background-color: var(--zj-cream);
  background-image:
    radial-gradient(120% 90% at 20% 0%, rgba(180, 123, 50, 0.16), transparent 60%),
    linear-gradient(160deg, #08263a 0%, #0c2b3f 55%, #14384f 100%);
  background-size: cover;
  background-position: center top;
}

.portrait-slide img,
.bio-gallery img {
  width: 100%;
  height: 560px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.portrait-slide img.zj-img-failed,
.bio-gallery img.zj-img-failed {
  display: none;
}

.zj-mono {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 560px;
  width: 100%;
  color: #f6f2ea;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.zj-mono::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(246, 242, 234, 0.18);
  border-radius: 16px;
  pointer-events: none;
}

.zj-mono span {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(56px, 9vw, 92px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #e8c894;
}

.zj-mono small {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.72);
}

.zj-mono em {
  font-style: normal;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  max-width: 78%;
  line-height: 1.5;
  color: rgba(246, 242, 234, 0.6);
}

.mp-portrait,
.partner-photo,
.bio-hero-photo {
  background-image: url('/assets/portraits/photos/managing-partner.jpg'),
    radial-gradient(120% 90% at 20% 0%, rgba(180, 123, 50, 0.16), transparent 60%),
    linear-gradient(160deg, #08263a 0%, #0c2b3f 55%, #14384f 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
}

.mp-portrait::after,
.partner-photo::after,
.bio-hero-photo::after {
  content: "ZC";
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(48px, 7vw, 76px);
  letter-spacing: 0.04em;
  color: #e8c894;
  z-index: 1;
}

.mp-portrait.zj-has-photo::after,
.partner-photo.zj-has-photo::after,
.bio-hero-photo.zj-has-photo::after {
  content: none;
}

.zj-carousel {
  position: relative;
  margin-top: 30px;
}

.zj-carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.zj-carousel-head h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  color: #08263a;
}

.zj-carousel-head p {
  margin: 6px 0 0;
  color: #52636d;
  font-size: 14px;
  max-width: 46ch;
}

.zj-carousel-controls {
  display: flex;
  gap: 8px;
}

.zj-carousel-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(8, 38, 58, 0.12);
  background: #fff;
  color: #08263a;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.zj-carousel-controls button:hover,
.zj-carousel-controls button:focus-visible {
  background: #08263a;
  border-color: #08263a;
  color: #f6f2ea;
  outline: none;
}

.zj-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.zj-track::-webkit-scrollbar {
  display: none;
}

.zj-slide {
  scroll-snap-align: start;
  flex: 0 0 clamp(268px, 32%, 360px);
  background: #fff;
  border: 1px solid rgba(8, 38, 58, 0.12);
  border-radius: 20px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 208px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.zj-slide:hover,
.zj-slide:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(180, 123, 50, 0.45);
  box-shadow: 0 18px 44px rgba(16, 32, 43, 0.12);
  outline: none;
}

.zj-slide i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b47b32;
}

.zj-slide b {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: #08263a;
}

.zj-slide p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #52636d;
  flex: 1;
}

.zj-slide span {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #08263a;
  border-top: 1px solid rgba(8, 38, 58, 0.12);
  padding-top: 10px;
}

.zj-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.zj-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(8, 38, 58, 0.18);
  cursor: pointer;
}

.zj-dots button.active {
  background: #b47b32;
  width: 20px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .portrait-slide img,
  .zj-mono {
    height: 420px;
  }

  .zj-slide {
    flex: 0 0 84%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zj-track {
    scroll-behavior: auto;
  }

  .zj-slide {
    transition: none;
  }
}

/* Managing Partner panel — image element, monogram only as fallback */
.mp-portrait {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 520px;
  background-image: radial-gradient(120% 90% at 20% 0%, rgba(180, 123, 50, 0.16), transparent 60%),
    linear-gradient(160deg, #08263a 0%, #0c2b3f 55%, #14384f 100%);
}

.mp-portrait img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center 22%;
}

.mp-portrait img.zj-img-failed {
  display: none;
}

.mp-portrait::after {
  z-index: 1;
}
