figure {
  margin: 0;
}
img.flag {
  height: 17px;
}

.search-result-tabs {
  display: flex;
  padding: 0;
  list-style: none;
  li {
    margin-right: 12px;
    &:last-child {
      margin-right: 0;
    }
  }
}

.flex-tiles {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;

  > * {
    padding: 10px;
  }

  .small-1 {
    flex: 0 0 100%;
  }

  @media (min-width: 980px) {
    .medium-5 {
      flex: 0 0 20%;
    }
  }
}

.flex-masonry {
  display: flex;
  flex-flow: wrap;
  margin-right: -10px;

  > * {
    height: 245px;
    margin: 0 10px 10px 0;
    flex: 1 0 auto;
    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }

  // .small-1 {
  //   flex: 0 0 100%;
  // }

  // @media (min-width: 980px) {
  //   .medium-5 {
  //     flex: 0 0 20%;
  //   }
  // }
}

.album-photo-tile {
  height: 100%;
  a {
    display: block;
    height: 100%;
  }

  img {
    height: 100%;
  }
}

.album-card {
  background-color: #ccc;
  //width: 280px;
  height: 280px;
  position: relative;
  overflow: hidden;

  a.album-link {
    display: flex;
    /* align-items: flex-end; */
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 18px;
    box-sizing: border-box;
    text-decoration: none;
    color: white;
    background: linear-gradient(0deg, rgba(0,0,0,.9) 0, transparent 50%, transparent);

    &::before {
      background: #afb7bc;
      content: "";
      height: 1px;
      position: absolute;
      transition: all .15s ease-in-out;
      left: 15px;
      right: 15px;
      top: -4px;
    }

    &::after {
      background: #afb7bc;
      content: "";
      height: 1px;
      position: absolute;
      transition: all .15s ease-in-out;
      left: 10px;
      right: 10px;
      top: -2px;
    }
  }

  .download-link {
    color: #F4F4F4;
    font-size: 26px;
    display: inline-block;
  }

  .info {
    font-size: 15px;
  }

  .title, .info {
    position: relative;
    transition: .3s;
    top: 0;
  }

  .interaction-bar {
    transition: .2s;
    text-align: center;
    position: relative;
    padding: 6px;
    top: 0;
  }

  &:hover {
    .interaction-bar {
      top: -50px;
    }
    .title, .info {
      top: -35px
    }
  }
}

.album-cover {
  padding: 60px 0;
  margin-bottom: 20px;
  width: 100%;
  align-items: center;
  background-color: #000;
  background-position: 50%;
  background-size: cover;
  color: #fff;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;

  h1 {
    font-size: 2em;
    font-weight: 300;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0;
    text-shadow: 0 1px 1px #000;
  }

  .overlay {
    background: rgba(0,0,0,.6);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
  }

  .cover-content {
    z-index: 1;
    max-width: 90%;
    text-align: center;
  }

  .album-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .open-full-modal {
    text-decoration: none;
    color: #898989;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 18px;
    &:hover {
      color: #f9f9f9;
      text-decoration: underline;
    }
  }

  .embed-ifr {
    max-width: 100%;
  }

  .download-link {
    color: inherit;
    font-size: 32px;
    margin-top: 12px;
    display: inline-block;
  }
}

.full-modal {
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(243,245,246, .5);
  color: #333;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  .content {
    overflow: auto;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
    box-sizing: border-box;
    padding: 15px;
    max-height: calc(100% - 50px);
    min-height: 150px;
    width: 600px;
    max-width: 99%;
    p {
      margin: 0 0 10px 0;
    }
  }
  &.open {
    opacity: 1;
    pointer-events: auto;
  }
}

.result-total {
  margin-left: 7px;
}

.result-panel {
  display: none;
  &.active {
    display: block;
  }
}

.photo-frame {
  float: left;
  margin: 8px;
  max-width: 100%;

  img {
    width: 100%;
  }
}

.photo-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .85);
  z-index: 20;
  overflow-y: scroll;
  overflow-x: hidden;

  .photo-viewer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
  }

  .close {
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 35px;
    line-height: 35px;
    appearance: none;
    outline: none;
    border: none;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
  }
}

.photo-viewer-header {
  height: 50px;
  flex: 0 0 50px;
}

.photo-viewer-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex: 1;
  overflow: hidden;

  .ctrl {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    font-size: 40px;
    font-weight: bolder;
    a {
      text-decoration: none;
      color: #FFF
    }
  }

  img {
    object-fit: contain;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
  }
}

.photo-viewer-footer {
  height: 78px;
  flex: 0 0 78px;
}

.photo-viewer-expand {
  margin-top: -50px;
  padding: 20px;
  background-color: #FFF;
}

.cat-label {
  background-color: #5bc0de;
  display: inline;
  padding: 0.2em 0.6em 0.3em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25em;
}

.wtsp-share {
  a {
    height: 28px;
    border-radius: 4px;
    padding: 2px 10px 2px 32px;
    position: relative;
    box-sizing: border-box;
    background-color: #25d366;
    background-image: asset-url('whatsapp.svg');
    background-repeat: no-repeat;
    background-position:7px center;
    background-size: 18px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;

    &:active {
      box-shadow: inset 0 3px 7px rgba(0, 0, 0, .1);
    }
  }
}