.op-model__section {
  width: 100%;
  background-color: #ffffff;
  padding: 24px 24px;
  box-sizing: border-box;
}

.op-model__container {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.op-model__sub-section {
  text-align: center;
  margin-bottom: 20px;
}

.op-model__subtitle {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.op-model__tagline {
  font-size: 0.95rem;
  color: #475569;
  margin: 0;
}

.op-model__title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 40px 0;
  letter-spacing: -0.01em;
  text-align: center;
}

.op-model__diagram-container {
  position: relative; /* Essential to anchor absolute children veil overlays */
  width: 100%;
  max-width: 1040px;
  /* background-color: #ffffff;
  border: 1px solid #e2e8f0; */
  border-radius: 8px;
  padding: 32px;
  /* box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02); */
  margin-bottom: 20px;
  box-sizing: border-box;
  cursor: zoom-in; /* Changes cursor to a magnifying lens upon frame entrance */
  overflow: hidden;
}

.op-model__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Micro-interaction layout response contracting image boundaries slightly on hover */
.op-model__diagram-container:hover .op-model__image {
  transform: scale(0.99);
}

/* Luminous Translucent Mask Veil */
.op-model__zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 35, 64, 0.02); /* Faint ambient tint background */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: 8px;
  transition:
    opacity 0.25s ease,
    background-color 0.25s ease;
  pointer-events: none; /* Passes click calculations straight to the parent panel triggers */
}

/* Floating Zoom Callout Action Hint Badge Element */
.op-model__zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #0c2340;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(12, 35, 64, 0.15);
  transform: translateY(8px);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy entry easing curves */
}

.op-model__zoom-icon {
  width: 18px;
  height: 18px;
}

/* Interactive Hover Activation Triggers */
.op-model__diagram-container:hover .op-model__zoom-overlay {
  opacity: 1;
  background-color: rgba(
    12,
    35,
    64,
    0.14
  ); /* Dims background chart matrix area cleanly */
}

.op-model__diagram-container:hover .op-model__zoom-badge {
  transform: translateY(0);
}

.op-model-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Forces modal display window over absolute navigation system bars */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.op-model-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 6, 17, 0.9);
  backdrop-filter: blur(10px); /* Frosted background filter effect */
  cursor: zoom-out;
}

.op-model-modal__close-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 3.5rem;
  font-weight: 200;
  cursor: pointer;
  z-index: 10010;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.op-model-modal__close-btn:hover {
  color: #ffffff;
  transform: scale(1.05);
}

.op-model-modal__wrapper {
  position: relative;
  width: 92%;
  max-width: 1340px;
  max-height: 85vh;
  z-index: 10000;

  /* 2. Acts as a nested flex box to ensure the inner img nodes cannot align left */
  display: flex;
  align-items: center;
  justify-content: center;

  transform: scale(0.94);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.op-model-modal__zoomed-img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain; /* Keeps aspect ratios clean without flattening */

  /* 3. The golden rule for auto-centering blocks */
  margin: 0 auto;

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  background-color: #ffffff; /* Ensures transparency grids don't bleed into the dark mask background */
}

/* ─── ACTIVE TRANSITION TRIGGER SYSTEM OVERRIDES ─── */
body.op-model-modal-open {
  overflow: hidden; /* Temporarily freezes background page scrolling fields while zoom lightbox window is active */
}

body.op-model-modal-open #zoomLightboxModal {
  opacity: 1;
  visibility: visible;
}

body.op-model-modal-open .op-model-modal__wrapper {
  transform: scale(1); /* Smooth elastic expansion pop trigger */
}

@media (max-width: 640px) {
  .op-model__diagram-container {
    padding: 16px;
    margin-bottom: 20px;
  }
  .op-model__actions {
    flex-direction: column;
    gap: 14px;
  }
  .op-model__btn {
    width: 100%;
    max-width: 340px;
  }
  .op-model-modal__close-btn {
    top: 16px;
    right: 20px;
    font-size: 2.5rem;
  }
  .op-model-modal__wrapper {
    width: 95%;
    max-height: 70vh;
  }
}
