#overlay-panel {
    display: none;
    position: fixed;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10001;
    padding: 1rem;
  }
  
  body.overlay-open #overlay-panel {
    display: block;
  }
  
  .overlay-content {
    padding-right: 0.5em;
    /* Ikke max-height her – la overlay-panel styre høyden */
  }
  
  #close-overlay {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
  }
  
  #close-overlay:hover {
    color: #333;
  }
  
  
  /* 🔗 Delingsknapper – grid/flex */
  .share-container {
    position: relative;
  }
  
  .share-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 1em;
  }
  
  .share-flex-container a,
  .share-flex-container button {
    display: inline-block;
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 0.5em 0.75em;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    flex: 1 1 45%;
    text-align: center;
  }
  
  .share-flex-container a:hover,
  .share-flex-container button:hover {
    background: #ddd;
    cursor: pointer;
  }
  