/*=============================================
=            Reset            =
=============================================*/
body,
p,
a,
ul,
li {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

li {
  list-style-type: none;
}

/*=====  End of Reset  ======*/





/*=============================================
=            Base Styles            =
=============================================*/
html {
  overflow-y: scroll;
}

body {
  font-family: aktiv-grotesk, sans-serif;
  font-style: normal;
  font-weight: 300;
  color: rgb(52, 58, 64);
  font-size: 28px;
  line-height: 1.3;
}

main {
  max-width: 1200px;
  padding: 130px 20px 0 20px;
  margin: 0 auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  box-sizing: border-box;
}

.grid-12-rows {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: repeat 4 minmax(20px, auto);
  box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
  color: #343a40;
  font-style: normal;
  font-weight: 300;
  line-height: 1.4em;
}

p,
a,
li {
  color: #343a40;
  line-height: 1.4em;
  font-size: 1em;
}

h1,
h2 {
  font-size: 1.2em;
}

h3 {
  font-size: 1em;
}

h4 {
  font-size: 1em;
}

.leading {
  font-size: 1em;
}

a:hover {
  color: #2d2dfd;
}


/*=====  End of Base Styles  ======*/





/*=============================================
=            Mobile styles            =
=============================================*/

.text-intro-left {
  grid-column: 1/8;
}

.block {
  display: block;
}

.img__description {
  opacity: 1;
}

.portfolio-block {
  padding: 30px 0 80px 0;
}

.position-text-01,
.position-text-02,
.position-text-03 {
  grid-column: 1/13;
  align-self: center;
  text-align: start;
}

.position-img-01,
.position-img-02,
.position-img-03 {
  grid-column: 1/13;
}

img {
  max-width: 100%;
}

.fit-img-v {
  /* max-width: 530px; */
  width: 100%;
  height: 100%;
}

.fit-img-h {
  /* max-height: 530px; */
  width: 50%;
  height: 100%;
}

footer {
  margin-top: 50px;
  /* position: fixed; */
  /* bottom: 10px; */
}

/* tablet styles */
@media screen and (min-width: 620px) {
  
  .block {
    display: block;
  }

  .img__wrap {
    position: relative;
    overflow: show;
  }

  .img__description {
    font-size: 1.2em;
    font-weight: 300;
    text-decoration: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    background: rgba(43, 43, 51, 0.9);
    /* border: #343a40 1px solid; */
    color: rgb(216, 38, 38);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s, visibility 0.3s;
    /* position the text in t’ middle*/
    display: flex;
    align-items: center;
    /* justify-content: center; */
    text-align: start;
  }

  .img__wrap:hover .img__description {
    visibility: visible;
    opacity: 1;
  }

  .some-element {
    text-transform: uppercase;
    /* text-decoration: underline; */
    opacity: 0;
    transition: opacity 0.5s linear;
  }

  .some-div:hover .some-element {
    display: block;
    opacity: 1;
  }

  .some-div:hover {
    color: #2d2dfd;
  }

  .position-text-01 {
    grid-column: 5/7;
    grid-row: 2/3;
    align-self: center;
    text-align: start;
  }

  .position-img-01 {
    grid-column: 7/13;
    grid-row: 1/4;
    width: 100%;
  }

  .position-text-02 {
    grid-column: 8/11;
    grid-row: 2/3;
    align-self: center;
    text-align: center;
  }

  .position-img-02 {
    grid-column: 3/9;
    grid-row: 1/4;
  }

  .position-text-03 {
    grid-column: 1/3;
    grid-row: 2/3;
    align-self: center;
    text-align: end;
  }

  .position-img-03 {
    grid-column: 4/13;
    grid-row: 1/4;
  }

  .fit-img-v {
    /* max-width: 530px; */
    width: auto;
    height: auto;
  }

  .fit-img-h {
    /* max-height: 530px; */
    width: auto;
    height: auto;
  }
}

/*=====  End of Mobile styles  ======*/




/*=============================================
=            Header and Menu            =
=============================================*/

.nav-container {
  position: fixed;
  width: 100%;
  background-color: #fff;
  line-height: 0.2;
  z-index: 99;
}

nav {
  display: grid;
  max-width: 1200px;
  grid-template-columns: 40% 1fr;
  margin: 0 auto;
  padding: 30px 1em 20px 20px;
}

nav a {
  color: #343a40;
  text-decoration: none;
  font-family: aktiv-grotesk, sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 1.1em;
  letter-spacing: 0.04em;
}

.logo {
  grid-column: 1;
  width: 64px;
}

.left-menu {
  grid-column: 2;
}

.left-menu li {
  display: inline;
  list-style: none;
  padding-right: 30px;
  margin: 0 auto;
}

.burger-menu {
  width: 25px;
  grid-column: 2;
  justify-self: end;
  padding-right: 5%;
  align-self: center;
}

#nav-toggle,
.burger-menu {
  display: none;
}

@media only screen and (max-width: 965px) {

  .burger-menu {
    display: inline-block;
  }

  .logo {
    align-self: center;
  }

  .left-menu {
    display: none;
  }

  .left-menu ul {
    display: grid;
    grid-template-rows: 12vh 12vh 12vh 12vh;
  }

  #nav-toggle:checked~.left-menu {
    display: grid;
    list-style: none;
    height: 100vh;
    grid-column: 1/3;
  }
}


/*=====  End of Header and Menu  ======*/