/* =========================================================
   GALLERY PAGE STYLING
   ========================================================= */

/* --- Page Background --- */
.gallery-body {
    background: linear-gradient(to bottom, var(--bg-0), var(--bg-1));
    font-family: 'Georgia', 'Libre Baskerville', serif;
  }
  
  /* --- Page Container Layout --- */
  .gallery-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
  }
  
  /* =========================================================
     GALLERY ITEMS + ANIMATIONS
     ========================================================= */
  
  /* --- Gallery Item Wrapper (image + tag) --- */
  .gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    gap: 20px;
  }
  
  /* Alternate layout left/right */
  .gallery-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  /* --- Gallery Images --- */
  .gallery-image {
    position: relative;
    display: block;
    margin: 20px auto;
    max-width: 50%;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.8s ease, transform 1.8s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }
  
  /* Intersection trigger */
  .gallery-image.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* --- Gallery Tags --- */
  .gallery-tag {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-4);
    background: linear-gradient(135deg, var(--accent), var(--ink));
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-m);
    transition: opacity 1.8s ease, transform 1.8s ease, background 0.4s ease, color 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    white-space: nowrap;
  }
  
  /* Fade-in + lift tag */
  .gallery-tag.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* --- Responsive Tag Scaling --- */
  @media (max-width: 768px) {
    .gallery-tag {
      font-size: 12px;
      padding: 6px 12px;
      border-radius: 14px;
    }
  }
  
  
  /* =========================================================
     ART BANNER (BOTTOM FLOAT PROMPT)
     ========================================================= */
  
  /* --- Banner Container --- */
  .art-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(to bottom right, var(--panel-0), var(--panel-1));
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    font-family: 'Georgia', 'Libre Baskerville', serif;
    font-size: 14px;
    max-width: 90vw;
    flex-wrap: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s ease;
  }
  
  /* Trigger show animation */
  .art-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  
  /* --- Banner Text --- */
  .art-text {
    color: var(--ink);
    flex-grow: 1;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* --- Banner CTA Button --- */
  .art-btn {
    padding: 6px 12px;
    background-color: var(--ink);
    color: var(--text-4) !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .art-btn:hover {
    background-color: var(--ink-2);
    color: #fcfbf9;
  }
  
  /* --- Banner Close Icon --- */
  .art-close {
    cursor: pointer;
    margin-left: 8px;
    font-size: 16px;
    color: #777;
    flex-shrink: 0;
  }
  
  /* --- Banner Mobile Adjustments --- */
  @media (max-width: 600px) {
    .art-banner {
      bottom: 16px;
      padding: 4px 8px;
      gap: 10px;
      font-size: 12px;
      max-width: 75vw;
    }
  
    .art-text {
      max-width: 50vw;
      font-size: 12px;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  
    .art-btn {
      font-size: 10px;
      padding: 4px 8px;
    }
  
    .art-close {
      font-size: 14px;
    }
  }
  
  
  /* =========================================================
     ART MODAL
     ========================================================= */
  
  /* --- Overlay --- */
  #art-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    -webkit-overflow-scrolling: touch;
  }
  
  /* --- Modal Window --- */
  #art-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom right, var(--panel-0), var(--panel-1));
    border-radius: 14px;
    padding: 30px 25px;
    width: 90%;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    font-family: 'Georgia', 'Libre Baskerville', serif;
    animation: fadeInModal 0.4s ease-out;
    border: none;
    transition: transform 0.3s ease;
  }
  
  /* --- Modal Close Button --- */
  #art-modal .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #777;
    background: none;
    border: none;
    transition: color 0.3s ease;
  }
  
  #art-modal .close-btn:hover {
    color: var(--ink);
  }
  
  /* --- Modal Title --- */
  #art-modal #modal-message {
    font-family: 'Georgia', 'Libre Baskerville', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 2px solid var(--ink);
    padding-bottom: 6px;
    margin-bottom: 20px;
    display: inline-block;
    letter-spacing: 0.3px;
  }
  
  /* --- Modal Fade Animation --- */
  @keyframes fadeInModal {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
  }
  
  /* =========================================================
    Quotes
     ========================================================= */

  .quote-container {
    color: var(--ink); /* Deep blue for consistency */
    font-family: 'Georgia', 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    display: block;
    margin: 30px auto;
    padding: 10px 20px;
    max-width: 700px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 1.5s ease, visibility 1.5s ease;
    pointer-events: none;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 1.7;
  }
  
