/************ DEFAULT STYLES ************/

body {
    font-family: "Inter";
    font-size: 16px;
    line-height: 1.5em;
    font-weight: 400;
    color:  #292929;
}

div.wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25em;
}

a.btn, a.btn:link, a.btn:visited {
    display: inline-block;
    background-color: #ffa1c4;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    padding: 0.5em 1.5em 0.625em;
    width: auto;
    opacity: 1;
    transition: 0.3s;
}

a.btn:hover {
    background-color: #d55685;
}
a.btn:active {
    transform: scale(0.95);
}
html {
  scroll-behavior: smooth;
}

/************ INTRO STYLES ************/

#intro {
    background-color: #ffe7f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
h1 {
    font-size: 5rem;
}
.subhead {
    font-size: 2rem;
    font-weight: 600;
    margin: 1em 0 1.5em;
}
#intro a.btn {
    font-size: 1.25rem;
}

/************ PORTFOLIO STYLES ************/

#second {
    padding: 60px 0; 
}
h2 {
    font-size: 2rem;
    margin-bottom: 1.5em;
}
#portfolio {
    display: grid;
    grid-template-columns: auto auto;
    gap: 60px 40px;
}
.item h3 {
    font-size: 2rem;
    margin: 0.5em 0 0.75em;
}
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.lightbox:target {
  display: flex;
}

.close {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}


/************ FOOTER STYLES ************/
footer {
    margin-top: 60px;
}



/************ RESPONSIVE STYLES ************/
/************ RESPONSIVE STYLES ************/
/************ RESPONSIVE STYLES ************/
/************ A.K.A. MEDIA QUERIES ************/

@media only screen and (max-width: 895px) {
  #portfolio {
    grid-template-columns: 1fr;
  }
    #intro .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .item {
    display: flex;
    flex-direction: column;
  }
  .item img {
    width: 100%;
    height: auto;
  }
  h1, p {
    text-align: center;
  }
  a.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* centers the button itself */
  }
   a.btn {
    font-size: 1.25rem;
    padding: 0.75em 2em;
  }
}




