:root {
 --text-colour: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif; 
    background-color: var(--background-colour);
}

a{
    color: var(--link-color);
    text-decoration: none;
}

.h1{
    font-size: 40px;
    text-align: center;
    margin: 1%
}

/* NAVBAR */
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

nav .left a{
    color: var(--text-color);
    font-size: 30px;
    font-weight: 600;
}

nav .right a{
    color: var(--text-color);
margin: 0 10px;
}

nav .left a:last-child{
    color: var(--background colour);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 5px;
}

.heading{
    text-align: center;
}

.heading-main{
    font-size: 100px;
}

.body-paragraph{
   font-size: 20px; 
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 3%;
    margin-bottom: 3%;
}

.familiar-stills{
    aspect-ratio: 16 / 9;
}

.familiar-stills img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.projects-grid {
  display: grid;
  gap: 40px;
  justify-content: center;
  margin-bottom: 60px;
  grid-template-columns: repeat(2, 1fr);
    margin-left: 40px;
    margin-right: 40px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1827px;
  margin: auto;
  padding: 20px;
}

.embed-wrapper {
  width: 100%;
} 

.camera-equipment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-content: center;
  margin: 0 40px 60px 40px;
}

.camera-equipment img {
  width: 100%;
  height: auto;
  object-fit: cover;
  justify-self: stretch;
}

.boosted{
    margin: 0 40px 60px 40px;
    overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 10s ease;
}

.boosted img{
    width: 100%;
  height: auto;
  object-fit: cover;
}

.text-hover{
     position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s;
}

.boosted a {
    display: block;
    position: relative;
}

.boosted:hover .text-hover{
    opacity: 1;
}

.camera-equipment > div:last-child {
  grid-column: auto !important;
  justify-self: stretch !important;
  width: 100% !important;
}

@media (max-width: 1600px) {
  .camera-equipment {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 2px 40px 2px;
    gap: 20px;
  }

  .camera-equipment img:last-child:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%; /* Optional: make the centered image smaller */
  }
}

@media (max-width: 1400px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
    
     .heading-main {
        font-size: 4rem;
        margin-bottom: 0.5rem;
        
    }

    .body-paragraph {
        font-size: 1rem;
        margin-top: 0;
        margin-left: 5%;
        margin-right: 5%;
    }
    
    .camera-equipment {
    grid-template-columns: 2fr;
    margin: 0 2px 40px 2px; /* Optional: tighter margin on small screens */
    gap: 20px; /* Optional: smaller gap between stacked images */
  }
    
}
@media (max-width: 800px){
  
   nav .right a {
       font-size: 22px;
    }
    
    nav .right a:last-child{
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }
    
    nav .right a span{
        display: none;
    }  

}

@media (max-width: 700px){
    
    .projects-grid {
    grid-template-columns: 1fr;
    margin-left: 20px;
    margin-right: 20px;
    gap: 30px;
  }
    
      .instagram-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

    .h1 {
        font-size: 1.5rem;
    }
    
    .camera-equipment img {
    width: 100% !important;
    justify-self: stretch !important;
  }

  .camera-equipment > :last-child {
    grid-column: auto !important;
    justify-self: stretch !important;
    width: 100% !important;
  }


  .camera-equipment {
    background-color: rgba(255, 0, 0, 0.1); /* light red */
  }
}

@media (max-width: 610px) {
  body .heading-main {
    font-size: 2.5rem !important;
    margin-bottom: 0.3rem;
  }

  body .body-paragraph {
    font-size: 0.65rem !important;
    margin-top: 0.2rem;
  }
  
  nav .right a {
    font-size: 18px;}
  
  nav .left a {
    font-size: 18px;
  }
  
}

@media (max-width: 400px) {

   body .heading-main {
    font-size: 1.5rem !important;
    margin-bottom: 0.3rem;
  }
  
  body .body-paragraph {
    font-size: 0.5rem !important;
    margin-top: 0.2rem;
  }
  
    nav .right a {
    font-size: 13px;}
  
  nav .left a {
    font-size: 13px;
  }