


body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 150%;

    bottom: 0 !important;
    height: 150% !important;

    background-image: 
    radial-gradient(#9d8871 7px, transparent 8px),
    radial-gradient(#9d8871 7px, transparent 8px);
    background-size: 34px 34px;
    background-position: 17px 0, 17px 0;
    opacity: 60%;

    transform: rotate(15deg) translate(-600px, -100px);      /* <-- Positive number moves dots DOWN (try 50px, 150px, 300px) */ /* CHANGE THIS DEGREE (e.g., 15deg, 30deg, 45deg) */
    transform-origin: center;

    -webkit-mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.7) 15%,
    rgba(0,0,0,0.3) 35%,
    rgba(0,0,0,0) 60%)
    ;
    mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.7) 15%,
    rgba(0,0,0,0.3) 35%,
    rgba(0,0,0,0) 60%)
    ;

    

    z-index: -1;
    pointer-events: none;
}

/*=================================

Media / artwork

=====================================*/

img{
width: 100%;
display: block;
border-radius: 5px;
margin-bottom: 15px;
}

.media-container {
    display: grid;
    
    
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 90%;

    max-height: none !important;
    overflow: visible !important;

    
    margin: 40px auto ;
    padding: 20px;
    position: relative;
    z-index: 999 !important;
    
}

.media-container::-webkit-scrollbar {
    width: 32px !important;
    background-color: #f48ba1;
}
.media-container::-webkit-scrollbar-thumb {
    background-color: #f48ba1;
    border-radius: 8px;
}
.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    
}


input[type=checkbox]
{
    display: none;
}
.column label {
    display: block;
    cursor: pointer;
    width: 100%;
}
.column img {
    
    width: 100%;
    display: block;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 3s ease, opacity 3s ease;
    
   
}

input[type=checkbox]:checked + label {
    position: fixed;
    inset: 0;
    background-color:  rgba(157, 136, 113, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: background-color 0.6s ease-in-out, backdrop-filter 0.6s ease-in-out;
}
input[type=checkbox]:checked + label > img {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    border-radius: 8px;
    margin-bottom: 0;
    cursor: pointer;

    transition: transform 3s ease-in-out;
}

.media-title p2{
  text-decoration: none;
  font-family: "BDRegular", BDRegular;
  color: #f48ba1;
  font-size: 4rem;
  text-align: center;

  top: 50px;
  left: 840px;


  position: relative;
  z-index: 2;
}



/*============================

Background svgs

============== */
.media-img {
  width: 2250px;
  top: -480px;
  left: -1px;
  position: absolute;
  z-index: -1 !important;
}

 /* 2. HIDE DESKTOP CONTAINER */
  .mobile-media-container {
    display: none !important;
  }


/*=========================
TABLET & MOBILE RESPONSIVE STYLES
==========================*/
@media (max-width: 900px) {
 
  .links-container {
    top: 30px !important;
    left: 195px !important;           /* Pulls the container to the horizontal center */
    right: auto !important;         /* Clears the desktop right alignment */
    transform: translateX(-50%) !important; /* Perfectly centers it relative to its own width */
    gap: 40px !important;           /* Scales gap slightly so links fit on narrow phones */
    width: max-content !important;
  }

  .links-container a {
    font-size: 1rem;             /* Scales down font size slightly for mobile screens */
    white-space: nowrap !important;
    
    /* ADDS A DROP SHADOW BEHIND MOBILE NAV LINKS */
    text-shadow: 0px 2px 8px rgba(255, 255, 255, 0.9), 
                 0px 0px 4px rgba(255, 255, 255, 0.8) !important;
  }


  /*===================
  Title
  ===========================*/
/* 1. LOCK VIEWPORT BOUNDS */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    background-color: transparent !important;
  }

  /* 2. HIDE DESKTOP CONTAINER */
  .media-container {
    display: none !important;
  }

  /* 3. HIDE THE OLD DESKTOP MEDIA IMG ON MOBILE */
  .media-img {
    display: none !important;
  }

  /* 4. TIGHTEN CONTAINER SPACING */
  .mobile-media-container {
    display: block !important;
    column-count: 2 !important;            
    column-gap: 12px !important;           
    width: 92% !important;
    max-width: 450px !important;
    margin: 15px auto 25px auto !important; 
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important; 
  }

  /* 5. Prevent breaking */
  .mobile-media-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 12px !important;        
    break-inside: avoid !important;        
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* 6. Images */
  .mobile-media-item img {
    width: 100% !important;
    height: auto !important;               
    display: block !important;
    border-radius: 5px !important;
    margin: 0 !important;
  }

  /* 7. NEW MOBILE BACKGROUND WRAPPER */
  .main-content-wrapper {
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 20px 0 !important;
    background: transparent !important;
  
  }

  .main-content-wrapper::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;            /* Adjusts seamlessly for mobile address bars */
    left: 0 !important;                       /* Adjusts the vertical position of the background */
    
    background-image: url('/images/section-bg.webp') !important; 
    background-size: 583% 160%  !important;
    background-position: left -40px !important; /* ADJUST THIS PIXEL VALUE TO MOVE UP/DOWN (-80px moves it up) */
    background-repeat: no-repeat !important;
    
    z-index: -3 !important;            /* Sits behind content, above dots */
    pointer-events: none !important;
  }

  /* 8. LIGHTBOX MODAL */
  .mobile-media-item input[type=checkbox] {
    display: none !important;
  }

  .mobile-media-item input[type=checkbox]:checked + label {
    position: fixed !important;
    inset: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(157, 136, 113, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
  }

  .mobile-media-item input[type=checkbox]:checked + label > img {
    max-width: 90vw !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important;
  }

  /* 9. DOTS BACKGROUND: Cleanly fits screen */
  body::before {
    content: "" !important;
    display: block !important;
    background-size: 20px 20px !important; 
    background-image: 
      radial-gradient(#9d8871 4px, transparent 5px),
      radial-gradient(#9d8871 4px, transparent 5px) !important;
    background-position: 10px 0, 10px 0 !important;

    transform: rotate(8deg) translate(50px, -15px) !important;
    
    width: 100vw !important;          
    height: 110vh !important;         
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;            
    pointer-events: none !important;
    z-index: -1 !important; 
  }

  /* 10. MOBILE MEDIA TITLE: Resized and centered for mobile screens */
  .media-title p2 {
    display: block !important;
    width: 100% !important;
    font-size: 2.2rem !important;        /* Scales down the 4rem desktop size for mobile */
    text-align: center !important;
    position: relative !important;
    top: 70px !important;                /* Sits nicely near the top */
    left: 0 !important;                  /* Clears the desktop 840px offset */
    transform: none !important;
    margin: 0 auto 15px auto !important;
    z-index: 15 !important;              /* Ensures it stays visible above backgrounds */
  }

  /* HIDE MEDIA TITLE WHEN LIGHTBOX IS OPEN */
  body:has(.mobile-media-item input[type=checkbox]:checked) .media-title p2 {
    display: none !important;
  }

  /* MEDIA PAGE: SCROLL & BACKGROUND LOCK */
  @media (max-width: 480px) {
    .media-container, .media-grid {
      width: 100% !important;
      height: auto !important;
      min-height: auto !important;
      overflow: visible !important;
      padding: 20px 0 60px 0 !important; /* Bottom padding ensures last row of images isn't cut off */
    }

    /* Fixed background locking for media page */
    .media-bg, .page-media::before {
      position: fixed !important;
      inset: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      object-fit: cover !important;
      object-position: center center !important;
      z-index: -2 !important;
      pointer-events: none !important;
    }
  }

}