/* ============================================================
   NP Specialty Pins Modal / Carousel
   ============================================================ */

.spec-pin-teaser {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.spec-pin-teaser-inner {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.spec-pin-eyebrow {
  color: #6366F1;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.spec-pin-teaser h2 {
  color: #2c3e50;
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.spec-pin-teaser p {
  color: #4a5568;
  margin: 0;
  line-height: 1.6;
}

.spec-pin-open-btn {
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

.spec-pin-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.32);
}

.spec-pin-modal[hidden] {
  display: none;
}

.spec-pin-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.spec-pin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.spec-pin-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.spec-pin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.spec-pin-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #2c3e50;
}

.spec-pin-close-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #1f2937;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.spec-pin-close-btn:hover {
  background: #e2e8f0;
}

.spec-pin-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 12px;
  padding: 20px;
  overflow: auto;
}

.spec-pin-slide {
  margin: 0;
  text-align: center;
}

.spec-pin-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68vh;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.spec-pin-slide figcaption {
  margin-top: 12px;
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 600;
}

.spec-pin-nav {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 1.8rem;
  cursor: pointer;
}

.spec-pin-nav:hover {
  background: #6366F1;
  color: #ffffff;
}

.spec-pin-modal-footer {
  padding: 0 20px 18px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.spec-pin-preload {
  display: none;
}

@media (max-width: 768px) {
  .spec-pin-teaser {
    margin-top: 24px;
  }

  .spec-pin-teaser-inner {
    display: block;
    padding: 22px;
  }

  .spec-pin-open-btn {
    width: 100%;
    margin-top: 18px;
  }

  .spec-pin-modal-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .spec-pin-carousel {
    grid-template-columns: 48px 1fr 48px;
    gap: 6px;
    padding: 14px 10px;
  }

  .spec-pin-slide img {
    max-height: 72vh;
  }

  .spec-pin-nav {
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
  }
}

.spec-pin-slide {
  margin: 0;
  text-align: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pinch-zoom;
  max-height: 80vh;
}

.spec-pin-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.spec-pin-fullview {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4F46E5;
  text-decoration: none;
  background: #EEF2FF;
  border-radius: 999px;
}
.spec-pin-fullview:hover { background: #6366F1; color: #fff; }

@media (max-width: 768px) {
  .spec-pin-fullview {
    display: block;
    margin: 10px auto 0;
    width: max-content;
    padding: 8px 16px;
  }
}