@import url("https://fonts.googleapis.com/css?family=Roboto:100,400,700");

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

#navbar {
  display: block;
  width: 100%;
  height: 50px;
  text-align: center;
  background: #fff;
  z-index: 5;
  position: fixed;
  top: 0;
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

#navbar .logo-infobae {
  margin-top: 10px;
  height: 30px;
}

#navbar .menu-toggle {
  top: 15px;
  position: absolute;
  left: 20px;
  width: 20px;
  height: 20px;
}

#navbar .menu-toggle .hamb-menu {
  background-image: url("https://www.infobae.com/pb/resources/assets/img/sprite-burger.svg");
  width: 18px;
  height: 18px;
  display: block;
  cursor: pointer;
  color: #757575;
  font-size: 21px !important;
}

#navbar .menu-toggle .close-btn {
  background-image: url("https://www.infobae.com/pb/resources/assets/img/sprite-close.svg");
  width: 18px;
  height: 18px;
  display: block;
  cursor: pointer;
  color: #757575;
  font-size: 30px !important;
}

.menu-overlay {
  background-color: rgba(0, 0, 0, 0.3);
  position: fixed;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.1s;
  padding-top: 80px;
}

.sidenav a {
  margin-left: 10px;
  padding: 8px 8px 8px 20px;
  text-decoration: none;
  font-size: 21px;
  color: #818181;
  display: block;
  color: #757575;
}

.sidenav a:hover {
  border-left: 3px solid #f68e1e;
  color: #f68e1e;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

#wrapper {
  padding-top: 60px;
}

#article-wrapper {
  text-align: center;
  width: 80%;
  margin: 30px auto 10px auto;
  font-size: 18px;
}

#article-wrapper .copete {
  color: #f68e01;
  margin: 47px auto 39px auto;
}

#article-wrapper .autor {
  margin: 0;
}

#article-wrapper .titular {
  margin: 20px auto 30px auto;
  font-size: 48px;
  font-weight: bold;
}

#article-wrapper .fecha {
  margin: 10px auto 30px auto;
  font-size: 16px;
  color: #a5a5a5;
}

#article-wrapper .cuerpo {
  line-height: 26px;
  font-weight: bold;
}

.buttons {
  background: #fff;
  width: 100%;
  height: 60px;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  margin: 30px auto 30px auto;
  display: block;
}

.buttons.sticky {
  padding: 20px 0 0 0;
  position: -webkit-sticky;
  position: sticky;
  top: 50px;
  z-index: 2;
}

.buttons .button {
  line-height: 40px;
  height: 40px;
  width: 115px;
  border: 1px #bababa solid;
  border-radius: 6px;
  display: inline-block;
  text-decoration: none;
  color: #a4a4a4;
}

.buttons .button:hover,
.buttons .button.active {
  border: 1px solid #f68e01;
  background: #f68e01;
  color: #fff;
  cursor: pointer;
}

.buttons .button+.button {
  margin-left: 13px;
}

#wrapper {
  margin: 0;
  width: 100%;
  background: #fff;
}

.modal {
  font-family: 'Roboto', sans-serif;
  display: none;
  position: fixed;
  z-index: 5;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal .close-button {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 35px;
  height: 35px;
  display: block;
  line-height: 27px;
  text-align: center;
  font-weight: 100;
  font-size: 36px;
  cursor: pointer;
  border-radius: 4px;
  background: #454545;
  color: #fff;
  z-index: 1;
}

.modal #image-full {
  cursor: default;
}

.modal .modal-dialog {
  color: #fff;
  font-size: 18px;
  font-weight: normal;
  cursor: default;
  position: relative;
}

.modal .modal-dialog #mujer-nombre a {
  color: #fff;
}

.modal .modal-dialog #mujer-mandato {
  color: #9a9a9a;
}

.modal .modal-dialog #mujer-partido,
.modal .modal-dialog #mujer-mandato {
  font-size: 16px;
}

.gallery {
  font-family: 'Roboto', sans-serif;
  background-color: #000;
  display: grid;
  grid-gap: 0;
  grid-auto-flow: dense;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  grid-template-rows: repeat(8, minmax(156px, 20vw));
  width: 100%;
}

.gallery .gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery .gallery__item {
  position: relative;
  cursor: pointer;
}

.gallery .gallery__item .gallery-data {
  background: rgba(0, 0, 0, 0.7);
  padding: 0 15px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  box-sizing: border-box;
}

