
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}

/* .bottom-bar {
  display: none;
} */
body {
   background-color: black;
   color: white;
   width: 100%;
   font-family: 'Amatic SC';
   overflow-x: hidden;
   overscroll-behavior: none;
   padding-bottom: 90px; /* match bottom bar height */
}

img {
  display: block;
}


.zoom1 {
   color: white;
   transition: transform 0.3s ease;
}

.zoom1:hover {
   transform: scale(1.05);
   z-index: 99;
}

.center {
   text-align: center;
}

.left {
   text-align: left;
}

.right {
   text-align: right;
}







#fasier-gold-deer-gold-container {
   border: 2px solid gold;
   background-color:black;
   color: gold;
   width:  100%;
   min-height: calc(10vh + env(safe-area-inset-top));
   margin: 0px 0px;
   padding: 0px 20px;
   position: relative;
   display: flex;
   flex-flow: row wrap;
   justify-content: space-around;
}


.title-levels {
   border: 1px solid white;
   border-radius: 6px;
   color: gold;
   width: 100%;
   text-align: center;
   font-family: 'Amatic SC';
   margin: 0px 30px;
   
}

/* Existing styles for gallery */
#fotos-container {
  border: 1px solid white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding: 20px;
  margin: 30px;
}

.photo-card {
  flex: 1 1 20%;
  max-width:180px;
  padding: 10px;
  /* border: 1px solid white; */
  cursor: pointer;
  transition: transform 0.2s ease;
  background-color: black;
  min-width: 150px;
}

.photo-card:hover {
  transform: scale(1.05);
  /* box-shadow: 0 0px 12px 2px white; */
}

.gold-fotos {
  border: 1px solid gold;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  padding: 2px;
  /* transition: transform 0.6s ease; */
}

.gold-fotos:hover {
  transform: scale(1.05);
}










/* #info-table {
   width: 50vw;
   margin: 20px auto;
   font-size: 1.5em
} */

/* tr, td {
   border: 1px solid white;
   padding:0px;
} */

.email-link {
   color: gold;
   text-decoration: none;
   transition: transform 0.6s ease;
    
  
}

.email-link:hover {
   transform: scale(1.3);
}


.description-box {
  max-height: 60px;       
  overflow-y: auto; 
  /* width: 20vw;        */
  padding: 0px;
  border: 1px solid red;
  border-radius: 4px;
  background-color: black;
  color: white;
  font-size: 14px;
  width: 100%;
}

.offer {
  color: gold;
}




/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {transform:scale(0.8);}
  to {transform:scale(1);}
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: gold;
}

#caption {
  margin: auto;
  display: block;
  text-align: center;
  color: white;
  padding: 10px 0;
  font-size: 18px;
}






/* ksudhxfksjzxbdfjkszdbxljkfzlxjkhvljkszx */

/* MOBILE HERO GALLERY */
#mobile-gallery {
  display: none; /* default hidden on desktop, visible on mobile via media queries */
  width: 100%;
  max-width: 100%;
  background-color: black;
  color: white;
}

.hero-container {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  padding: 20px 10px;
}

.hero-container img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  border: 2px solid gold;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.thumb-container {
  display: flex;
  gap: 8px;
  padding: 10px 0;
   overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.thumb-container::-webkit-scrollbar {
  display: none; /* hide scroll bar on mobile */
}

.thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 15vh;
  object-fit: cover;
  border: 2px solid white;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumb:hover {
  transform: scale(1.1);
  border-color: gold;
}

/* ACTIVE THUMBNAIL BORDER */
.thumb.active {
  border-color: gold;
}






/* 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) {

  #photos-container {
    display: none
  }

  #mobile-gallery {
    display: block;
  }

  .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) {

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    overflow-x: hidden;
    overscroll-behavior: none;
    transition: opacity 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -webkit-touch-callout: none;
     height: 100%;
  }

  body.fade-out {
    opacity: 0;
  }

   #fotos-container {
    display: none;
  }

  #mobile-gallery {
    display: block;
  }

  .category-button,
  .thumb,
  .photo-card {
    -webkit-tap-highlight-color: transparent;
  }

  .category-button:active,
  .thumb:active {
    transform: scale(0.95);
  }


  .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%;
    border-radius: 10px;
  }

  .modal {
    backdrop-filter: blur(8px);
  }

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


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

  #gold-deere-gold-title {
    font-size: 30px;
  }




  #info-tab{
    padding: 20px;
  }

  #table-container {
   width: 100%;
   height: 95%;
   padding: 0px;
   overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  }

  #info-table {
   /* margin: 10px 0px; */
   font-size: 1.5em; 
   /* width: 80%; */
   height: 65%;
   border: 1px solid gold;
   /* padding: 50px; */
   table-layout: fixed;
   width: 100%;
   max-width: 100%;
  }

  #info-table td,
  #info-table tr {
    border: 1px solid white;
    padding: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  #info-table th:nth-child(1),
  #info-table td:nth-child(1) {
    width: 20%;
  }

  #info-table th:nth-child(2),
  #info-table td:nth-child(2) {
    width: 20%;
  }

  #info-table th:nth-child(3),
  #info-table td:nth-child(3) {
    width: 20%;
  }

  #info-table th:nth-child(4),
  #info-table td:nth-child(4) {
    width: 20%;
  }

  .description-box {
    max-height: 60px;
    overflow-y: auto;
    width: 100%; /* ✅ instead of vw */
  }

  .not-interested {
    height: 20px;
    border: 1px solid yellow;
    font-size: 20px;
  }

  .not-interested > tr {
    height: 20px;
  }








  /* 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;
  }

  

}

   


