/* projects-mobile.css */
@media (max-width: 968px) {
  .deck-section, .deck-section * {
    font-family: 'Cairo', sans-serif !important;
  }

  .deck-section {
    padding-bottom: 4rem !important;
    background: #f8fafc !important; /* Light modern background */
  }

  /* Completely different layout: Bento Grid / Mosaic! */
  .deck {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding: 1rem !important;
    height: auto !important;
    overflow: visible !important;
  }

  .deck__card {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #0f172a !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
    
    /* Reset all previous list/slider styles */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  /* Bento Grid Spanning for a cool mosaic look */
  .deck__card:nth-child(1) { 
    grid-column: span 2 !important; 
    height: 180px !important; 
  }
  
  .deck__card:nth-child(2) { 
    grid-column: span 1 !important; 
    height: 240px !important; 
  }
  
  .deck__card:nth-child(3) { 
    grid-column: span 1 !important; 
    height: 240px !important; 
  }
  
  .deck__card:nth-child(4) { 
    grid-column: span 2 !important; 
    height: 160px !important; 
  }
  
  .deck__card:nth-child(5) { 
    grid-column: span 2 !important; 
    height: 160px !important; 
  }

  /* Full size background image */
  .deck__card-img {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    z-index: 1 !important;
    order: unset !important;
  }

  /* Subtle gradient overlay for text readability */
  .deck__card-img::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
      to top,
      rgba(15, 23, 42, 0.8) 0%,
      rgba(15, 23, 42, 0) 70%
    ) !important;
    z-index: 2 !important;
  }

  /* Minimal text overlayed at bottom */
  .deck__card-text {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1rem 1rem 1.25rem !important; /* Added negative space at bottom */
    background: transparent !important;
    z-index: 3 !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    opacity: 1 !important; /* Prevent hover hide from desktop */
    visibility: visible !important; /* Prevent hover hide from desktop */
  }

  .deck__card-main {
    transform: none !important; /* Reset the 20px push-down from desktop */
  }

  .deck__card-main h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
  }

  /* Show description on mobile bento grid as requested */
  .deck__card-main p {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 0.2rem !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
  }

  .deck__card-meta {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    margin-top: 0 !important;
  }

  .meta-box span {
    display: none !important; /* Hide labels like "Location" */
  }

  .meta-box strong {
    color: #ffffff !important;
    font-size: 0.7rem !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: none !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
  }

  /* Hide unnecessary elements */
  .deck__card::after,
  .deck__card-watermark,
  .deck__card-coords {
    display: none !important;
  }
}
