
/**
 * =========================================================
 * 📜 GUNK MAPS: PARCHMENT MODAL STYLES
 * =========================================================
 */

 #mobile-modal-overlay {
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px); 
    z-index: 2000; 
    display: none; 
    align-items: flex-end; 
    justify-content: center;
    transition: opacity 0.3s ease;
  }
  
  #mobile-modal {
    width: 100vw; 
    height: 75vh; 
    background-color: var(--parchment);
    /* Subtle parchment texture */
    background-image: radial-gradient(#dcdbb4 0.5px, transparent 0.5px);
    background-size: 10px 10px;
    border-radius: 24px 24px 0 0; 
    display: flex; 
    flex-direction: column;
    overflow: hidden; 
    border-top: 4px solid var(--accent-gold);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    /* Animation for sliding up */
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  
  .modal-header {
    padding: 16px 24px; 
    border-bottom: 2px solid rgba(74, 85, 104, 0.1);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    background: rgba(255, 215, 0, 0.05);
  }
  
  #modal-title {
    margin: 0; 
    font-family: "Georgia", serif;
    color: #2d3748; 
    font-size: 18px; 
    font-weight: 800;
    text-transform: uppercase; 
    letter-spacing: 1px;
  }
  
  .close-btn {
    border: 2px solid #2d3748; 
    background: #2d3748; 
    color: var(--parchment) !important;
    width: 34px; 
    height: 34px; 
    border-radius: 50%;
    font-size: 22px; 
    font-weight: bold;
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .close-btn:active {
    transform: scale(0.9);
  }
  
  .modal-body {
    padding: 24px; 
    overflow-y: auto; 
    flex: 1;
    color: #2d3748; 
    line-height: 1.6; 
    font-size: 17px;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Image & Content Styling */
  .content-text {
    margin-bottom: 1.2em;
  }
  
  .content-img {
    width: 100%; 
    border-radius: 8px; 
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: block;
  }
  
  hr {
    border: 0;
    border-top: 1px solid rgba(74, 85, 104, 0.2);
    margin: 20px 0;
  }
  
  /* Desktop Adjustments */
  @media (min-width: 600px) {
    #mobile-modal-overlay { 
      align-items: center; 
      padding: 20px; 
    }
    #mobile-modal { 
      width: 450px; 
      height: auto; 
      max-height: 80vh; 
      border-radius: 12px; 
      border: 3px solid var(--accent-gold);
      animation: fadeIn 0.3s ease;
    }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }