/* Add your custom styles here */

.col-md-11 {
  width: 95% !important; /* Increase the width of col-md-11 */
}

html, body {
  height: 100%;  /* Ensures the background covers the full height */
  background-color: #5b7562; /* Light gray background */
  margin: 0;  /* Removes any default margins */
}
body {
  background-image: url("https://media.bangkokblack.com/images/bangkokblackweb4.original.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.row {
  margin-top: 25px; /* Adjust this value to move the row down */
}

.home-carousel-row {
  margin-top: 10px; /* smaller gap from navbar */
  margin-bottom: 10px; /* add space before footer */
}

.custom-footer {
  background-color: #685b75; /* Matches your navbar */
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
}

.custom-footer p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .custom-footer {
    font-size: 1rem;
    padding: 20px 10px;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px; /* spacing between icon and text */
}

.navbar .nav-item img {
  width: 100px !important;  /* Adjust the size as needed */
  height: auto !important;  /* Maintain aspect ratio */
}

.navbar-item {
  width: 100px;  /* Adjust the size as needed */
  height: auto;  /* Maintain aspect ratio */
}

.navbar-item-image {
  width: 20px;  /* Adjust the size as needed */
  height: auto;  /* Maintain aspect ratio */
}

.navbar {
  background-color: #685b75 !important; 
  position: relative; /* Ensure navbar stays above */
  z-index: 900; /* Higher than the carousel */
}
.navbar-home {
  /* background-color: #4a6b66 !important; /* default */
  background-color: #3EEA01 !important; /* default */
}

.navbar-spirals {
  background-color: #5a3e8c !important; /* purple for spirals */
}

.navbar-neckware {
  background-color: #5f616c !important; /* brown for neckware */
}

.navbar-default {
  background-color: #685b75 !important; /* fallback */
}

.carousel-caption {
  position: absolute;
  z-index: 2; /* Lower than the navbar */ 
  font-size: 2.5rem; /* Adjust size as needed */
  font-weight: bold;
  bottom: 0%; /* Adjust vertical position */
  width: 100%; /* Make the caption span full width */
  left: 0;
  right: 0;
  padding: 20px; /* Adds padding for readability */
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  text-align: center; /* Centers text */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8); /* Stronger shadow */
}

.carousel {
  width: 100%; /* Make sure it fills the column */
  max-width: 1600px; /* Increase max-width */
  height: 600px; /* Adjust height */
}

.carousel-inner {
  width: 100%;
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 600px; /* Increase image height */
  object-fit: cover; /* Ensures images scale properly */
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; /* Adjust arrow button size */
  height: 40px;
  background-color: rgba(0, 0, 0, 0.3); /* Optional: visible background */
  border-radius: 50%;
  z-index: 10;
}

.carousel-control-prev {
  left: 0; /* Keep at the start of .carousel */
}

.carousel-control-next {
  left: 97%; /* Aligns with .carousel-inner */
}

/* Adds a bit of spacing to "Responsive Grid Row" blocks. */
.crx-grid {
    padding-top: 40px;
      padding-bottom: 40px;
  }
  
  .crx-grid .crx-grid {
    padding-top: 0;
    padding-bottom: 0;
  }
  .gallery-container {
    background-color: #8097aa;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 10px;
    justify-content: center;
    padding-top: 10px; /* 👈 add this */
    padding-bottom: 10px; /* 👈 add this */
}

.gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  border: 8px solid #0b250a;   /* Full border on all sides */
  border-radius: 20px;      /* Optional rounded corners */
  box-sizing: border-box;   /* Ensures the border doesn't break the layout */
  overflow: hidden;         /* Keeps the image neatly inside the border */
}

/* Ensure image takes full width */
.gallery-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Position title at the bottom of the image */
.image-title {
  position: absolute;
  bottom: 0; /* Align to the bottom */
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
  color: white;
  padding: 8px 0;
  font-size: 16px;
  font-weight: medium;
  text-align: center;
  opacity: 1; /* Always visible */
  border-radius: 0 0 5px 5px; /* Rounded bottom corners */
}
/* Position title at the top of the image */
.image-title-big {
  position: absolute;
  top: 0; /* Align to the top */
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
  color: white;
  padding: 8px 0;
  font-size: 36px;
  font-weight: medium;
  text-align: center;
  opacity: 1; /* Always visible */
  border-radius: 5px 5px 0 0; /* Rounded top corners */
}

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Increase min size */
    gap: 25px; /* Increase spacing */
    padding: 30px;
    justify-content: center;
  }
  
  .gallery-card {
    background: #fdfca5;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    text-align: center;
    width: 100%; /* Ensure full width */
    max-width: 400px; /* Increase max size */
  }
  
  .gallery-card:hover {
    transform: scale(1.08); /* Bigger hover effect */
  }
  
  .gallery-card img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid #ddd;
  }
  
  .gallery-card h3 {
    padding: 20px;
    font-size: 1.5rem; /* Increase title size */
    color: #222;
  }
  
  .gallery-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
  }
    
  .gallery-card img {
  width: 100%; /* Make image fill the card */
  height: auto;
  display: block;
  border-bottom: 2px solid #ddd;
  }
  
  .gallery-card h3 {
  padding: 15px;
  font-size: 1.2rem;
  color: #333;
  }   
  .gallery-card-image img {
    width: 40%;
    height: auto;
    border-bottom: 3px solid #f0f0f0;
  }
    
  .gallery-card-content {
    padding: 15px;
    text-align: center;
  }
    
  .gallery-card p {
    font-size: 14px;
    color: #666;
  }