@media screen and (min-width: 760px) {

  .gallery.diputadas .gallery__item.medium,
  .gallery.diputadas .gallery__item:nth-child(3n) {
    grid-area: span 2/span 2;
  }

  .gallery.diputadas .gallery__item.large,
  .gallery.diputadas .gallery__item:nth-child(5n) {
    grid-area: span 3/span 3;
  }

  .gallery.senadoras .gallery__item.medium,
  .gallery.senadoras .gallery__item:nth-child(3n) {
    grid-area: span 2/span 2;
  }

  .gallery.senadoras .gallery__item.large,
  .gallery.senadoras .gallery__item:nth-child(5n) {
    grid-area: span 3/span 3;
  }

  .gallery.senadoras .gallery__item-20,
  .gallery.senadoras .gallery__item-25 {
    grid-area: span 1/span 1 !important;
  }

  .gallery__item.default {
    grid-area: span 1/span 1;
  }

  .gallery__item .gallery-data {
    font-size: 0.8em;
  }

  #image-full {
    display: block;
    width: auto;
    height: 80%;
    max-height: 510px;
    float: left;
  }

  .modal-dialog {
    float: left;
    margin: 0;
    width: 720px;
    height: 80%;
    max-height: 510px;
    background: #4d4d4d;
    display: flex;
    align-items: center;
    padding: 0 45px 0 50px;
  }

  .modal-dialog h3 {
    font-size: 20;
    font-weight: bold;
    margin: 0 0 10px 0;
  }

  .modal-dialog #mujer-partido {
    margin: 0 0 16px 0;
    text-transform: uppercase;
  }

  .modal-dialog #mujer-distrito {
    display: block;
    font-size: 16px;
    margin-top: 10px;
  }

  .modal-dialog #mujer-mandato {
    margin: 15px 0 26px;
  }

  .modal-dialog #mujer-descripcion {
    line-height: 26px;
    margin: 0 0 32px 0;
  }
}

@media screen and (max-width: 760px) {
  #article-wrapper {
    text-align: left;
    width: 100%;
    padding: 0 10px 0 10px;
    box-sizing: border-box;
  }

  #article-wrapper .copete {
    font-size: 3.5vw;
  }

  #article-wrapper .titular {
    margin: 20px auto 25px auto;
    font-size: 10vw;
    font-weight: bold;
  }

  #article-wrapper .autor {
    font-size: 3.5vw;
  }

  #article-wrapper .fecha {
    margin: 10px auto 25px auto;
    font-size: 3vw;
  }

  #article-wrapper .cuerpo {
    font-size: calc(0.6em + 1vw);
  }

  .buttons {
    margin: 20px auto 16px auto;
  }

  .buttons .button {
    width: 45%;
    font-size: 0.9em;
  }

  .buttons .button+.button {
    margin-left: 3%;
  }

  .gallery {
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    grid-template-rows: repeat(4, minmax(154px, 20vh));
  }

  .gallery__item.medium,
  .gallery__item:nth-child(3n) {
    grid-area: span 2/span 2;
  }

  .gallery__item.large,
  .gallery__item:nth-child(5n) {
    grid-area: span 3/span 3;
  }

  .gallery__item.default {
    grid-area: span 1/span 1;
  }

  .gallery__item .gallery-data {
    display: none;
  }

  #modal {
    z-index: 3;
  }

  #image-full {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
  }

  .close-button {
    margin-top: 50px;
  }

  .modal-dialog {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
    font-size: calc(0.4em + 2vw) !important;
    position: absolute !important;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    cursor: pointer;
    height: 400px;
  }

  .modal-dialog .mobile-bottom {
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 0 18px 0 18px;
    box-sizing: border-box;
  }

  .modal-dialog h3 {
    margin-bottom: 5px;
  }

  .modal-dialog .modal-content-wrapper {
    width: 90%;
    height: 400px;
  }

  .modal-dialog #mujer-partido {
    margin: 0 0 16px 0;
    text-transform: uppercase;
  }

  .modal-dialog #mujer-distrito {
    display: block;
    font-size: 16px;
    margin-top: 5px;
  }

  .modal-dialog #mujer-mandato {
    margin: 15px 0 26px;
  }

  .modal-dialog #mujer-descripcion {
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
    max-height: 130px;
    line-height: 26px;
    margin: 0 0 32px 0;
  }
}