/* Set the font family for the entire page and remove any margins/padding from the body element */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    margin-bottom: 60px; /* This adds a margin at the bottom of the body element to create space for the footer */
  }
  
/* Center all h1 headings */
  h1 {
    text-align: center;
  }
 
/* Create a flex container with centered content and wrapped elements for the gallery*/
  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

/* Set the maximum width and shadow for images */
  img
{
  max-width: 600px;
  max-height: 400px;
  box-shadow: 0px 0px 20px #0000006d;
  border-radius: 5%;
}

/* Add margins and position each image element relative to the others */
.image {
  margin: 20px;
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
}


/* Create a caption element for each image and position it absolutely at the bottom of the container */
  .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 16px;
  }

/* Styling footer - making it sticky so it stays at the bottom of page */ 
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #f5f5f5;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  z-index: 999; /* This ensures that the footer element appears on top of any other elements */
}

/* Sets font colour, padding, and display properties for header */
.header {
	color: #000000;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Set position, padding, font colour, font size, font weight, and text-align properties for caption */
.caption {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 10px;
	color: #ffffff;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	border-radius: 10px 10px 10px 10px;
  max-width: 100%;
}


/* Set height, display, justify-content, and align-items properties for nav */
nav {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Set list-style, margin, padding, and display properties for nav ul */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

  /* Set display, padding, colour, text-decoration, font-size, font-weight, text-transform, and transition properties for nav ul a */
  nav ul a {
    display: block;
    padding: 0 20px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
  }
  
  /* Set background colour and font colour properties for nav ul a:hover */
  nav ul a:hover {
    background-color: #333;
    color: #f5f5f5;
  }