    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
    }

.tab-wrapper {
  background: #fff;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 20px 24px; /* ⬅️ ADD this line */
}


.tabs {
  display: flex;
  justify-content: center;
  background: #ffffff;
  padding: 20px 0; /* ⬅️ Add or increase this */
  border-bottom: none;
}

body.single-fish #modalMeta,
body.single-fish .modal-meta {
  display: none !important;
}

    .tabs button {
      background: none;
      border: none;
      padding: 15px 30px;
      font-size: 16px;
      cursor: pointer;
      transition: 0.3s;
      color: #222;
    }

    .tabs button.active {
      border-bottom: 3px solid #0077cc;
      font-weight: bold;
      color: #0077cc;
    }
	
.reset-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 999px;
  background-color: #0077cc;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 42px;
  margin: 0; /* reset margin */
  white-space: nowrap;
}


.reset-btn:hover {
  background-color: #005fa3;
}


.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 20px; /* ⬅️ Increase top and bottom padding */
  background: #ffffff;
  border-bottom: 2px solid #ccc;
}


    .filter select {
      padding: 10px;
      font-size: 16px;
    }

.gallery {
  background: transparent;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
  justify-content: center;        /* ✅ Center even one card */
}

.card {
  background: var(--ast-global-color-5);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px; /* ✅ Prevent full-stretch when only 1 */
  pointer-events: auto;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  word-wrap: break-word;
}

.card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--ast-global-color-5);
  padding: 10px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.card img:hover {
  transform: scale(1.05);
}

.card-body {
  padding: 15px;
  text-align: left;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card-body p {
  font-size: 14px;
  color: #555;
}

body.single-fish #modalMeta {
  display: none !important;
}


/* Modal container */
#imageModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85); /* dark overlay */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#imageModal.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

#imageModal .modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#imageModal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Modal image */
#modalImage {
  width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  display: block;
}

/* Modal body */
#imageModal .modal-body {
  padding: 20px;
}

/* Close button */
#imageModal .modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  display: flex;                /* Use flexbox */
  align-items: center;         /* Vertical centering */
  justify-content: center;     /* Horizontal centering */
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  z-index: 10001;
  transition: background 0.3s;
  padding: 0;
  box-sizing: border-box;
}

#imageModal .modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #ffcc00;             /* Optional highlight on hover */
}


/* 🔧 Mobile optimization */
@media (max-width: 768px) {
  .card {
    max-height: 90vh;           /* Limit vertical height */
    overflow-y: auto;           /* Allow scrolling if needed */
  }
  
  .card img {
    max-height: 140px;
    object-fit: contain;
  }
    
  .card-body h3 {
    font-size: 18px;
    text-align: center;
  }
    
  .card-body p {
    font-size: 15px;
    text-align: left;
  }
  
  .card button,
  .card a.button {
    width: 100%;
    font-size: 15px;
    padding: 0 10px;
    display: block;
    box-sizing: border-box;
    margin-top: 20px;
  }
  #imageModal .modal-content {
    max-height: 85vh;               /* Shrink vertical height */
    overflow-y: auto;               /* Scroll if overflow */
    margin: 40px auto !important;   /* Space around modal */
    padding: 16px !important;       /* Slightly tighter padding */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  #modalImage {
    max-height: 140px !important;   /* Shrink image on mobile */
    width: 100% !important;
    object-fit: contain !important;
    padding: 5px;
    margin-bottom: 10px;
  }

  #imageModal .modal-body {
    padding: 15px;
  }

  #imageModal .modal-close {
    top: 5px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 32px;
  }

  .modal-link-btn {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    text-align: center;
    margin-top: 16px;
  }

  #imageModal .modal-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  #imageModal .modal-body p {
    font-size: 15px;
    line-height: 1.5;
  }
}

.read-more {
  color: var(--ast-global-color-0); /* or any theme-accent color */
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--ast-global-color-1); /* hover accent */
  text-decoration: none;
}

.modal-link-btn {
  display: block;
  margin: 20px auto 0 auto; /* top margin + auto left/right */
  padding: 10px 16px;
  background-color: var(--ast-global-color-0);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  width: fit-content;
}



	
	/* Modern dropdown styles */
.filter select {
  padding: 10px 16px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  appearance: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter select:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,119,204,0.2);
}

/* Tabs underline effect */
.tabs {
  position: relative;
}

.tabs button {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
}

.tabs button.active {
  background-color: #0077cc;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 119, 204, 0.2);
}

.tabs button:not(.active):hover {
  background-color: #e6f3ff;
  color: #0077cc;
}

.tabs button + button {
  margin-left: 12px;
}


/*.tabs button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 25%;
  width: 50%;
  height: 3px;
  background: #0077cc;
  border-radius: 10px;
} */

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.card-body h3 {
  font-size: 17px;
  font-weight: 600;
}

.card-body p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.modal-full-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

