.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.new-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: sans-serif;
}

.new-container h2 {
  color: coral;
}

.new-grid-container {
  columns: 4 200px;
  column-gap: 1.5rem;
  width: 90%;
  margin: 0 auto;
}

.new-grid-container .new-grid-item {
  width: 150px;
  margin: 0 1.5rem 1.5rem 0;
  display: inline-block;
  width: 100%;
  border: 2px solid black;
  padding: 5px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  transition: all 0.25s ease-in-out;
}

.new-grid-container .new-grid-item:hover .new-grid-img {
  filter: grayscale(0);
}

.new-grid-container .new-grid-item:hover {
  border-color: coral;
}

.new-grid-container .new-grid-item .new-grid-img {
  width: 100%;
  filter: grayscale(100%);
  border-radius: 5px;
  transition: all 0.25s ease-in-out;
}

.new-grid-container .new-grid-item p {
  margin: 5px 0;
  padding: 0;
  text-align: center;
  font-style: italic;
}


/* Container holding the image and the text */
body {
  margin: 0;
  padding: 0;
}

.side-by-side-container {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.image-container {
  flex: 1;
}

.text-block {
  flex: 1;
  position: relative;
  background-color: black;
  color: white;
  padding: 20px;
}


/* Container holding the image and the text for Carttec Lightbox */
/* Import google font */
@import url('https://fonts.googleapis.com/css2?family=Yaldevi:wght@200;300;400;500;600;700&display=swap');

.cart-body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* Styling the Cart-Heading of Image Gallery */
.cart-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: 500; /* Added font-weight property */
  background: linear-gradient(to right, #0e85e0 0%, #26ff1a 100%);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

/* Underline the text in h1 with a thick underline */
.cart-heading h1 {
  text-decoration: underline double #000000; /* Adjust the color and style of the underline */
  padding-bottom: 10px; /* Adjust the thickness of the underline by adding padding */
  margin-bottom: 10px;
}

/* Styling the Cart-Heading of Image Gallery */
.cart-heading-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: 500; /* Added font-weight property */
  background: linear-gradient(to right, #0e85e0 0%, #26ff1a 100%);
  -webkit-background-clip: text;
  color: transparent;
  margin-top: 50px;
  margin-bottom: 20px;
}

/* Underline the text in h1 with a thick underline */
.cart-heading-2 h1 {
  text-decoration: underline double #000000; /* Adjust the color and style of the underline */
  padding-bottom: 10px; /* Adjust the thickness of the underline by adding padding */
  margin-bottom: 10px;
}

/* Styling gallery section where all images are */
.cart-gallery {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
  justify-content: center;
  align-items: center;
}

/* Styling Particular Image */
.cart-gallery-img {
  width: 300px;
  height: 300px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 5px solid #808080; /* Added grey border around the image */
}

/* onHover image will expand a little bit */
.cart-gallery-img:hover {
  transform: scale(1.1);
  cursor: zoom-in;
}

/* This section will be seen when we click on the image */
.cart-image-popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

/* close button when we want to close the bigger image */
.cart-close-button {
  position: absolute;
  top: 20px;
  right: 50px;
  font-size: 60px;
  color: #fff;
  cursor: pointer;
}

.cart-close-button:hover {
  color: red;
}

/* when we click on the image it will expand in a bigger size and will be displayed 
at the middle of the screen */
#cart-popupImage {
    display: block;
    max-width: 80%;
    max-height: 80%;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-in-out;
}

/* Making images more responsive for smaller size devices */
@media (max-width: 670px) {
  .cart-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 10px;
  }
  .cart-gallery-img {
    width: 150px;
    height: 150px;
  }

  .cart-heading {
    font-size: 20px;
  }
}