html {
  box-sizing: border-box;
}

/***Header for MOBILE***/

header {
  display: flex;
  justify-content: center;
  width: 100%;
  border-bottom: 1px solid #000;
}

header nav {
  display: none;
}

/*** Header for TABLET ***/

@media (min-width: 668px) and (max-width: 1024) {
  header {
    display: flex;
    flex-direction: row;
    padding: 0 13px;
    justify-content: flex-start;
    align-items: center;
  }

  header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    width: 100%;
    justify-content: center;
  }

  nav a {
    font-family: "Lexend Giga", sans-serif;
    text-decoration: none;
    justify-content: space-between;
    align-items: center;
    margin-right: 20px;
    color: black;
    font-size: 15px;
    font-weight: 50;
  }

  nav a:hover {
    color: #f7941f;
  }

  .logo {
    width: 70px;
    height: 70px;
    position: center;
    flex-grow: 0;
  }

  .left {
    order: 0;
    display: flex;
    align-items: flex-start;
  }

  .right {
    order: 2;
    display: flex;
    align-items: flex-end;
    margin-left: 20px;
  }

  .leftside {
    display: inline-flex;
  }

  .rightside {
    display: inline-flex;
  }
}
/*** Header for DESKTOP ***/

@media (min-width: 1024px) {
  header {
    background-color: #f7f7f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 13px;
    position: fixed;
    top: 0;
    z-index: 4;
  }
  header nav {
    display: flex;
    margin-left: auto;
    width: 50%;
    justify-content: space-evenly;
  }

  nav a {
    font-family: "Lexend Giga", sans-serif;
    text-decoration: none;
    color: black;
    font-size: 15px;
    font-weight: 50;
  }

  nav a:hover {
    color: #f7941f;
  }
  .logo {
    height: 70px;
    width: 70px;
  }
}

body {
  font-family: arial, sans-serif;
  margin: 0 auto;
  background-color: white;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/***Big news MOBILE***/

.textbox {
  font-family: "Lexend Giga", sans-serif;
  font-size: 30px;
  text-align: center;
  color: rgb(114, 104, 104);
  margin-bottom: 30px;
}
.row {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 0px 30px;
  max-width: 1125px;
  margin: auto;
}
.bignews {
  flex: 0 0 45%;
  background: white;
}

.object-fit {
  overflow: hidden;
  position: relative;
}
.object-fit img {
  position: absolute;
  top: 100%;
  left: 100%;
  height: auto;
  width: auto;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
}
@supports (object-fit: cover) {
  .object-fit img {
    position: static;
    height: 100%;
    width: 100%;
    transform: none;
    object-fit: cover;
  }
}
/***Button styling inside Big News***/

.button {
  display: inline-block;
  padding: 15px 25px;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: blue;
  border: none;
  border-radius: 15px;
  box-shadow: 0 9px #f7941f;
}

.button:hover {
  background-color: red;
}

.button:active {
  background-color: #f7941f;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}
/***Big News section TABLET***/

@media only screen and (min-width: 668px) {
  .row {
    flex-direction: column;
    justify-content: center;
  }
  .text-wrapper {
    opacity: 1;
    justify-content: flex-end;
    text-shadow: 1px 1px 1px #000;
  }
  .title {
    font-size: 30px;
  }
}

/***Big news section DESKTOP***/

@media only screen and (min-width: 1024px) {
  .row {
    flex-direction: row;
    justify-content: center;
    padding: 40px;
  }
}

/***Flexbox gallery MOBILE***/
.container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
  width: 100%;
}
.message {
  display: block;
  font-family: "Lexend Giga", sans-serif;
  font-size: 20px;
  text-align: center;
  color: rgb(114, 104, 104);
  margin-bottom: 25px;
  border-bottom: 1px solid rgb(160, 147, 147);
}
.gallery {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: space-evenly;
  background-color: white;
  margin: 10px 0px 10px 0px;
  width: 100%;
}
.gallery-item img {
  position: relative;
  margin-bottom: 5px;
  width: 100%;
  padding: 0px 30px;
}
.text-wrapper {
  position: absolute;
  width: 60%;
  left: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #f7941f;
  font-family: "Lexend Giga", sans-serif;
}
.title {
  font-size: 6vw;
}

.explanation {
  display: none;
}

/***Flexbox gallery TABLET***/
@media only screen and (min-width: 668px) {
  .gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
  }
  .gallery-item {
    position: relative;
    align-items: center;
    margin: 20px 0px 0px 0px;
    padding: 0px 0px 20px 0px;
    width: 47%;
  }
  .gallery-item img {
    width: 100%;
    margin-bottom: 5px;
  }
  .text-wrapper {
    position: absolute;
    width: 60%;
    left: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #f7941f;
    font-family: "Lexend Giga", sans-serif;
  }

  .title {
    font-size: 2.5vw;
  }
  .explanation {
    display: none;
  }
}
/***Flexbox gallery DESKTOP***/

/*** As there is no hover effect on touch screens, I added hover effect for DESKTOP***/

@media only screen and (min-width: 1024px) {
  .container {
    width: 100%;
    justify-content: space-evenly;
  }

  .gallery {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }

  .gallery-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 20px 0px 0px 0px;
    padding: 0px 0px 20px 0px;
    width: 23%;
  }

  .gallery-item img {
    width: 100%;
  }

  .text-wrapper:hover {
    transition: all 0.8s ease;
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
  }
  .explanation {
    display: flex;
    opacity: 0;
    font-size: 15px;
    color: white;
  }
  .title {
    font-size: 2.5vw;
  }
  .title:hover + .explanation {
    opacity: 1;
  }
}

/***Footer MOBILE***/

.footer {
  text-align: center;
  display: inline-block !important;
  background-color: whitesmoke;
  width: 100%;
  margin-top: 50px;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  line-height: 50px;
}

.footertext {
  color: #f7941f;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
}
.footer-links {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.social {
  display: none;
}

a.footer {
  text-decoration: none;
  color: black;
  font-size: 16px;
  font-family: "Lexend Giga", sans-serif;
  margin: 5px;
}
/*** Remove footer menu for DESKTOP ***/

@media only screen and (min-width: 1024px) {
  .footer-links {
    display: none;
  }
}
