.scroll-arrow {
    display: none; /* hidden by default, shown only when needed left and right */
}

.site-header {
    font-size: .8em;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    /* background: #54198b; */
    z-index: 1100;
    padding: 0px;
    /* box-shadow: 0 2px 8px rgba(219, 212, 219, 0.1); */
    text-align: center;
}

.category-thumbnails-wrapper {
    position: relative;
    top: 15px;
    padding: 10px 10px;
    left: 0;
    width: 100%;
    z-index: 99;
    height: auto;
    align-items: center;
    /* Vertical centering */
    justify-content: center;
    /* Adjust height as needed */
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;

    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
    gap: 5px;
    /* Add this line to set space between elements */
}

.category-thumbnails-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    max-width: 80%;
    /* adjust based on design */
    padding: 40px 60px;
    /* room for arrows */
}

.category-thumbnails-container::-webkit-scrollbar {
    display: none;
}

.category-thumbnails-container {
    scrollbar-width: none;
    /* Firefox */
}

.category-thumbnails-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    max-width: 80%;
    /* Adjust as needed */
    padding: 0 20px;
    scroll-behavior: smooth;
    white-space: nowrap;
}

.category-thumbnails-container::-webkit-scrollbar {
    display: none;
}

.category-thumbnail.tooltip {
    opacity: 1 !important;
}

 .category-thumbnail {
    width: 200px;
    height: auto;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
} 

.preview-thumbnail {
    width: 100%;
    height: 120px;
    /* Fit nicely within total height */
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.preview-thumbnail:hover {
    transform: scale(1.05);
    width: 100%;
    height: 120px;
    /* 👈 Fixed height */
    object-fit: cover;
    /* 👈 Crop while preserving aspect ratio */
    border-radius: 4px;
    transition: transform 0.2s;

}

  .category-thumbnail {
      width: 164px;
      height: 184px;
      min-width: 300px;
      /* height: auto; */
      text-align: center;
      cursor: pointer;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 15px;
      background-color: #fafafa;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
.category-thumbnail img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.category-thumbnail img:hover {
    transform: scale(1.05);
    transition: tranform 0.2s ease-in;
}

.category-thumbnails {
    background-color: #792ba7;
    /* Light grey background */
    padding: 20px;
    border-radius: 8px;
}

/* Optional: hide scrollbars */
.category-thumbnails::-webkit-scrollbar {
    display: none;
}

.category-thumbnails {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 40px 40px;
    scroll-behavior: smooth;
    justify-content: center;
    /* Center horizontally */
    position: relative;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    
}
 #mainContent:focus {
    outline: none; /* or custom style */
  }

.main-content::-webkit-scrollbar {
    display: none;
}

.image-container {
    width: 180px;
    height: 180px;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-gallery {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0px;
    justify-content: center;
    perspective: 1500px;
    /* 3D effect */
    /* opacity: 0; */
    animation: fadeIn 1s forwards;
}

.category-gallery.active {
    display: flex;
}

/* Modal Zoom Effect */
.zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.zoom-overlay.active {
    display: flex;
    opacity: 1;
}

.zoom-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: scale(0);
}

.zoom-overlay.active .zoom-image {
    transform: scale(1);
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: #666;
    cursor: pointer;
    user-select: none;
    z-index: 10000;
    padding: 10px;
}

.nav-left {
    left: 20px;
}

.nav-right {
    right: 20px;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

/* Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(224, 222, 224, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    box-shadow: 0 2px 6px rgba(221, 218, 218, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    z-index: 1100;
}

.scroll-arrow:hover {
    background: rgba(3, 14, 24, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.category-thumbnails {
    background-color: #792ba7;
    /* Light grey background */
    padding: 20px;
    border-radius: 8px;
}




.highlightable {
    padding: 20px;
    margin: 10px;
    border: 1px solid black;
    cursor: pointer;
}

.highlight {
    background-color: rgb(202, 207, 120);
    border: 2px solid rgba(125, 202, 48, 0.47);
}

#categoryTitleDisplay {
    padding: 10px;

    font-size: 16px;
    font: weight 16px; 
    margin: 2px 0;
    padding: 5px 15px;
    color: #1d11c0;
 
    border-radius: 4px;
   flex-wrap: wrap;
   overflow: hidden;
   overflow-wrap: break-word;
}


.tooltip {
    position: relative;

    z-index: 99;
    cursor: pointer;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    margin-top: 1px;
    white-space: wrap;

    max-width: 100%;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #280829;
    color: #eaece9;
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;

    position: absolute;
    z-index: 1;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);

    opacity: 0;
    transition: opacity 0.3s;

    white-space: pre-wrap;
    /* Preserve spaces & wrap */
    word-wrap: break-word;
    /* Break long words */
    overflow-wrap: break-word;
    /* Modern fallback */
    max-width: 200px;
    /* Optional: controls tooltip width */
}


.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#loadMoreBtn {
  display: none; /* Hidden initially */
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 20px auto; /* Space and center horizontally */
  display: block;    /* Ensures margin auto works */
}


#loadMoreBtn:hover {
  background-color: #0056b3; /* Darker blue on hover */
}


@media (max-width: 768px) {
    .category-thumbnail{
        min-width: 140px;
    }

    .category-thumbnails-wrapper,
    .category-gallery {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .main-content,
    .category-thumbnails-wrapper,
    .category-gallery {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .main-content {
        padding: 20px 20px;
    }
}
