@font-face {
  font-family: 'myheading';
  src: url('fonts/an.eot');
  src: url('fonts/an.eot?#iefix') format('embedded-opentype'),
      url('fonts/an.woff2') format('woff2'),
      url('fonts/an.woff') format('woff'),
      url('fonts/an.ttf') format('truetype'),
      url('fonts/an.svg#an') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  overflow-x: hidden;
}

p {
    font-family: myheading;
    text-align: justify;
    font-size: 12px;
}

.container {
  padding: 5% 5% 5% 5%;
  box-sizing: border-box;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 50px;
  position: relative;
}

.about-link, .reload, .basket {
  flex: 1; /* Allocate equal space to each item */
  text-align: center; /* Center the text within each flex item */
  font-size: 12px;
  font-family: myheading;
  text-decoration: none;
  color: black;
  margin: 0; /* Removes default margin */
}

.about-link {
  text-align: left; /* Align 'about' to the left */
  padding-left: 5%;
}

.basket {
  position: fixed;
  right: 5%;
  text-align: right; /* Align 'cart' to the right */
  z-index: 2000;
  cursor: pointer;
}

.reload {
  text-align: center; /* Ensure 'reload archive' is centered */
  order: 2; /* Place it in the middle */
  position: absolute;
  left: 50%; /* Set the element halfway across the navbar */
  transform: translateX(-50%); /* Shift it back by half its own width */
}
  
.basket-icon {
  font-family: myheading;
  font-size: 12px;
}

.basket-count {
  color: black;
  padding: 2px 2px;
  font-size: 12px;
  font-family: myheading;
}

  .footer p {
    font-size: 10px;
    text-align: center;
  }

  @media screen and (max-width: 500px) {
    .navbar { /* BASKET */
      }
    
      .about-link p, .basket-icon, .basket-count, .reload p {
        font-size: 8px;
      }
    
}

.photo-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px; /* Adjust the gap size as needed */
  margin: 40px; /* Adjust the margin as needed */
}

.photo-project, .photo-theend {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; /* Set a fixed height for the containers */
  overflow: visible; /* Ensures the images stay within the boundaries of the container */
  position: relative; /* Needed for tooltip positioning */
}

.photo-project::after {
  content: attr(data-tooltip);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: black;
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
  font-family: myheading;
  z-index: 10; 
}
.photo-theend::after {
  content: attr(data-tooltip);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: black;
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
  font-family: myheading;
  z-index: 10; 
}

.photo-project:hover::after {
  visibility: visible;
  opacity: 1;
}

.photo-theend:hover::after {
  visibility: visible;
  opacity: 1;
}


.photo-project img {
  max-width: 100%; /* Ensures the image's width does not exceed the container's width */
  max-height: 300px; /* Ensures the image's height does not exceed the container's height */
  object-fit: contain; /* Ensures the full image is shown without cropping */
  width: auto; /* Allows the image to maintain its aspect ratio */
  height: auto; /* Allows the image to maintain its aspect ratio */
}

.photo-theend img {
  max-width: 100%; /* Ensures the image's width does not exceed the container's width */
  max-height: 300px; /* Ensures the image's height does not exceed the container's height */
  object-fit: contain; /* Ensures the full image is shown without cropping */
  width: auto; /* Allows the image to maintain its aspect ratio */
  height: auto; /* Allows the image to maintain its aspect ratio */
}

.footer {
  margin-top: 5%;
}

.footer p {
  font-size: 10px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  p, .about-link p, .basket-icon, .basket-count, .reload p {
    font-size: 10px;
  }

  .container {
    box-sizing: border-box;
  }

  .photo-project::after {
    font-size: 10px;
  }
  
  .photo-theend::after {
    font-size: 10px;
  }

  .photo-container {
    grid-template-columns: repeat(3, 1fr); /* Adjusts to 1 column for very small screens */
    gap: 30px; /* Adjust the gap size as needed */
    margin: 30px; /* Adjust the margin as needed */
    box-sizing: border-box;
  }

  .photo-project,  .photo-theend {
    height: 100px; /* Set a fixed height for the containers */
    margin-bottom: 30px;
  }
  
  .photo-project img {
    max-width: 100%; /* Ensures the image's width does not exceed the container's width */
    max-height: 100px; /* Ensures the image's height does not exceed the container's height */
  }

  .photo-theend img {
    max-width: 100%; /* Ensures the image's width does not exceed the container's width */
    max-height: 100px; /* Ensures the image's height does not exceed the container's height */
  }

  .footer p {
    font-size: 6px;
    text-align: center;
  }
}
