  /* CSS for navigation bar */
  nav {
    color: black; /* Text color for the navigation links */
    padding: 10px; /* Padding around navigation links */
    font-family: fam;
    padding-bottom: 2rem;

}

nav ul {
    list-style-type: none; /* Remove bullet points from the list */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
  
}

nav ul li {
    display: inline; /* Display list items inline */
    margin-right: 10px; /* Add margin between list items */
}

nav ul li a {
    color: black; /* Text color for navigation links */
    text-decoration: none; /* Remove default underline */
    border: 1.5px solid black;
    font-size: .8rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

/* Original CSS from your code */
.header {
    display: flex;
    flex-direction: row;
    text-align: justify;
    align-items: center;
    justify-content: center;
}

.title{
  margin: auto;
  text-align: center;
  padding-bottom: 1rem;
  font-family: fam;
  font-size: 1.3rem;
  margin: 

}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: yellow;
}



.grid-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.grid-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1.5px solid #000000;
}

.expanded .grid-item {
  border-top: 1.5px solid #000000;
  position: absolute;

}

.expanded .grid-item img {
  max-width: 80%; /* Increase max-width for expanded image */
  max-height: 80%; /* Increase max-height for expanded image */
  transform: translate(0, 0) scale(1); /* Start with original scale */
  margin: auto;
  
}


.grid-item img {
  max-width: 20%;
  height: auto;
  cursor: pointer;
  transform: translate(0, 0) scale(1); /* Start with original scale */
  transition: max-width 1s ease, height 1s ease, transform 0.5s ease; /* Include transform in transition */
}


.expanded {
  background-color: white
}

.expanded img {
  max-width:80%;
  max-height: 80%;
}


.caption {
  margin: 0;
  text-align: left;
  flex-grow: 1;
  font-family: fam;
  color: black;
  padding: 1rem;
}

.expanded .caption {
  align-self: center; /* Align caption to the top */
    text-align: center; /* Center align caption when expanded */
    display: inline-flex ;
    align-content: left;
   
}



@font-face {
  font-family: 'fam';
  src: url('famgrotesk.woff') format('woff'), url('famgrotesk.woff') format('woff');
}


#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffffff; /* Set background color */
z-index: 9999; /* Ensure it's above other elements */
display: flex;
justify-content: center;
align-items: center;
flex-direction: column; /* Align text vertically */
background-color: yellow;
}

#preloader p {
font-size: 2rem; /* Adjust font size */
color: black; /* Text color */
margin: 4rem;
font-family: fam;
background-color: yellow;
}


#image-cycle {
   max-width: 100%;
}

#image-cycle img {
    width: 40%;
    margin: auto;
  
}

@keyframes fade {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

#toggleButton{
  color: yellow;
  border-style: hidden;
  background-color: black;
  cursor: pointer;
  padding-bottom: .2rem;
   margin-bottom: 1rem;
   margin-left: 1rem;
   font-family: fam;
   right: 0;

}

/* For screens with a minimum width of 1024 pixels (typical for desktops) */
@media screen and (min-width: 1024px) {
.caption {
margin: 0;
text-align: left;
font-size: 1.5rem;
flex-grow: 1;
font-family: fam;
color: black;
}
.grid-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: none;
border-top: 2px solid #000000;
}
.grid-item img {
  max-width: 5%;
  height: auto;
  cursor: pointer;
  transform: translate(0, 0) scale(1); /* Start with original scale */
  transition: max-width 1s ease, height 1s ease, transform 0.5s ease; /* Include transform in transition */
}
.expanded img {
max-width: 80%;
max-height: 80%;
}
.expanded .grid-item {
  border-top: 1.5px solid #000000;
  position: absolute;
}

.expanded .grid-item img {
  max-width: 60%; /* Increase max-width for expanded image */
  max-height: 60%; /* Increase max-height for expanded image */
  transform: translate(0, 0) scale(1); /* Start with original scale */

}

.caption {
  margin: 0;
  text-align: left;
  flex-grow: 1;
  font-family: fam;
  color: black;
  font-size: 1rem;
}

.expanded .caption {
  align-self: center; /* Align caption to the top */
    text-align: center; /* Center align caption when expanded */
    display: inline-flex ;
    align-content: left;
    font-size: 5rem;
   
}

nav {
color: black; /* Text color for the navigation links */
padding: 10px; /* Padding around navigation links */
font-family: fam;
padding-bottom: 2rem;
font-size: 1rem;
}
nav ul {
list-style-type: none; /* Remove bullet points from the list */
margin: 0; /* Remove default margin */
padding: 0; /* Remove default padding */
}

nav ul li {
display: inline; /* Display list items inline */
margin-right: 10px; /* Add margin between list items */
}

nav ul li a {
color: black; /* Text color for navigation links */
text-decoration: none; /* Remove default underline */
}

}