/* TABLETS (landscape and smaller screens) */
@media (max-width: 1024px) {


   

  .photo-card {
    flex: 1 1 30%; /* 3 images per row */
    max-width: 200px;
  }

  .modal-content {
    max-width: 80%;
    max-height: 70%;
  }
}

/* PHONES (portrait) */
@media (max-width: 768px) {

  .photo-card {
    flex: 1 1 45%; /* 2 images per row */
    max-width: 160px;
  }

  .modal-content {
    max-width: 90%;
    max-height: 60%;
  }

  #fasier-gold-deer-gold-container {
   padding: 15px;
   margin: 0px 20px;
}

  .title-levels {
   border: 1px solid white;
   font-size: 2.4em;
   border: none;
   }

   #papa {
      font-size: 1.8em;
   }

   #gold-deere-gold {
      font-size: 2.5em;
   }

   #project {
      font-size: 1.8em
   }

   #may-1st {
      border: 1px solid none;
      position: absolute;
      top: 10px;
      left: 320px;
      font-size: 0.6em;
   
   }

  .description-box {
    max-height: none;
    overflow: hidden;
  }


}




/* SMALL PHONES */
@media (max-width: 480px) {
  .photo-card {
    flex: 1 1 90%; /* 1 image per row */
    max-width: 300px;
    margin: 0 auto; /* center single column */
  }

  .modal-content {
    max-width: 95%;
    max-height: 55%;
  }

  #caption {
    font-size: 16px;
    padding: 5px 0;
  }

  #fasier-gold-deer-gold-container {
   width: 94vw;
   margin-top: 10px;
   margin-left: 3vw;
   padding: 10px;
   border-radius: 6px;
  }

  #table-container {
   width: 100vw;
  }

  #info-table {
   margin: 40px auto;
   font-size: 1.5em 
  }

  .description-box {
    height: 100px;
  }
  /* OVERLAY */
  .desc-modal {
    position: fixed;
    inset: 0;
    width: 90vw;
    background-color: rgba(0, 0, 0, 0.7); /* 0.7 opacity */
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    z-index: 999;
  }

  /* ACTIVE STATE */
  .desc-modal.active {
    opacity: 1;
    visibility: visible;
  }

  /* MODAL BOX */
  .desc-modal-content {
    background: black;
    color: white;
    border: 2px solid gold;
    border-radius: 8px;
    font-size: 30px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;

    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    -webkit-overflow-scrolling: touch;
  }

  /* POP EFFECT */
  .desc-modal.active .desc-modal-content {
    transform: scale(1);
    opacity: 1;
  }

  .desc-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 40px;
    color: gold;
    cursor: pointer;
  }

  

}

   