/* ================================================
   IFRAME OVERLAY — Fullscreen embed (slides etc.)
   ================================================ */

.iframe-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.iframe-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.iframe-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: rgba(15, 15, 18, 0.92);
  flex-shrink: 0;
}

.iframe-overlay-label {
  font-family: var(--font-heading, 'Inter Tight', system-ui, sans-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-secondary, rgba(255, 255, 255, 0.85));
}

.iframe-overlay-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text-secondary, rgba(255, 255, 255, 0.85));
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.iframe-overlay-close:hover,
.iframe-overlay-close:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 1);
  outline: none;
}

.iframe-overlay-close svg {
  width: 14px;
  height: 14px;
}

.iframe-overlay-frame-wrap {
  flex: 1;
  position: relative;
  background: #000;
}

.iframe-overlay-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.iframe-overlay-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint, rgba(255, 255, 255, 0.5));
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.iframe-overlay-loading.is-hidden {
  opacity: 0;
}

@media (max-width: 720px) {
  .iframe-overlay-bar {
    padding: 10px 14px;
  }
  .iframe-overlay-label {
    font-size: 12px;
  }
}
