* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: newFont;
  src: url("./PermanentMarker-Regular.ttf");
}

body {
  font-family: newFont, sans-serif;
  background-color: #f9f9f9; /* Fallback color */
  padding: 0;
  margin: 0;
  background-image: url("./assets/bg//home_gallery_2.jpg");
  background-size: cover; /* Ensure the image covers the entire viewport */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Prevent the image from repeating */
  background-attachment: fixed;
  height: 100vh; /* Ensure the body takes up the full height of the viewport */
}
.toggle-btn-gallery {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-size: 30px;
  font-weight: bold;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 999;
}

.toggle-btn-gallery:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #000;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /*masonry*/
  grid-auto-rows: 250px; /* Ensure uniform row height */ /*masonry*/
  margin: 3rem auto; /*masonry*/
  max-width: 1500px;
  padding: 1rem;
  justify-items: center;
}

.gallery_card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery_card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery_card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.gallery_card_overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery_card:hover .gallery_card_overlay {
  transform: translateY(0);
}

.gallery_card_overlay h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.gallery_card_overlay p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* Specific card classes for custom sizing */
.gallery_card.tall {
  grid-row: span 2; /* Makes this card taller */
}

.gallery_card.wide {
  grid-column: span 2; /* Makes this card wider */
}

.gallery_card.big {
  grid-column: span 2;
  grid-row: span 2;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .gallery_card {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 480px) {
  .gallery_card {
    aspect-ratio: 1 / 1; /* Change to square aspect ratio on very small screens */
  }
}

/* filter css */
.filter-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  display: flex;
  justify-content: center; /* Align items to the start for overflow */
  align-items: center;
  padding: 10px 20px;
  border-bottom: 2px solid #ddd;
  z-index: 10;
  overflow-x: auto; /* Horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
  margin: 0 auto;
  width: 100%; /* Ensure full width on mobile */
  max-width: none; /* Allow the bar to be full width */
}

.filter-btn {
  margin-right: 10px;
  white-space: nowrap; /* Prevent button text from wrapping */
}

/* Hide the scrollbar but still allow scrolling */
.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-bar {
  scrollbar-width: none; /* Hide the scrollbar for Firefox */
}

/* Styling the Filter Buttons */
.filter-btn {
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 20px;
  color: #333;
  padding: 10px 20px;
  margin-right: 10px;
  /* font-size: 15px; */
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hover and Active States */
.filter-btn:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.filter-btn:focus {
  outline: none;
  background-color: #c0c0c0;
  border-color: #b0b0b0;
}

/* Responsive: Handling overflow on smaller screens */

/* search123 */
.search-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  /* border: 2px solid black; */

  margin: 0 auto;
  margin-top: 5rem;
  background: white;
  max-width: 1500px;
  border-radius: 25px;
  padding: 5px 0px 5px 0px;
}

.search-input {
  background: rgba(255, 255, 255, 0.2); /* Frosted glass effect */
  border: 1px solid rgb(175, 175, 175);
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 16px;
  color: #000000;
  outline: none;
  backdrop-filter: blur(10px); /* Glass effect */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 300px;
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.7);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-btn {
  background-color: #ff6347;
  border: none;
  border-radius: 50%;
  padding: 12px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.search-btn:hover {
  background-color: #ff4500;
  transform: scale(1.1);
}

.popup {
  display: none; /* Initially hidden */
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: -300px; /* Start off-screen to the right */
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: right 0.5s ease-in-out; /* Smooth transition for sliding */
  z-index: 1000;
}

.popup.show {
  right: 20px; /* Slide in to the right position */
}

.modal {
  display: none; /* Initially hidden */
  position: fixed;
  width: 65%;
  height: 100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(233, 233, 233, 0.6); /* Semi-transparent dark background */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(15px); /* Glassmorphism effect */
  color: black;
  z-index: 1001;
  padding: 1rem 0 1rem 0;
  border-radius: 25px;
  border: 1px solid black;
}

.modal-content {
  background: rgba(
    255,
    255,
    255,
    0.1
  ); /* Transparent white background with lower opacity */
  border-radius: 20px;
  padding: 30px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

.modal-image {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.modal-text {
  font-size: 18px;
  margin-bottom: 20px;
  color: black;
}

.modal-btn {
  background-color: #1976d2; /* Blue button color */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-btn:hover {
  background-color: #1565c0; /* Darker blue on hover */
  transform: scale(1.05);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: rgb(0, 0, 0);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #1976d2;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px;
    width: 98%;
    height: 98%;
    text-align: center;
  }
  .filter-bar {
    display: flex;
    justify-items: center;
    justify-content: flex-start;
    max-width: none;
    flex-wrap: nowrap;
  }

  .modal-image {
    width: 100%;
    height: 75%;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  }

  .filter-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
  .toggle-btn-gallery {
    top: 90vh;
    left: 50%;
    transform: translateX(-50%);
  }

  .modal {
    width: 90%;
    top: 50%;
    left: 50%;

    justify-content: center;
    align-items: center;
    border-radius: 20px;
  }
}

.no-product {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: red; /* Red text color */
  background: transparent;
  padding: 15px 30px;
  border: 2px solid red; /* Red border */
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.no-product::before {
  content: "🚫";
  margin-right: 10px;
  font-size: 1.7rem;
}

.no-product:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* insta button */
.instagram_button {
  position: relative;
  width: 130px;
  height: 35px;
  border-radius: 30px;
  background-color: white;
  border: 1px #ffb700 solid;
  overflow: hidden;
}

.text1 {
  font-size: 15px;
  font-weight: 600;
  margin-left: 22%;
}

.text2 {
  position: absolute;
  top: 25%;
  left: -50px;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.icon {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s;
}

.icon::before {
  position: absolute;
  left: -100px;
  top: 0;
  z-index: -1;
  content: "";
  width: 130px;
  height: 33px;
  border-radius: 30px;
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.instagram_button:hover .icon {
  transform: translateX(96px);
  transition: transform 0.5s;
}

.instagram_button:hover .text2 {
  transform: translateX(100px);
  transition: transform 0.6s;
}

.instagram_button:active {
  transform: scale(1.03);
}
.modal-content p {
  color: black;
}
