* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

header{
  width: 100%;
  height: 120px;
  background-color: rgb(0, 0, 0);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center; /* vertically center items */
  padding: 0 40px;
}
h1 {
  font-size: 30px;
  color: white;
}
h2{
  font-size: 50px;
  color: black;
  text-align: center;
  padding-top: 10rem;

}
nav {
  justify-self: end; /* ✅ push nav to right */
  display: grid;
  align-items: center; /* ✅ vertical centering inside nav */
  height: 100%;
}



a {
  text-decoration: none;
  color: white;
  font-size: 20px;
}
a:hover {
  color: red;
}

ul {
  display: inline-block;
}


ul li {
  display: inline-block; /* ✅ side by side */
  margin-left: 2rem;
  list-style: none;
  padding-right: 2rem;
}

body {
  background-color: rgb(82, 82, 82);

}



.content {
  display: grid;
  place-items: center;
  min-height: calc(10vh - 120px); /* full height minus navbar */
  padding-top: 20px;
}

.edit {
  width: 137.5rem;
  height: 400px;
  border: 3px solid black;
  background-color: white; /* optional */
  overflow: hidden; /* crop image if it overflows */
}

.edit video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop nicely inside box */
  display: block;
}


/* Project */

.grid {
  position: relative;
  margin: 0 auto;
  display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 50px;
 max-width: 1700px;
 padding-top: 5rem;
}
.grid figure {
  border: 4px solid rgb(121, 121, 121);
  border-radius: 10px;
  transition: color 0.5s ease;
  aspect-ratio: 1 / 1;     /* ✅ makes it a square */
  width: 100%;             /* take full width of the grid cell */
  overflow: hidden;        /* clip content inside */
}
.container {
  position: relative;
  max-width: 1200px;
}
.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #e2e2e2;
}
.container:hover .overlay {
  opacity: 1;
}

/* IRL Examples */



.phone {
  position: relative;
  margin: 0 auto;
  display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 50px;
 max-width: 1700px;
 padding-top: 4rem;
}

.phone article {
  border: 8px solid rgb(192, 8, 8);
  border-radius: 10px;
}

.irl video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop nicely inside box */
  display: block;
}



 @media only screen and (min-width: 1200px)
 {
  .edit {
    width: 137.5rem;
  height: 400px;
  border: 3px solid black;
  background-color: white; /* optional */
  overflow: hidden; /* crop image if it overflows */
}
 }

@media only screen and (min-width: 400px) {
    .edit {
  width: 98%;
  height: 250px;
  border: 3px solid black;
  background-color: white; /* optional */
  overflow: hidden; /* crop image if it overflows */
}
}