@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,300;0,500;0,600;0,700;0,900;1,500;1,600;1,700&display=swap");

:root {
  --primary-color: #05306a;
  --secondary-color: #2a28b5;
  --gray: #222;
  --background-color: #fefefe;
}

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

html {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
}
body {
  margin: 0 auto;
  position: relative;
  max-width: 1440px;
  z-index: -30;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  background: #fdfdfd;
  color: var(--gray);
}
.wrapper {
  position: relative;
  max-width: 1440px;
  width: 100%;
  height: auto;
  display: grid;
  margin: 0 auto;
  grid-template-columns: 30px 1fr 60px;
  grid-template-rows: 60px 200px 1fr 20px 80px;
}
.header {
  position: fixed;
  width: 100%;
  max-width: 1440px;
  background: rgba(254, 254, 254, 1);
  top: 0;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 60px;
  grid-template-columns: 30px 1fr 60px;
  z-index: 2;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
}
p {
  margin: 20px 0 10px;
  font-size: 1.2rem;
  line-height: 1.6rem;
  letter-spacing: 0.03rem;
}
.title h1 {
  font-size: 5rem;
  color: var(--primary-color);
  line-height: 6rem;
  letter-spacing: 0.15rem;
}
.par-lead {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8em;
}

/* ===== BUTTON ===== */
.btn {
  cursor: pointer;
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 10px 30px;
  border: 0;
}
.btn:hover {
  transform: scale(0.95);
}
/* ===== LINK WITHIN COPY ===== */
.inner-link {
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary-color);
}

/* ===== LOGO ===== */
.logo {
  margin: 0 0 0 30px;
  position: absolute;
  grid-column: 1 / 5;
  grid-row: 1 / 2;
  justify-self: start;
  align-self: end;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.15rem;
  z-index: 20;
  text-decoration: none;
}
.logo a {
  text-decoration: none;
  color: var(--gray);
  cursor: pointer;
  text-transform: uppercase;
}

.logo:hover {
  transform: scale(0.98);
  color: var(--primary-color);
}

