.photos-row {
  display: flex;
  flex-wrap: wrap;

  .photos-row__item {
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    height: 270px;
    flex: 1 1 33.3333%;

    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    color: #ffffff;

    background: #6dacde;
    padding: 30px;

    &:hover {
      span {
        text-decoration: underline;
      }
    }

    span {
      position: relative;
      z-index: 1;
      max-width: 85%;
    }

    img {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: auto;
      max-width: initial;
      transition: $fast-transition;

      @media (max-width: 768px) {
        height: auto;
        min-width: 100%;
        min-height: 100%;
      }
    }

    &:hover img {
      transform: scale(1.05);
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      z-index: 1;
      background: rgba(0, 50, 116, 0.3);
    }
  }
}
