/* General */
h1 {
  font-size: 3.5rem;
  height: 1.5;
  font-weight: 400;
  padding-top: 7%;
  color: #7c7c7c;
}

body {
  padding: 0 7% 2vh 7%;
  font-family: "Montserrat", sans-serif;
  /* background-image: url("../mena.jpg"); */
  /* background-position: center;
  background-size: cover;
  background-repeat: no-repeat; */
}

p,
label,
button {
  font-family: "Montserrat";
}

.container-fluid {
  padding: 0 10% 0;
}

/* Header */
.navbar-padding {
  padding-top: 25px !important;
}

.navbar-toggler {
  border-color: white !important;
}

.social-icon {
  padding: 10px 5px;
  color: #888;
}

.social-icon:hover {
  color: black;
}

/* Home Page */
#home {
  height: 84vh;
  padding-bottom: 10vh;
  overflow-y: scroll;
}

.home-image {
  object-fit: contain;
  width: 100%;
  margin-bottom: 7%;
  border-radius: 10px 100px / 120px;
}

.bio-container {
  display: flex;
  align-items: center;
}


/* h1 for home page */
.white {
  color: white;
}

.heading {
  font-size: 3.5rem;
}

/* if mobile device max width 380px */
@media only screen and (max-device-width: 500px) {
  #title {
    width: 100vw;
    min-height: 90vh;
    background: url("mena3.PNG"), #949494 no-repeat;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom;
  }
}

/* ipad pro */
@media only screen and (device-width: 1024px) and (device-height: 1366px) {
  #title {
    width: 100vw;
    min-height: 77vh;
    background: url("mena2.PNG"), #949494 no-repeat;
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: right bottom;
  }
}

/* ipad */
@media only screen and (device-width: 768px) and (device-height: 1024px) {
  #title {
    width: 100vw;
    min-height: 77vh;
    background: url("mena2.PNG"), #949494 no-repeat;
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: right bottom;
  }
}

@media only screen and (max-width: 900px) {
  .text-align {
    max-width: 100%;
  }
}

@media only screen and (min-width: 600px) {
  .text-align {
    max-width: 60%;
  }
}

/* Change font size for phones and tablets */
@media only screen and (max-device-width: 500px) {
  .heading {
    font-size: 2rem;
  }
}

@media screen and (min-width: 520px) and (max-width: 970px) {
  .heading {
    font-size: 2.3rem;
  }
}

/* So text doesn't overlap picture on small phones */
@media only screen and (max-width: 360px) {
  #title {
    min-height: 90vh;
  }
}

@media only screen and (max-width: 320px) {
  #title {
    min-height: 100vh;
  }
}

/* contact page */
#contact,
#projects {
  min-height: 77vh;
}

/* Padding for Contact Page and Posts Page */
.sections {
  padding-bottom: 5%;
}

/* Individual Post */

#readMore {
  color: grey;
  font-family: "Montserrat";
}

.displayReview {
  white-space: pre-wrap;
}

/* Art Page */
.art-padding {
  padding: 2vh 7vw;
}

@media screen and (max-width: 600px) {
  .art-padding {
    padding: 0;
  }
}

.wrapper,
.wrapper1,
.wrapper2 {
  display: grid;
  grid-gap: 50px 100px;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 20vh;
  gap: 10px;
  grid-auto-flow: dense;
}

.wrapper img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.wrapper1 img {
  padding-top: 20px;
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.wrapper2 img {
  padding-top: 20px;
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 993px) {
  .wrapper img:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
  }

  .wrapper img:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 3 / 5;
  }

  .wrapper img:nth-child(17) {
    grid-column: 4 / 6;
    grid-row: 4 / 6;
  }

  .wrapper img:nth-child(26) {
    grid-column: 2 / 4;
    grid-row: 7 / 9;
  }

  .wrapper1 img:nth-child(1) {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
  }

  .wrapper1 img:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .wrapper2 img:nth-child(4) {
    grid-column: 4 / 6;
    grid-row: 1;
  }

  .wrapper2 img:nth-child(10) {
    grid-column: 1 / 3;
    grid-row: 3 / 5;
  }

  .wrapper2 img:nth-child(13) {
    grid-column: 2 / 4;
    grid-row: 5/7;
  }

  .wrapper2 img:nth-child(15) {
    grid-column: 3;
    grid-row: 3;
  }

  .wrapper2 img:nth-child(18) {
    grid-column: 1 ;
    grid-row: 7;
  }

  .wrapper2 img:nth-child(19) {
    grid-column: 4 / 6;
    grid-row: 3 / 5;
  }
}

@media screen and (max-width: 992px) {
  .wrapper,
  .wrapper1,
  .wrapper2 {
    grid-template-columns: repeat(3, 1fr);
  }

  .wrapper img:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
  }

  .wrapper img:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 4 / 6;
  }

  .wrapper img:nth-child(17) {
    grid-column: 2 / 4;
    grid-row: 7 / 9;
  }

  .wrapper1 img:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .wrapper2 img:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .wrapper2 img:nth-child(10) {
    grid-column: 2 / 4;
    grid-row: 4 / 6;
  }

  .wrapper2 img:nth-child(9) {
    grid-column: 1 / 3;
    grid-row: 6 /8;
  }

  .wrapper2 img:nth-child(18) {
    grid-column: 2 / 4;
    grid-row: 10;
  }

  .wrapper2 img:nth-child(19) {
    grid-column: 2 / 4;
    grid-row: 8 /10;
  }

  .wrapper img:nth-child(26) {
    grid-column: 2 / 4;
    grid-row: 11 / 13;
  }

  .wrapper img:nth-child(22) {
    grid-column: 1 / 3;
    grid-row: 13 / 15;
  }
}

/* Modal for Art pictures */
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.8);
}

/* Modal Content (image) */
.modal-img {
  margin: auto;
  display: block;
  /* max-width: 100%; */
  width: auto;
  max-width: 100vw;
  max-height: 70vh;
}

.modal-container {
  margin-bottom: 10vh;
  height: 80vh;
}

.image-container {
  padding: 0 7%;
  max-height: 70vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-content: center;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

/* Add Animation */
.modal-content,
#caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {
    -webkit-transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
  }
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* The Close Button */
.close {
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-container {
  height: 10vh;
  padding: 0 7%;
  padding-top: 5vh;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Footer */
#footer {
  text-align: center;
  background-color: #e4e4e4;
  bottom: 0;
  width: 100vw;
  min-height: 10vh;
}

footer {
  text-align: center;
}

/* .social-icon {
  padding: 20px 10px;
  color: #949494;
}

.social-icon:hover {
  color: #888;
} */

/* Projects */
.my-image {
  padding-bottom: 7%;
}


.size {
  max-width: 20vw;
}
@media screen and (max-width: 600px) {
  .size {
    max-width: 70vw;
  }
}

.papers-container {
  max-width: 60vw; 
  margin-left:10vw
}

@media screen and (max-width: 600px) {
  .papers-container {
    max-width: 100%; 
    margin-left:0
  }
}