/* ===== TOGGLE ===== */
.toggle {
  position: absolute;
  grid-column: -2 / -1;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-color) url(../images/menu.png);
  background-size: 30px;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 20;
  cursor: pointer;
}
.toggle.active {
  background: var(--primary-color) url(../images/close.png);
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== NAVIGATION ===== */
.navigation {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.navigation.active {
  left: 0;
}
.navigation ul {
  position: relative;
}
.navigation ul li {
  position: relative;
  list-style: none;
  text-align: center;
}
.navigation ul li a {
  background: #fefefe;
  font-size: 4rem;
  line-height: 8rem;
  color: var(--gray);
  text-decoration: none;
  font-weight: 200;
  padding: 0 50px;
}
.navigation ul li a:hover {
  font-weight: 300;
  color: #2a28b5;
  margin: 0 50px;
}
.active-page {
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(3, 3, 3, 1);
}

/* ===== FOOTER ===== */
.footer-section {
  display: grid;
  grid-row: 5 / 6;
  grid-column: 1 / -1;
  color: var(--primary-color);
  width: 100%;
  padding: 5px 55px 5px 5px;
  text-align: center;
}
.footer-section p {
  align-self: center;
  font-size: 1.2rem;
  line-height: 1.4rem;
}

/* ===== PORTFOLIO - PROJECT PAGES ===== */

/*------*/
.port-header {
  position: relative;
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  display: grid;
}
.port-header .project-title {
  width: 100%;
}
.port-header .project-title h1 {
  font-size: 4rem;
  color: var(--primary-color);
}
.port-header .project-title p {
  font-size: 2rem;
  font-weight: 300;
  margin-top: 10px;
}
.port-header .project-title h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.1rem;
  margin-bottom: 2px;
}

/*------*/
.card-container {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  position: relative;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

.card-container .logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-self: center;
}
.card-container .logo-card .imgbx {
  position: relative;
  width: 420px;
  height: 420px;
}
.card-container .logo-card .imgbx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-container .logo-card .card-content {
  position: relative;
  width: 450px;
  height: 100px;
  display: block;
  padding: 20px 20px;
  text-align: center;
  /* background: #fafafa; */
}
.card-container .logo-card .card-content h3 {
  font-size: 1.4rem;
  line-height: 1.6rem;
  font-weight: 700;
}
.card-container .logo-card .card-content p {
  font-size: 1.5rem;
  line-height: 1.8rem;
  font-weight: 300;
  margin: 0;
}
.card-container .logo-card .card-content div {
  padding: 20px;
  text-align: left;
}

/*=====CONTAINER======*/
.container {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*=====CONTAINER======*/

.container .card {
  position: relative;
  margin: 10px 0;
  justify-self: center;
  align-self: center;
}
.container .card .imgbx {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.container .card .imgbx img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container .card .imgbx-hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card .bdr {
  border: 1px solid #666;
}
.container .card .illt-imgbx-hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.container .card .imgbx-hero img {
  width: 100%;
  height: 100%;
  object-position: 50%;
  object-fit: cover;
}

.container .card .illt-imgbx-hero img {
  width: 100%;
  height: 100%;
  object-position: 50%;
  object-fit: cover;
}

.illt-imgbx-hero .card .bdr {
  border: 1px solid #666;
}

/*-----*/
.inner-container {
  position: relative;
  width: 100%;
  max-width: 1350px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 650px));
}

.inner-container .illt-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.inner-container .illt-card .imgbx {
  position: relative;
  width: 650px;
  height: 650px;
}

.inner-container .illt-card .imgbx-tall {
  position: relative;
  width: 650px;
  height: 1902px;
}

.inner-container .illt-card .imgbx img {
  /* position: absolute;
  top: 0;
  left: 0; */
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.inner-container .illt-card .illt-card-content {
  position: relative;
  width: 650px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inner-container .illt-card .illt-card-content div {
  padding: 20px;
  text-align: left;
}
/* .inner-container .illt-card .illt-card-content .par-lead {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8em;
} */

.inner-container .illt-card .illt-card-content p {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4em;
  margin: 0 0 20px;
}

/*------*/
.container .dbl-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0;
  justify-content: center;
  /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
}
.container .dbl-card .dbl-imgbx {
  position: relative;
  width: 50%;
  display: flex;
  object-fit: cover;
}
.container .dbl-card .dbl-imgbx img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dbl-imgbx img .spc {
  height: 100px;
  margin-bottom: 100px;
}

/*-----*/

/*------*/
.container .multi-card {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 10px 0;
  justify-content: center;
}
.container .multi-card .mlt-imgbx {
  position: relative;
  width: 30%;
  display: flex;
  object-fit: cover;
}
.container .multi-card .mlt-imgbx img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*------*/
.copy-only {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}
.copy-content {
  width: 48%;
  position: relative;
  text-align: left;
  padding: 10px 20px 0 0;
}
.copy-content p {
  width: 100%;
  display: flex;
  flex-direction: column;
  vertical-align: text-top;
  font-size: 1.5rem;
  line-height: 1.4em;
  font-weight: 300;
  margin: 0 0 20px;
}

/*------*/
.subhead {
  position: relative;
  width: 100%;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
}

.subhead .copy-content {
  width: 100%;
  position: relative;
  text-align: left;
  padding: 10px 20px 0 0;
}

.subhead .copy-content h3 {
  margin-top: 80px;
  width: 100%;
  display: flex;
  align-self: flex-end;
  font-size: 2rem;
  line-height: 2.6rem;
  font-weight: 400;
}

/*------*/
.aside-container {
  text-align: center;
  display: flex;
  justify-content: center;
  justify-self: center;
}
.aside {
  width: 100%;
  padding: 20px 60px;
  margin: 40px auto 10px;
}
.aside p {
  font-size: 1.5rem;
}
.aside .btn {
  margin: 5px 0 40px;
  background: var(--gray);
}
.aside .btn:hover {
  background: var(--primary-color);
}

/* ============= MEDIA QUERIES ============= */

@media only screen and (max-width: 1040px) {
  /*------1000 General------*/
  .logo {
    font-size: 2.5rem;
  }

  /*-------PORTFOLIO - PROJECT PAGES--------*/
  .port-header .project-title h1 {
    font-size: 3rem;
  }
  .port-header .project-title p {
    font-size: 2rem;
  }
  .port-header .project-title h3 {
    font-size: 1.5rem;
  }
}

@media only screen and (max-width: 800px) {
  .copy-only .copy-content {
    width: 100%;
  }
  .inner-container {
    width: 100%;
  }
  .inner-container .illt-card {
    margin: 10px 0;
    justify-self: center;
  }

  .inner-container .illt-card .imgbx {
    width: 100%;
    height: 100%;
  }
  .inner-container .illt-card .imgbx img {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

  .inner-container .illt-card .illt-card-content {
    width: 100%;
    height: 150px;
  }
}

@media only screen and (max-width: 680px) {
  /*-----680 General -------*/
  .logo {
    font-size: 1.75rem;
  }

  /*-------PORTFOLIO - PROJECT PAGES--------*/
  .port-header .project-title h1 {
    font-size: 2.5rem;
  }
  .port-header .project-title p {
    font-size: 1.5rem;
    font-weight: 200;
  }
  .port-header .project-title h3 {
    font-weight: 200;
    font-size: 1.25rem;
  }
  .container .dbl-card .dbl-imgbx {
    width: 100%;
  }

  .copy-only .copy-content p {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }
  .copy-only .copy-content {
    width: 100%;
  }
  .subhead .copy-content h3 {
    margin-top: 50px;
    font-size: 1.6rem;
    line-height: 2rem;
    font-weight: 400;
  }
  .port-header,
  .card-container {
    max-width: 300px;
  }

  .card-container {
    flex-direction: column;
    margin: 0 auto;
  }

  .card-container .logo-card .imgbx {
    width: 300px;
    height: 300px;
  }
  .card-container .logo-card .imgbx img {
    width: 100%;
    height: 100%;
  }
  .card-container .logo-card .card-content {
    position: relative;
    width: 300px;
    height: 80px;
    display: block;
    padding: 5px 10px 10px;
  }
  .card-container .logo-card .card-content h3 {
    font-size: 1.2rem;
    line-height: 1.2rem;
    font-weight: 700;
  }
  .card-container .logo-card .card-content p {
    font-size: 1.2rem;
    line-height: 1.6rem;
    margin: 2px 0 0;
  }
  .card-container .logo-card .card-content div {
    padding: 20px;
    text-align: left;
  }

  .fllr img {
    display: none;
  }

  /*-----*/
  .container .multi-card {
    flex-direction: column;
    margin: 0;
  }
  .container .multi-card .mlt-imgbx {
    width: 100%;
    height: 100%;
  }
  .multi-card .mlt-imgbx img {
    width: 100%;
    height: 100%;
  }

  .multi-card .mlt-imgbx .lg-only {
    display: none;
  }

  /*-----*/
  .aside-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  .aside {
    align-self: center;
    width: 100%;
    height: 100px;
    padding: 0;
    margin: 10px 0 0;
  }

  /* ---------footer--------- */
  .footer-section {
    padding: 0;
  }
}
@media only screen and (max-width: 520px) {
  .container .card .illt-imgbx-hero {
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
  .container .card .imgbx-hero img {
    width: 90%;
    height: 90%;
    /* object-position: 50%;
    object-fit: cover; */
  }

  .container .card .illt-imgbx-hero img {
    width: 100%;
    /* height: 100%; */
    object-position: 50%;
    object-fit: cover;
  }

  .illt-imgbx-hero .card .bdr {
    border: 1px solid #666;
  }
  .inner-container {
    position: relative;
    width: 100%;
    grid-template-columns: 1fr;
  }
  .inner-container .illt-card {
    margin: 5px 0;
    justify-self: center;
  }
  .inner-container .illt-card .imgbx-tall {
    width: 100%;
    height: 100%;
  }

  .inner-container .illt-card .imgbx-tall img {
    width: 230px;
    height: 732px;
  }

  .inner-container .illt-card .imgbx {
    width: 230px;
    height: 230px;
  }
  .inner-container .illt-card .imgbx img {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

  .inner-container .illt-card .illt-card-content {
    width: 230px;
    height: 150px;
  }
}
@media only screen and (max-width: 380px) {
  .navigation ul li a {
    font-size: 2.5rem;
    line-height: 6rem;
  }
  .active-page {
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(3, 3, 3, 1);
  }
  /*-------PORTFOLIO - PROJECT PAGES--------*/
  .project-title .title h1 {
    font-size: 1rem;
    line-height: 2rem;
  }
  .port-header,
  .card-container {
    max-width: 290px;
    margin: 0;
  }

  .card-container .logo-card {
    display: flex;
    justify-content: center;
  }

  .card-container .logo-card .imgbx {
    width: 100%;
  }
  .card-container .logo-card .imgbx img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .card-container .logo-card .card-content {
    width: 100%;
    height: 100px;
    display: block;
    padding: 5px;
  }
  .card-container .logo-card .card-content h3 {
    font-size: 1.2rem;
    line-height: 1.4rem;
    font-weight: 600;
  }
  .card-container .logo-card .card-content p {
    font-size: 1.2rem;
    line-height: 1.7rem;
    margin: 2px 0 0;
  }

  /* ---------footer--------- */
  .footer-section p {
    font-size: 0.9rem;
  }
}

@media only screen and (max-height: 420px) {
  /*------1000 General------*/
  .navigation ul li a {
    font-size: 2.5rem;
    line-height: 6rem;
  }
  .active-page {
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(3, 3, 3, 1);
  }

  /*-------PORTFOLIO - PROJECT PAGES--------*/
  .project-title .title h1 {
    font-size: 1rem;
  }
}
