*{
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }


body{
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      to bottom,
      #faf9f7 0%,
      #faf9f7 20%,
      #f4f0ed 20%,
      #f4f0ed 67%,
      #faf9f7 67%, 
      #faf9f7 100%
    );
  }

  ul{
    padding-top: 40px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    list-style-type: none;
}

li.nav-links {
  padding: 0 20px;
  border: 1px transparent solid;
  border-radius: 40px; /* Flat top/bottom, rounded left/right */
  background-color: rgba(244, 240, 237, 0.8);
  display: inline-block; /* Ensures the shape respects padding */
  margin: 5px 0; /* Adds some vertical spacing */
  font-size: 1.3rem;
  margin-left: 2%;
  font-family: 'Italiana', serif;
}

li.nav-links:hover{
  background-color: rgba(255, 255, 255, 1);
  border: 1px black solid;
}

a {
  text-decoration: none;
  color: whitesmoke;
}

.navbarlinks {
  color: #453734;
}

h1.navitems {
    color: #453734;
    font-family: 'Italiana', serif;
    align-self: flex-start;
}


.container {
  position: relative;
  min-height: 100vh;
}

.container .vertical-flex{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container h2 {
  display: flex;
  font-size: 40px;
  font-family: 'Italiana', serif;
  color: #453734;
  font-weight: bold;
  margin-top: 50px;
  padding: 15px;
  text-align: center;
  text-transform: capitalize;
}
.container .image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 10px;
  margin: 0 auto;
}

.container .image-container .image {
  height: 250px;
  width: 350px;
  border: 10px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
}

.container .image-container .image img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: .2s linear;
}

.container .image-container .image:hover img{
  transform: scale(1.1);
}

.container .popup-image {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  height: 100%;
  width: 100%;
  z-index: 100;
  display: none;
}

.container .popup-image span{
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 60px;
  font-weight: bolder;
  color: #fff;
  cursor: pointer;
  z-index: 100;
}

.container .popup-image img{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #fff;
  border-radius: 5px;
  width: 750px;
  object-fit: cover;
}

/* off-screen-menu */
.off-screen-menu {
  background-color:  rgba(91, 75, 63, 0.5);
  height: 100vh;
  width: 100%;
  max-width: 300px;
  position: fixed;
  top: 0;
  right: -300px;
  display: flex;
  flex-direction: column;
  align-items: center;    
  justify-content: flex-start;
  text-align: center;
  font-size: 3rem;
  transition: .3s ease;
  z-index: 1000;
}
.off-screen-menu.active {
  right: 0;
}

/* nav */
nav {
  padding: 1rem;
  display: flex;
}

/* ham menu */
.ham-menu {
  top: 30px; /* Adjust as needed for spacing */
  right: 40px; /* Adjust as needed for spacing */
  height: 50px;
  width: 40px;
  position: absolute;
  z-index: 1000000;
  display: none;  
}
.ham-menu span {
  height: 5px;
  width: 100%;
  background-color: #453734;
  border-radius: 25px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: .3s ease;
  display: none;
}
.ham-menu span:nth-child(1) {
  top: 25%;
}
.ham-menu span:nth-child(3) {
  top: 75%;
}
.ham-menu.active span {
  background-color: white;
}
.ham-menu.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
  opacity: 0;
}
.ham-menu.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

li.ham-links {
  color:#e8e5df;
  list-style-type: none;
  padding: 30px 10px 10px 10px;
  
}

ul.ham-bar {
  margin-top: 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .ham-menu {
      display: block;
    }
    .ham-menu span {
      display: block;
    }

    .navbar
    {
      display: none;
    }
    .container .image-container {
      padding: 0;
    }
}

@media (max-width:768px) {
  .container .popup-image img{
    width: 95%;
  }

}